| /linux/drivers/platform/cznic/ |
| H A D | turris-omnia-mcu-sys-off-wakeup.c | 28 static int omnia_get_uptime_wakeup(const struct i2c_client *client, u32 *uptime, in omnia_get_uptime_wakeup() argument 39 if (uptime) in omnia_get_uptime_wakeup() 40 *uptime = le32_to_cpu(reply[0]); in omnia_get_uptime_wakeup() 50 u32 uptime; in omnia_read_time() local 53 err = omnia_get_uptime_wakeup(to_i2c_client(dev), &uptime, NULL); in omnia_read_time() 57 rtc_time64_to_tm(uptime, tm); in omnia_read_time()
|
| /linux/tools/testing/selftests/timens/ |
| H A D | procfs.c | 68 static int read_proc_uptime(struct timespec *uptime) in read_proc_uptime() argument 73 proc = fopen("/proc/uptime", "r"); in read_proc_uptime() 75 pr_perror("Unable to open /proc/uptime"); in read_proc_uptime() 84 pr_err("failed to parse /proc/uptime"); in read_proc_uptime() 89 uptime->tv_sec = up_sec; in read_proc_uptime() 90 uptime->tv_nsec = up_nsec; in read_proc_uptime() 141 pr_fail("uptime in /proc/uptime: old %ld, new %ld [%ld]", in check_uptime() 147 ksft_test_result_pass("Passed for /proc/uptime\n"); in check_uptime()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | .gitignore | 20 /proc-uptime-001 21 /proc-uptime-002
|
| H A D | Makefile | 23 TEST_GEN_PROGS += proc-uptime-001 24 TEST_GEN_PROGS += proc-uptime-002
|
| /linux/include/uapi/linux/ |
| H A D | sysinfo.h | 9 __kernel_long_t uptime; /* Seconds since boot */ member
|
| /linux/tools/thermal/lib/ |
| H A D | uptimeofday.c | 20 __offset = __tv.tv_sec - info.uptime; in uptimeofday_init()
|
| /linux/Documentation/translations/zh_CN/admin-guide/ |
| H A D | cpu-load.rst | 5 Linux通过``/proc/stat``和``/proc/uptime``导出各种信息,用户空间工具
|
| /linux/Documentation/translations/zh_TW/admin-guide/ |
| H A D | cpu-load.rst | 11 Linux通過``/proc/stat``和``/proc/uptime``導出各種信息,用戶空間工具
|
| /linux/Documentation/ABI/removed/ |
| H A D | sysfs-mce | 23 better uptime with the risk of a crash or even corruption
|
| /linux/kernel/debug/kdb/ |
| H A D | kdb_main.c | 2367 u64 uptime = ktime_get_mono_fast_ns(); in kdb_sysinfo() local 2370 val->uptime = div_u64(uptime, NSEC_PER_SEC); in kdb_sysinfo() 2402 if (val.uptime > (24*60*60)) { in kdb_summary() 2403 int days = val.uptime / (24*60*60); in kdb_summary() 2404 val.uptime %= (24*60*60); in kdb_summary() 2407 kdb_printf("%02ld:%02ld\n", val.uptime/(60*60), (val.uptime/60)%60); in kdb_summary()
|
| /linux/Documentation/hwmon/ |
| H A D | sg2042-mcu.rst | 52 uptime RO Seconds after the MCU is powered
|
| /linux/Documentation/admin-guide/ |
| H A D | cpu-load.rst | 6 ``/proc/uptime`` that userland tools, such as top(1), use to calculate
|
| /linux/tools/perf/tests/shell/base_probe/ |
| H A D | test_adding_kernel.sh | 96 …t -e probe:$TEST_PROBE\* -o $LOGS_DIR/adding_kernel_using_probe.log -- cat /proc/uptime > /dev/null
|
| /linux/Documentation/ABI/testing/ |
| H A D | debugfs-cros-ec | 27 What: /sys/kernel/debug/<cros-ec-device>/uptime
|
| /linux/drivers/char/ |
| H A D | random.c | 229 time64_t uptime = ktime_get_seconds(); in crng_reseed_interval() local 230 if (uptime >= CRNG_RESEED_INTERVAL / HZ * 2) in crng_reseed_interval() 234 (unsigned int)uptime / 2 * HZ); in crng_reseed_interval()
|
| /linux/drivers/hwmon/ |
| H A D | corsair-psu.c | 690 DEFINE_SHOW_ATTRIBUTE(uptime);
|