Home
last modified time | relevance | path

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

12

/tools/testing/selftests/timers/
Dnanosleep.c50 char *clockstring(int clockid) in clockstring() argument
52 switch (clockid) { in clockstring()
101 int nanosleep_test(int clockid, long long ns) in nanosleep_test() argument
106 if (clock_gettime(clockid, &now)) in nanosleep_test()
110 if (clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL)) in nanosleep_test()
112 clock_gettime(clockid, &now); in nanosleep_test()
118 clock_gettime(clockid, &now); in nanosleep_test()
123 clock_nanosleep(clockid, 0, &rel, NULL); in nanosleep_test()
124 clock_gettime(clockid, &now); in nanosleep_test()
134 int clockid, ret; in main() local
[all …]
Dnsleep-lat.c50 char *clockstring(int clockid) in clockstring() argument
52 switch (clockid) { in clockstring()
98 int nanosleep_lat_test(int clockid, long long ns) in nanosleep_lat_test() argument
107 if (clock_gettime(clockid, &start)) in nanosleep_lat_test()
109 if (clock_nanosleep(clockid, 0, &target, NULL)) in nanosleep_lat_test()
115 clock_gettime(clockid, &start); in nanosleep_lat_test()
117 clock_nanosleep(clockid, 0, &target, NULL); in nanosleep_lat_test()
118 clock_gettime(clockid, &end); in nanosleep_lat_test()
127 clock_gettime(clockid, &start); in nanosleep_lat_test()
129 clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL); in nanosleep_lat_test()
[all …]
Dinconsistency-check.c50 char *clockstring(int clockid) in clockstring() argument
52 switch (clockid) { in clockstring()
155 int clockid, opt; in main() local
181 for (clockid = userclock; clockid < maxclocks; clockid++) { in main()
183 if (clockid == CLOCK_HWSPECIFIC) in main()
186 if (!clock_gettime(clockid, &ts)) { in main()
187 printf("Consistent %-30s ", clockstring(clockid)); in main()
188 if (consistency_test(clockid, runtime)) in main()
Dalarmtimer-suspend.c57 char *clockstring(int clockid) in clockstring() argument
59 switch (clockid) { in clockstring()
Dset-timer-lat.c58 char *clockstring(int clockid) in clockstring() argument
60 switch (clockid) { in clockstring()
/tools/testing/selftests/timens/
Dtimerfd.c18 static int tclock_gettime(clock_t clockid, struct timespec *now) in tclock_gettime() argument
20 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 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()
[all …]
Dclock_nanosleep.c28 int clockid; member
36 clock_nanosleep(args->clockid, args->abs ? TIMER_ABSTIME : 0, args->now, args->rem); in call_nanosleep()
41 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()
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()
Dtimer.c18 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()
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()
Dgettime_perf.c39 static void test(clock_t clockid, char *clockstr, bool in_ns) in test() argument
45 vdso_clock_gettime(clockid, &start); in test()
50 vdso_clock_gettime(clockid, &tp); in test()
/tools/perf/util/
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()
Drecord.h67 clockid_t clockid; member
Denv.h108 int clockid; member
Devsel.c57 static clockid_t clockid; variable
1236 clockid = opts->clockid; in evsel__config()
1239 attr->clockid = opts->clockid; in evsel__config()
1755 evsel->core.attr.clockid = CLOCK_MONOTONIC; /* should always work */ in evsel__open_cpu()
1756 if (perf_missing_features.clockid) { in evsel__open_cpu()
1758 evsel->core.attr.clockid = 0; in evsel__open_cpu()
1850 if (perf_missing_features.clockid || in evsel__open_cpu()
1921 } else if (!perf_missing_features.clockid && evsel->core.attr.use_clockid) { in evsel__open_cpu()
1922 perf_missing_features.clockid = true; in evsel__open_cpu()
2688 if (perf_missing_features.clockid) in evsel__open_strerror()
[all …]
Dperf_event_attr_fprintf.c145 PRINT_ATTRf(clockid, p_signed); in perf_event_attr__fprintf()
Dheader.c914 data32 = ff->ph->env.clock.clockid; in write_clock_data()
1592 clockid_t clockid; in print_clock_data() local
1613 clockid = ff->ph->env.clock.clockid; in print_clock_data()
1623 fprintf(fp, "# clockid: %s (%u)\n", clockid_name(clockid), clockid); in print_clock_data()
1627 clockid_name(clockid)); in print_clock_data()
2840 ff->ph->env.clock.clockid = data32; in process_clock_data()
3121 FEAT_OPR(CLOCKID, clockid, false),
Devsel.h137 bool clockid; member
DBuild134 perf-y += clockid.o
/tools/testing/selftests/net/
Dso_txtime.sh26 if tc qdisc replace dev lo root etf clockid CLOCK_TAI delta 400000; then
Dso_txtime.c216 struct sock_txtime so_txtime_val = { .clockid = cfg_clockid }; in setsockopt_txtime()
/tools/include/uapi/linux/
Dperf_event.h423 __s32 clockid; member
Dpkt_sched.h989 __s32 clockid; member
/tools/perf/Documentation/
Dperf.data-file-format.txt326 One uint64_t for the clockid frequency, specified, for instance, via 'perf
400 u32 clockid;
/tools/perf/
Dbuiltin-record.c1572 session->header.env.clock.clockid = rec->opts.clockid; in record__init_clock()
1579 if (clock_gettime(rec->opts.clockid, &ref_clockid)) { in record__init_clock()

12