Lines Matching refs:clockid
50 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
139 for (clockid = CLOCK_REALTIME; clockid < NR_CLOCKIDS; clockid++) { in main()
142 if (clockid == CLOCK_PROCESS_CPUTIME_ID || in main()
143 clockid == CLOCK_THREAD_CPUTIME_ID || in main()
144 clockid == CLOCK_HWSPECIFIC) { in main()
145 ksft_test_result_skip("%-31s\n", clockstring(clockid)); in main()
153 ret = nanosleep_test(clockid, length); in main()
155 ksft_test_result_skip("%-31s\n", clockstring(clockid)); in main()
159 ksft_test_result_fail("%-31s\n", clockstring(clockid)); in main()
164 ksft_test_result_pass("%-31s\n", clockstring(clockid)); in main()