Home
last modified time | relevance | path

Searched refs:clockid (Results 1 – 25 of 41) sorted by relevance

12

/tools/testing/selftests/timers/
A Dnanosleep.c38 char *clockstring(int clockid) in clockstring() argument
40 switch (clockid) { in clockstring()
94 if (clock_gettime(clockid, &now)) in nanosleep_test()
100 clock_gettime(clockid, &now); in nanosleep_test()
106 clock_gettime(clockid, &now); in nanosleep_test()
111 clock_nanosleep(clockid, 0, &rel, NULL); in nanosleep_test()
112 clock_gettime(clockid, &now); in nanosleep_test()
122 int clockid, ret; in main() local
128 for (clockid = CLOCK_REALTIME; clockid < max_clocks; clockid++) { in main()
132 clockid == CLOCK_THREAD_CPUTIME_ID || in main()
[all …]
A Dnsleep-lat.c37 char *clockstring(int clockid) in clockstring() argument
39 switch (clockid) { in clockstring()
94 if (clock_gettime(clockid, &start)) in nanosleep_lat_test()
102 clock_gettime(clockid, &start); in nanosleep_lat_test()
105 clock_gettime(clockid, &end); in nanosleep_lat_test()
114 clock_gettime(clockid, &start); in nanosleep_lat_test()
117 clock_gettime(clockid, &end); in nanosleep_lat_test()
134 int clockid, ret; in main() local
140 for (clockid = CLOCK_REALTIME; clockid < max_clocks; clockid++) { in main()
145 clockid == CLOCK_HWSPECIFIC) in main()
[all …]
A Dinconsistency-check.c39 char *clockstring(int clockid) in clockstring() argument
41 switch (clockid) { in clockstring()
142 int clockid, opt; in main() local
171 for (clockid = userclock; clockid < maxclocks; clockid++) { in main()
173 if (clockid == CLOCK_HWSPECIFIC || clock_gettime(clockid, &ts)) { in main()
174 ksft_test_result_skip("%-31s\n", clockstring(clockid)); in main()
178 if (consistency_test(clockid, runtime)) { in main()
179 ksft_test_result_fail("%-31s\n", clockstring(clockid)); in main()
182 ksft_test_result_pass("%-31s\n", clockstring(clockid)); in main()
A Dalarmtimer-suspend.c43 char *clockstring(int clockid) in clockstring() argument
45 switch (clockid) { in clockstring()
A Dset-timer-lat.c46 char *clockstring(int clockid) in clockstring() argument
48 switch (clockid) { in clockstring()
/tools/include/nolibc/
A Dtime.h47 return my_syscall2(__NR_clock_getres, clockid, res); in sys_clock_getres()
57 return __nolibc_enosys(__func__, clockid, res); in sys_clock_getres()
62 int clock_getres(clockid_t clockid, struct timespec *res) in clock_getres() argument
64 return __sysret(sys_clock_getres(clockid, res)); in clock_getres()
71 return my_syscall2(__NR_clock_gettime, clockid, tp); in sys_clock_gettime()
76 ret = my_syscall2(__NR_clock_gettime64, clockid, &ktp); in sys_clock_gettime()
81 return __nolibc_enosys(__func__, clockid, tp); in sys_clock_gettime()
88 return __sysret(sys_clock_gettime(clockid, tp)); in clock_gettime()
95 return my_syscall2(__NR_clock_settime, clockid, tp); in sys_clock_settime()
102 return __nolibc_enosys(__func__, clockid, tp); in sys_clock_settime()
[all …]
/tools/testing/selftests/timens/
A Dtimerfd.c20 if (clockid == CLOCK_BOOTTIME_ALARM) in tclock_gettime()
21 clockid = CLOCK_BOOTTIME; in tclock_gettime()
22 return clock_gettime(clockid, now); in tclock_gettime()
25 static int run_test(int clockid, struct timespec now) in run_test() argument
31 if (check_skip(clockid)) in run_test()
34 if (tclock_gettime(clockid, &now)) in run_test()
35 return pr_perror("clock_gettime(%d)", clockid); in run_test()
50 fd = timerfd_create(clockid, 0); in run_test()
52 return pr_perror("timerfd_create(%d)", clockid); in run_test()
66 clockid, elapsed); in run_test()
[all …]
A Dclock_nanosleep.c28 int clockid; member
36 clock_nanosleep(args->clockid, args->abs ? TIMER_ABSTIME : 0, args->now, args->rem); in call_nanosleep()
41 static int run_test(int clockid, int abs) in run_test() argument
44 struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid}; in run_test()
56 if (clock_gettime(clockid, &start) == -1) { in run_test()
57 if (errno == EINVAL && check_skip(clockid)) in run_test()
100 ksft_test_result_pass("clockid: %d abs:%d timeout\n", clockid, abs); in run_test()
106 clockid, abs, rem.tv_sec); in run_test()
109 ksft_test_result_pass("clockid: %d abs:%d\n", clockid, abs); in run_test()
A Dfutex.c20 static int run_test(int clockid) in run_test() argument
26 if (clockid == CLOCK_REALTIME) in run_test()
29 clock_gettime(clockid, &timeout); in run_test()
48 clock_gettime(clockid, &end); in run_test()
57 ksft_test_result_pass("futex with the %d clockid\n", clockid); in run_test()
A Dtimer.c18 static int run_test(int clockid, struct timespec now) in run_test() argument
25 if (check_skip(clockid)) in run_test()
42 if (timer_create(clockid, &sevp, &fd) == -1) { in run_test()
61 clockid, elapsed); in run_test()
66 ksft_test_result_pass("clockid=%d\n", clockid); in run_test()
A Dtimens.h30 static inline bool check_skip(int clockid) in check_skip() argument
32 if (!config_alarm_timers && clockid == CLOCK_BOOTTIME_ALARM) { in check_skip()
40 switch (clockid) { in check_skip()
A Dgettime_perf.c47 static void test(clock_t clockid, char *clockstr, bool in_ns) in test() argument
53 vdso_clock_gettime(clockid, &start); in test()
58 vdso_clock_gettime(clockid, &tp); in test()
/tools/perf/util/
A Dclockid.c14 int clockid; member
18 { .name = n, .clockid = (c), }
90 if (sscanf(str, "%d", &opts->clockid) == 1) in parse_clockid()
91 return get_clockid_res(opts->clockid, &opts->clockid_res_ns); in parse_clockid()
99 opts->clockid = cm->clockid; in parse_clockid()
100 return get_clockid_res(opts->clockid, in parse_clockid()
115 if (cm->clockid == clk_id) in clockid_name()
A Drecord.h70 clockid_t clockid; member
A Denv.h134 int clockid; member
A Devsel.c82 static clockid_t clockid; variable
1495 clockid = opts->clockid; in evsel__config()
1498 attr->clockid = opts->clockid; in evsel__config()
2137 if (perf_missing_features.clockid) { in evsel__disable_missing_features()
2139 evsel->core.attr.clockid = 0; in evsel__disable_missing_features()
2471 attr.clockid = CLOCK_MONOTONIC; in evsel__detect_missing_features()
2474 perf_missing_features.clockid = true; in evsel__detect_missing_features()
2477 attr.clockid = 0; in evsel__detect_missing_features()
2527 !perf_missing_features.clockid) { in evsel__detect_missing_features()
2684 if (perf_missing_features.clockid || in evsel__open_cpu()
[all …]
A Ddata-convert-json.c297 "%u", env->clock.clockid); in output_headers()
/tools/testing/selftests/futex/include/
A Dfutex2test.h67 unsigned long flags, struct timespec *timo, clockid_t clockid) in futex_waitv() argument
74 return syscall(__NR_futex_waitv, waiters, nr_waiters, flags, &ts, clockid); in futex_waitv()
85 struct timespec *timeout, clockid_t clockid) in futex2_wait() argument
87 return syscall(__NR_futex_wait, uaddr, val, ~0U, flags, timeout, clockid); in futex2_wait()
/tools/include/nolibc/sys/
A Dtimerfd.h20 int sys_timerfd_create(int clockid, int flags) in sys_timerfd_create() argument
22 return my_syscall2(__NR_timerfd_create, clockid, flags); in sys_timerfd_create()
26 int timerfd_create(int clockid, int flags) in timerfd_create() argument
28 return __sysret(sys_timerfd_create(clockid, flags)); in timerfd_create()
A Dtime.h16 static int sys_clock_gettime(clockid_t clockid, struct timespec *tp);
/tools/testing/selftests/futex/functional/
A Dfutex_wait_timeout.c78 static int futex_get_abs_timeout(clockid_t clockid, struct timespec *to, in futex_get_abs_timeout() argument
81 if (clock_gettime(clockid, to)) { in futex_get_abs_timeout()
/tools/testing/selftests/net/forwarding/
A Dtc_taprio.sh133 clockid CLOCK_TAI offload delta $FUDGE_FACTOR
135 clockid CLOCK_TAI offload delta $FUDGE_FACTOR
137 clockid CLOCK_TAI offload delta $FUDGE_FACTOR
/tools/testing/selftests/net/
A Dso_txtime.sh93 if ip netns exec "${NS1}" tc qdisc replace dev "${DEV}" root etf clockid CLOCK_TAI delta 400000; th…
/tools/testing/selftests/bpf/prog_tests/
A Dlwt_reroute.c91 .clockid = CLOCK_MONOTONIC, in overflow_fq()
/tools/testing/selftests/drivers/net/ocelot/
A Dpsfp.sh161 clockid CLOCK_TAI offload delta ${FUDGE_FACTOR}

Completed in 34 milliseconds

12