/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/crashpad/crashpad/util/linux/ |
H A D | proc_stat_reader_test.cc | 40 timeval boot_time; in TEST() local 41 TimespecToTimeval(boot_time_ts, &boot_time); in TEST() 44 ASSERT_TRUE(stat.StartTime(boot_time, &start_time)); in TEST() 65 void GetStartTime(const timeval& boot_time, timeval* start_time) { in GetStartTime() argument 71 ASSERT_TRUE(stat.StartTime(boot_time, start_time)); in GetStartTime() 76 StatTimeThread(const timeval& boot_time, timeval* start_time) in StatTimeThread() argument 77 : boot_time_(boot_time), start_time_(start_time) {} in StatTimeThread() 89 timeval boot_time; in TEST() local 90 TimespecToTimeval(boot_time_ts, &boot_time); in TEST() 93 ASSERT_NO_FATAL_FAILURE(GetStartTime(boot_time, &main_time)); in TEST() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/crashpad/crashpad/util/linux/ |
H A D | proc_stat_reader_test.cc | 39 timeval boot_time; in TEST() local 40 TimespecToTimeval(boot_time_ts, &boot_time); in TEST() 43 ASSERT_TRUE(stat.StartTime(boot_time, &start_time)); in TEST() 64 void GetStartTime(const timeval& boot_time, timeval* start_time) { in GetStartTime() argument 70 ASSERT_TRUE(stat.StartTime(boot_time, start_time)); in GetStartTime() 75 StatTimeThread(const timeval& boot_time, timeval* start_time) in StatTimeThread() argument 76 : boot_time_(boot_time), start_time_(start_time) {} in StatTimeThread() 88 timeval boot_time; in TEST() local 89 TimespecToTimeval(boot_time_ts, &boot_time); in TEST() 92 ASSERT_NO_FATAL_FAILURE(GetStartTime(boot_time, &main_time)); in TEST() [all …]
|
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/plugins/in_kmsg/ |
H A D | in_kmsg.c | 53 static int boot_time(struct timeval *boot_time) in boot_time() argument 78 boot_time->tv_sec = boot_time->tv_sec * 10 + ((buf[pos]) - '0'); in boot_time() 81 boot_time->tv_sec = 0; in boot_time() 91 boot_time->tv_usec = boot_time->tv_usec * 10 + ((buf[pos]) - '0'); in boot_time() 94 boot_time->tv_sec = 0; in boot_time() 95 boot_time->tv_usec = 0; in boot_time() 101 tdiff = timeval_diff(&curr_time, boot_time); in boot_time() 102 boot_time->tv_sec = tdiff / KMSG_USEC_PER_SEC; in boot_time() 103 boot_time->tv_usec = tdiff % KMSG_USEC_PER_SEC; in boot_time() 162 flb_time_set(&ts, ctx->boot_time.tv_sec + tv.tv_sec, tv.tv_usec * 1000); in process_line() [all …]
|
/dports/editors/emacs/emacs-27.2/src/ |
H A D | filelock.c | 127 static time_t boot_time; variable 142 return boot_time; in get_boot_time() 158 return boot_time; in get_boot_time() 168 boot_time = st.st_mtime; in get_boot_time() 169 return boot_time; in get_boot_time() 177 return boot_time; in get_boot_time() 184 if (boot_time) in get_boot_time() 185 return boot_time; in get_boot_time() 226 return boot_time; in get_boot_time() 523 intmax_t pid, boot_time; in current_lock_owner() local [all …]
|
/dports/editors/emacs-devel/emacs-4d1968b/src/ |
H A D | filelock.c | 126 static time_t boot_time; variable 141 return boot_time; in get_boot_time() 157 return boot_time; in get_boot_time() 167 boot_time = st.st_mtime; in get_boot_time() 168 return boot_time; in get_boot_time() 176 return boot_time; in get_boot_time() 183 if (boot_time) in get_boot_time() 184 return boot_time; in get_boot_time() 225 return boot_time; in get_boot_time() 504 intmax_t pid, boot_time; in current_lock_owner() local [all …]
|
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/modules/linux-kmsg-format/ |
H A D | linux-kmsg-format.c | 43 static struct timeval boot_time; variable 91 t = (boot_time.tv_sec + (timestamp / G_USEC_PER_SEC)) * G_USEC_PER_SEC + in kmsg_to_absolute_time() 92 boot_time.tv_usec + (timestamp % G_USEC_PER_SEC); in kmsg_to_absolute_time() 402 boot_time.tv_sec = boot_time.tv_sec * 10 + ((buf[pos]) - '0'); in kmsg_init_boot_time() 405 boot_time.tv_sec = 0; in kmsg_init_boot_time() 416 boot_time.tv_usec = boot_time.tv_usec * 10 + ((buf[pos]) - '0'); in kmsg_init_boot_time() 419 boot_time.tv_sec = 0; in kmsg_init_boot_time() 420 boot_time.tv_usec = 0; in kmsg_init_boot_time() 426 tdiff = kmsg_timeval_diff(&curr_time, &boot_time); in kmsg_init_boot_time() 427 boot_time.tv_sec = tdiff / G_USEC_PER_SEC; in kmsg_init_boot_time() [all …]
|
/dports/sysutils/linrename/util-linux-2.25.2/lib/ |
H A D | boottime.c | 10 int get_boot_time(struct timeval *boot_time) in get_boot_time() argument 28 timersub(&now, &lores_uptime, boot_time); in get_boot_time() 37 boot_time->tv_sec = now.tv_sec - info.uptime; in get_boot_time() 38 boot_time->tv_usec = 0; in get_boot_time()
|
/dports/sysutils/coreutils/coreutils-8.32/src/ |
H A D | uptime.c | 53 time_t boot_time = 0; in print_uptime() local 92 boot_time = result.tv_sec; in print_uptime() 101 boot_time = si.boot_time / 1000000; in print_uptime() 112 boot_time = UT_TIME_MEMBER (this); in print_uptime() 125 if (boot_time == 0) in print_uptime() 127 uptime = time_now - boot_time; in print_uptime()
|
/dports/misc/gnuls/coreutils-8.30/src/ |
H A D | uptime.c | 59 time_t boot_time = 0; in print_uptime() local 97 boot_time = result.tv_sec; in print_uptime() 106 boot_time = si.boot_time / 1000000; in print_uptime() 117 boot_time = UT_TIME_MEMBER (this); in print_uptime() 130 if (boot_time == 0) in print_uptime() 132 uptime = time_now - boot_time; in print_uptime()
|
/dports/devel/util-linux/util-linux-2.36/lib/ |
H A D | monotonic.c | 18 int get_boot_time(struct timeval *boot_time) in get_boot_time() argument 34 timersub(&now, &lores_uptime, boot_time); in get_boot_time() 43 boot_time->tv_sec = now.tv_sec - info.uptime; in get_boot_time() 44 boot_time->tv_usec = 0; in get_boot_time()
|
/dports/devel/libfastcommon/libfastcommon-1.0.43/src/ |
H A D | system_info.c | 107 int get_boot_time(struct timeval *boot_time) in get_boot_time() argument 126 boot_time->tv_usec = 0; in get_boot_time() 141 boot_time->tv_usec = 0; in get_boot_time() 156 boot_time->tv_sec = 0; in get_boot_time() 157 boot_time->tv_usec = 0; in get_boot_time() 165 boot_time->tv_sec = 0; in get_boot_time() 166 boot_time->tv_usec = 0; in get_boot_time() 468 struct timeval boot_time; in get_processes() local 527 get_boot_time(&boot_time); in get_processes() 550 get_boot_time(&info->boot_time); in get_sysinfo() [all …]
|
/dports/net/py-pyvmomi/pyvmomi-7.0.3/tests/ |
H A D | test_iso8601.py | 41 boot_time = vm.runtime.bootTime 43 self.assertTrue(boot_time is not None) 47 boot_time.tzinfo) 48 self.assertEqual(expected_time, boot_time)
|
/dports/sysutils/dnf/dnf-4.9.0/dnf/cli/ |
H A D | utils.py | 86 boot_time = None 90 boot_time = int(line[len("btime "):-1]) 92 if boot_time is None: 97 ps['start_time'] = boot_time + jiffies_to_seconds(ps_stat[21])
|
/dports/devel/libgtop/libgtop-2.40.0/sysdeps/cygwin/ |
H A D | glibtop_private.c | 170 static unsigned long boot_time = 0UL; in get_boot_time() local 172 if(G_UNLIKELY(!boot_time)) in get_boot_time() 174 boot_time = read_boot_time(server); in get_boot_time() 177 return boot_time; in get_boot_time()
|
/dports/devel/py-pyperf/pyperf-2.3.0/pyperf/ |
H A D | _collect_metadata.py | 180 boot_time = None 184 boot_time = int(line[6:]) 187 if boot_time is None and psutil: 188 boot_time = psutil.boot_time() 190 if boot_time is not None: 191 btime = datetime.datetime.fromtimestamp(boot_time) 193 metadata['uptime'] = time.time() - boot_time
|
/dports/devel/libgtop/libgtop-2.40.0/sysdeps/linux/ |
H A D | glibtop_private.c | 170 static unsigned long boot_time = 0UL; in get_boot_time() local 172 if(G_UNLIKELY(!boot_time)) in get_boot_time() 174 boot_time = read_boot_time(server); in get_boot_time() 177 return boot_time; in get_boot_time()
|
/dports/sysutils/busybox/busybox-1.26.2/miscutils/ |
H A D | last_fancy.c | 166 time_t boot_time; in last_main() local 196 boot_time = 0; in last_main() 266 if (boot_time == 0) { in last_main() 275 show_entry(&ut, state, boot_time); in last_main() 284 boot_time = ut.ut_tv.tv_sec; in last_main()
|
/dports/sysutils/dua-cli/dua-cli-2.14.11/cargo-crates/sysinfo-0.20.5/src/apple/ |
H A D | system.rs | 53 boot_time: u64, field 103 fn boot_time() -> u64 { in boot_time() function 104 let mut boot_time = timeval { in boot_time() localVariable 114 &mut boot_time as *mut timeval as *mut _, in boot_time() 123 boot_time.tv_sec as _ in boot_time() 151 boot_time: boot_time(), in new_with_specifics() 426 unsafe { libc::difftime(csec, self.boot_time as _) as u64 } in uptime() 445 fn boot_time(&self) -> u64 { in boot_time() method 446 self.boot_time in boot_time()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/crashpad/crashpad/util/misc/ |
H A D | time_linux.cc | 21 bool GetBootTime(timespec* boot_time) { in GetBootTime() argument 34 SubtractTimespec(current_time, uptime, boot_time); in GetBootTime()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/crashpad/crashpad/util/misc/ |
H A D | time_linux.cc | 21 bool GetBootTime(timespec* boot_time) { in GetBootTime() argument 34 SubtractTimespec(current_time, uptime, boot_time); in GetBootTime()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/fs/nfsd/ |
H A D | trace.h | 523 __field(unsigned long long, boot_time) 526 __entry->boot_time = nn->boot_time; 528 TP_printk("boot_time=%16llx", __entry->boot_time) 545 __field(unsigned long long, boot_time) 550 __entry->boot_time = nn->boot_time; 752 __field(unsigned long long, boot_time) 757 __entry->boot_time = nn->boot_time; 762 __entry->boot_time, __entry->xid, 775 __field(unsigned long long, boot_time) 781 __entry->boot_time = nn->boot_time; [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/fs/nfsd/ |
H A D | trace.h | 523 __field(unsigned long long, boot_time) 526 __entry->boot_time = nn->boot_time; 528 TP_printk("boot_time=%16llx", __entry->boot_time) 545 __field(unsigned long long, boot_time) 550 __entry->boot_time = nn->boot_time; 752 __field(unsigned long long, boot_time) 757 __entry->boot_time = nn->boot_time; 762 __entry->boot_time, __entry->xid, 775 __field(unsigned long long, boot_time) 781 __entry->boot_time = nn->boot_time; [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/fs/nfsd/ |
H A D | trace.h | 523 __field(unsigned long long, boot_time) 526 __entry->boot_time = nn->boot_time; 528 TP_printk("boot_time=%16llx", __entry->boot_time) 545 __field(unsigned long long, boot_time) 550 __entry->boot_time = nn->boot_time; 752 __field(unsigned long long, boot_time) 757 __entry->boot_time = nn->boot_time; 762 __entry->boot_time, __entry->xid, 775 __field(unsigned long long, boot_time) 781 __entry->boot_time = nn->boot_time; [all …]
|
/dports/sysutils/whowatch/whowatch-1.8.6/src/ |
H A D | proc_plugin.c | 400 static time_t boot_time; in get_boot_time() local 403 if(boot_time) return boot_time; in get_boot_time() 404 if(!(f = fopen("/proc/stat", "r"))) return boot_time; in get_boot_time() 407 return boot_time; in get_boot_time() 410 sscanf(buf+5, "%ld", &boot_time); in get_boot_time() 411 return boot_time; in get_boot_time()
|
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/smb_server/smb2/ |
H A D | negprot.c | 92 struct timeval boot_time; in smb2srv_negprot_backend() local 97 boot_time = timeval_current(); /* TODO: fix me */ in smb2srv_negprot_backend() 108 io->out.boot_time = timeval_to_nttime(&boot_time); in smb2srv_negprot_backend() 141 push_nttime(req->out.body, 0x30, io->out.boot_time); in smb2srv_negprot_send()
|