Home
last modified time | relevance | path

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

123

/linux-6.14.4/tools/testing/selftests/proc/
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()
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()
Dproc-uptime.h26 static uint64_t clock_boottime(void) in clock_boottime() function
31 err = clock_gettime(CLOCK_BOOTTIME, &ts); in clock_boottime()
/linux-6.14.4/kernel/time/
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()
Dnamespace.c32 case CLOCK_BOOTTIME: in do_timens_ktime_to_host()
191 offset[CLOCK_BOOTTIME] = boottime; in timens_setup_vdso_data()
352 case CLOCK_BOOTTIME: in show_offset()
376 show_offset(m, CLOCK_BOOTTIME, &time_ns->offsets.boottime); in proc_timens_show_offsets()
405 case CLOCK_BOOTTIME: in proc_timens_set_offset()
444 case CLOCK_BOOTTIME: in proc_timens_set_offset()
Dvsyscall.c57 /* CLOCK_BOOTTIME */ in update_vdso_data()
58 vdso_ts = &vdata[CS_HRES_COARSE].basetime[CLOCK_BOOTTIME]; in update_vdso_data()
Dposix-timers.c315 * Handles CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_BOOTTIME and CLOCK_TAI
1209 * For CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_BOOTTIME, CLOCK_TAI,
1362 * sys_clock_nanosleep() for CLOCK_MONOTONIC and CLOCK_BOOTTIME
1503 static const struct k_clock clock_boottime = { variable
1528 [CLOCK_BOOTTIME] = &clock_boottime,
/linux-6.14.4/tools/testing/selftests/bpf/progs/
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()
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()
Dtimer_failure.c62 bpf_timer_init(timer, &timer_map, CLOCK_BOOTTIME); in __flag()
/linux-6.14.4/tools/testing/selftests/vDSO/
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()
Dvdso_test_abi.c42 "CLOCK_BOOTTIME",
207 #ifdef CLOCK_BOOTTIME in main()
208 vdso_test_clock(CLOCK_BOOTTIME); in main()
/linux-6.14.4/tools/perf/util/
Dclockid.c29 #ifndef CLOCK_BOOTTIME
30 #define CLOCK_BOOTTIME 7 macro
43 CLOCKID_MAP("boottime", CLOCK_BOOTTIME),
50 CLOCKID_MAP("boot", CLOCK_BOOTTIME),
/linux-6.14.4/tools/testing/selftests/timens/
Dtimerfd.c21 clockid = CLOCK_BOOTTIME; in tclock_gettime()
92 clock_gettime(CLOCK_BOOTTIME, &btime_now); in main()
99 CLOCK_BOOTTIME, 9 * 24 * 3600); in main()
116 ret |= run_test(CLOCK_BOOTTIME, btime_now); in main()
Dgettime_perf.c77 test(CLOCK_BOOTTIME, "boottime", false); in main()
90 if (_settime(CLOCK_BOOTTIME, offset)) in main()
99 test(CLOCK_BOOTTIME, "boottime", true); in main()
Dtimer.c85 clock_gettime(CLOCK_BOOTTIME, &btime_now); in main()
92 CLOCK_BOOTTIME, 9 * 24 * 3600); in main()
109 ret |= run_test(CLOCK_BOOTTIME, btime_now); in main()
Dtimens.h42 case CLOCK_BOOTTIME: in check_skip()
/linux-6.14.4/tools/testing/selftests/timers/
Dnanosleep.c55 case CLOCK_BOOTTIME: in clockstring()
56 return "CLOCK_BOOTTIME"; in clockstring()
Dalarmtimer-suspend.c60 case CLOCK_BOOTTIME: in clockstring()
61 return "CLOCK_BOOTTIME"; in clockstring()
Dnsleep-lat.c54 case CLOCK_BOOTTIME: in clockstring()
55 return "CLOCK_BOOTTIME"; in clockstring()
Dinconsistency-check.c56 case CLOCK_BOOTTIME: in clockstring()
57 return "CLOCK_BOOTTIME"; in clockstring()
Dset-timer-lat.c63 case CLOCK_BOOTTIME: in clockstring()
64 return "CLOCK_BOOTTIME"; in clockstring()
/linux-6.14.4/include/linux/
Dtimekeeper_internal.h59 * @monotonic_to_boot: CLOCK_MONOTONIC to CLOCK_BOOTTIME offset
95 * accelerate the VDSO update for CLOCK_BOOTTIME.
/linux-6.14.4/include/uapi/linux/
Dtime.h56 #define CLOCK_BOOTTIME 7 macro
/linux-6.14.4/include/trace/events/
Dtimer.h169 { CLOCK_BOOTTIME, "CLOCK_BOOTTIME" }, \

123