Home
last modified time | relevance | path

Searched full:clock_boottime (Results 1 – 25 of 50) sorted by relevance

12

/linux/tools/testing/selftests/proc/
H A Dproc-uptime-001.c16 // Test that boottime value in /proc/uptime and CLOCK_BOOTTIME increment
38 c0 = clock_boottime(); in main()
42 c1 = clock_boottime(); in main()
47 /* Is CLOCK_BOOTTIME monotonic ? */ in main()
50 /* Is CLOCK_BOOTTIME VS /proc/uptime monotonic ? */ in main()
H A Dproc-uptime-002.c16 // Test that boottime value in /proc/uptime and CLOCK_BOOTTIME increment
66 c0 = clock_boottime(); in main()
76 c1 = clock_boottime(); in main()
81 /* Is CLOCK_BOOTTIME monotonic ? */ in main()
84 /* Is CLOCK_BOOTTIME VS /proc/uptime monotonic ? */ in main()
H A Dproc-uptime.h26 static uint64_t clock_boottime(void) in clock_boottime() function
31 err = clock_gettime(CLOCK_BOOTTIME, &ts); in clock_boottime()
/linux/kernel/time/
H A Dposix-stubs.c22 * as it is easy to remain compatible with little code. CLOCK_BOOTTIME
49 case CLOCK_BOOTTIME: in do_clock_gettime()
85 case CLOCK_BOOTTIME: in SYSCALL_DEFINE2()
104 case CLOCK_BOOTTIME: in SYSCALL_DEFINE4()
168 case CLOCK_BOOTTIME: in SYSCALL_DEFINE2()
187 case CLOCK_BOOTTIME: in SYSCALL_DEFINE4()
H A Dvsyscall.c57 /* CLOCK_BOOTTIME */ in update_vdso_time_data()
58 vdso_ts = &vc[CS_HRES_COARSE].basetime[CLOCK_BOOTTIME]; in update_vdso_time_data()
H A Dposix-timers.c372 * Handles CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_BOOTTIME and CLOCK_TAI
1206 * For CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_BOOTTIME, CLOCK_TAI,
1359 * sys_clock_nanosleep() for CLOCK_MONOTONIC and CLOCK_BOOTTIME
1500 static const struct k_clock clock_boottime = { variable
1525 [CLOCK_BOOTTIME] = &clock_boottime,
/linux/tools/testing/selftests/bpf/progs/
H A Dtimer.c235 if (bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME) != 0) in bpf_timer_test()
242 if (bpf_timer_init(&val->timer, &hmap_malloc, CLOCK_BOOTTIME) != 0) in bpf_timer_test()
260 bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME); in BPF_PROG2()
267 bpf_timer_init(&val->timer, &hmap_malloc, CLOCK_BOOTTIME); in BPF_PROG2()
278 bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME); in BPF_PROG2()
283 bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME); in BPF_PROG2()
290 bpf_timer_init(&val->timer, &hmap_malloc, CLOCK_BOOTTIME); in BPF_PROG2()
295 bpf_timer_init(&val->timer, &hmap_malloc, CLOCK_BOOTTIME); in BPF_PROG2()
327 if (bpf_timer_init(timer, &abs_timer, CLOCK_BOOTTIME) != 0) in BPF_PROG2()
368 if (bpf_timer_init(timer, map, CLOCK_BOOTTIME) != 0) in test_pinned_timer()
H A Dtimer_lockup.c65 bpf_timer_init(timer, &timer1_map, CLOCK_BOOTTIME); in timer1_prog()
81 bpf_timer_init(timer, &timer2_map, CLOCK_BOOTTIME); in timer2_prog()
H A Dtimer_failure.c62 bpf_timer_init(timer, &timer_map, CLOCK_BOOTTIME); in __flag()
/linux/tools/testing/selftests/vDSO/
H A Dvdso_test_clock_getres.c47 "CLOCK_BOOTTIME",
61 * clock_id: CLOCK_BOOTTIME [PASS]
95 #ifdef CLOCK_BOOTTIME in main()
96 ret += vdso_test_clock(CLOCK_BOOTTIME); in main()
H A Dvdso_test_abi.c42 "CLOCK_BOOTTIME",
207 #ifdef CLOCK_BOOTTIME in main()
208 vdso_test_clock(CLOCK_BOOTTIME); in main()
/linux/tools/perf/util/
H A Dclockid.c29 #ifndef CLOCK_BOOTTIME
30 #define CLOCK_BOOTTIME 7 macro
43 CLOCKID_MAP("boottime", CLOCK_BOOTTIME),
50 CLOCKID_MAP("boot", CLOCK_BOOTTIME),
/linux/tools/testing/selftests/timens/
H A Dtimerfd.c21 clockid = CLOCK_BOOTTIME; in tclock_gettime()
94 clock_gettime(CLOCK_BOOTTIME, &btime_now); in main()
101 CLOCK_BOOTTIME, 9 * 24 * 3600); in main()
118 ret |= run_test(CLOCK_BOOTTIME, btime_now); in main()
H A Dgettime_perf.c79 test(CLOCK_BOOTTIME, "boottime", false); in main()
92 if (_settime(CLOCK_BOOTTIME, offset)) in main()
101 test(CLOCK_BOOTTIME, "boottime", true); in main()
H A Dtimer.c87 clock_gettime(CLOCK_BOOTTIME, &btime_now); in main()
94 CLOCK_BOOTTIME, 9 * 24 * 3600); in main()
111 ret |= run_test(CLOCK_BOOTTIME, btime_now); in main()
H A Dtimens.h42 case CLOCK_BOOTTIME: in check_skip()
H A Dclock_nanosleep.c131 if (_settime(CLOCK_BOOTTIME, 9 * 24 * 3600)) in main()
H A Dprocfs.c62 if (_settime(CLOCK_BOOTTIME, TEN_DAYS_IN_SEC)) in init_namespaces()
H A Dtimens.c38 ct(CLOCK_BOOTTIME, -1),
/linux/include/linux/
H A Dtimekeeper_internal.h59 * @monotonic_to_boot: CLOCK_MONOTONIC to CLOCK_BOOTTIME offset
96 * accelerate the VDSO update for CLOCK_BOOTTIME.
/linux/include/uapi/linux/
H A Dtime.h56 #define CLOCK_BOOTTIME 7 macro
/linux/include/trace/events/
H A Dtimer.h169 { CLOCK_BOOTTIME, "CLOCK_BOOTTIME" }, \
/linux/Documentation/core-api/
H A Dtimekeeping.rst25 CLOCK_BOOTTIME
/linux/drivers/iio/proximity/
H A Dcros_ec_mkbp_proximity.c104 if (iio_device_get_clock(indio_dev) != CLOCK_BOOTTIME) in cros_ec_mkbp_proximity_push_event()
/linux/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_sensors_core.c204 if (iio_device_get_clock(indio_dev) != CLOCK_BOOTTIME) in cros_ec_sensors_push_data()
341 ret = iio_device_set_clock(indio_dev, CLOCK_BOOTTIME); in cros_ec_sensors_core_init()

12