/external/ltp/lib/ |
D | tst_timer.c | 34 static const char *clock_name(clockid_t clk_id) in clock_name() argument 36 switch (clk_id) { in clock_name() 58 void tst_timer_check(clockid_t clk_id) in tst_timer_check() argument 60 if (tst_clock_gettime(clk_id, &start_time)) { in tst_timer_check() 64 clock_name(clk_id), clk_id); in tst_timer_check() 72 void tst_timer_start(clockid_t clk_id) in tst_timer_start() argument 74 clock_id = clk_id; in tst_timer_start()
|
D | tst_clocks.c | 29 int tst_clock_getres(clockid_t clk_id, struct timespec *res) in tst_clock_getres() argument 31 return syscall(SYS_clock_getres, clk_id, res); in tst_clock_getres() 34 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts) in tst_clock_gettime() argument 36 return syscall(SYS_clock_gettime, clk_id, ts); in tst_clock_gettime()
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_wait_bitset.h | 22 static void verify_futex_wait_bitset(long long wait_us, clock_t clk_id) in verify_futex_wait_bitset() argument 27 int flags = clk_id == CLOCK_REALTIME ? FUTEX_CLOCK_REALTIME : 0; in verify_futex_wait_bitset() 30 clk_id == CLOCK_REALTIME ? "CLOCK_REALTIME" : "CLOCK_MONOTONIC"); in verify_futex_wait_bitset() 32 clock_gettime(clk_id, &start); in verify_futex_wait_bitset() 37 clock_gettime(clk_id, &end); in verify_futex_wait_bitset()
|
D | futex_wait05.c | 29 int sample_fn(int clk_id, long long usec) in sample_fn() argument 34 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
D | clock_nanosleep01.c | 42 clockid_t clk_id; /* clock_* clock type parameter */ member 60 .clk_id = CLOCK_REALTIME, 68 .clk_id = CLOCK_REALTIME, 76 .clk_id = CLOCK_THREAD_CPUTIME_ID, 84 .clk_id = CLOCK_REALTIME, 108 TEST(clock_nanosleep(tc->clk_id, tc->flags, &tc->rq, &rm)); in do_test()
|
D | clock_nanosleep02.c | 28 int sample_fn(int clk_id, long long usec) in sample_fn() argument 32 tst_timer_start(clk_id); in sample_fn() 33 TEST(clock_nanosleep(clk_id, 0, &t, NULL)); in sample_fn()
|
/external/linux-kselftest/tools/testing/selftests/seccomp/ |
D | seccomp_benchmark.c | 19 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument 26 assert(clock_gettime(clk_id, &start) == 0); in timing() 31 assert(clock_gettime(clk_id, &finish) == 0); in timing()
|
/external/ltp/include/ |
D | tst_clocks.h | 25 int tst_clock_getres(clockid_t clk_id, struct timespec *res); 27 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts);
|
D | tst_timer.h | 245 void tst_timer_check(clockid_t clk_id); 252 void tst_timer_start(clockid_t clk_id);
|
D | tst_test.h | 164 int (*sample)(int clk_id, long long usec);
|
/external/python/cpython3/Modules/ |
D | timemodule.c | 145 int clk_id; in time_clock_gettime() local 148 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) in time_clock_gettime() 151 ret = clock_gettime((clockid_t)clk_id, &tp); in time_clock_gettime() 169 int clk_id; in time_clock_settime() local 175 if (!PyArg_ParseTuple(args, "iO:clock_settime", &clk_id, &obj)) in time_clock_settime() 184 ret = clock_settime((clockid_t)clk_id, &tp); in time_clock_settime() 203 int clk_id; in time_clock_getres() local 206 if (!PyArg_ParseTuple(args, "i:clock_getres", &clk_id)) in time_clock_getres() 209 ret = clock_getres((clockid_t)clk_id, &tp); in time_clock_getres() 981 const clockid_t clk_id = CLOCK_PROF; in py_process_time() [all …]
|
/external/ltp/testcases/kernel/syscalls/nanosleep/ |
D | nanosleep01.c | 31 int sample_fn(int clk_id, long long usec) in sample_fn() argument 35 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/pselect/ |
D | pselect01.c | 24 int sample_fn(int clk_id, long long usec) in sample_fn() argument 32 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/poll/ |
D | poll02.c | 31 int sample_fn(int clk_id, long long usec) in sample_fn() argument 39 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/select/ |
D | select04.c | 32 static int sample_fn(int clk_id, long long usec) in sample_fn() argument 41 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait02.c | 35 int sample_fn(int clk_id, long long usec) in sample_fn() argument 39 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/clock_getres/ |
D | clock_getres01.c | 39 clockid_t clk_id; member 60 TEST(clock_getres(tcase[i].clk_id, tcase[i].res)); in do_test()
|
/external/perfetto/include/perfetto/base/ |
D | time.h | 49 inline TimeNanos GetTimeInternalNs(clockid_t clk_id) { in GetTimeInternalNs() argument 51 PERFETTO_CHECK(clock_gettime(clk_id, &ts) == 0); in GetTimeInternalNs()
|
/external/adhd/cras/src/common/ |
D | cras_util.h | 127 static inline int cras_clock_gettime(clockid_t clk_id, in cras_clock_gettime() argument 131 int ret = clock_gettime(clk_id, &tp); in cras_clock_gettime()
|
/external/libchrome/base/time/ |
D | time_posix.cc | 107 int64_t ClockNow(clockid_t clk_id) { in ClockNow() argument 109 if (clock_gettime(clk_id, &ts) != 0) { in ClockNow() 110 NOTREACHED() << "clock_gettime(" << clk_id << ") failed."; in ClockNow()
|
/external/v8/src/base/platform/ |
D | time.cc | 56 V8_INLINE int64_t ClockNow(clockid_t clk_id) { 63 if (clk_id == CLOCK_THREAD_CPUTIME_ID) { 71 if (clock_gettime(clk_id, &ts) != 0) { 78 if (clk_id == CLOCK_THREAD_CPUTIME_ID) {
|
/external/python/cpython3/Python/ |
D | pytime.c | 699 const clockid_t clk_id = CLOCK_HIGHRES; in pymonotonic() 702 const clockid_t clk_id = CLOCK_MONOTONIC; in pymonotonic() 708 if (clock_gettime(clk_id, &ts) != 0) { in pymonotonic() 721 if (clock_getres(clk_id, &res) != 0) { in pymonotonic()
|
/external/libusb/libusb/os/ |
D | windows_nt_common.h | 51 int windows_clock_gettime(int clk_id, struct timespec *tp);
|
D | windows_nt_common.c | 429 int windows_clock_gettime(int clk_id, struct timespec *tp) in windows_clock_gettime() argument 436 switch (clk_id) { in windows_clock_gettime()
|
/external/adhd/cras/src/tests/ |
D | loopback_iodev_unittest.cc | 232 int clock_gettime(clockid_t clk_id, struct timespec *tp) { in clock_gettime() argument
|