Home
last modified time | relevance | path

Searched refs:clk_id (Results 1 – 25 of 45) sorted by relevance

12

/external/ltp/lib/
Dtst_timer.c34 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()
Dtst_clocks.c29 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/
Dfutex_wait_bitset.h22 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()
Dfutex_wait05.c29 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/
Dclock_nanosleep01.c42 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()
Dclock_nanosleep02.c28 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/
Dseccomp_benchmark.c19 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/
Dtst_clocks.h25 int tst_clock_getres(clockid_t clk_id, struct timespec *res);
27 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts);
Dtst_timer.h245 void tst_timer_check(clockid_t clk_id);
252 void tst_timer_start(clockid_t clk_id);
Dtst_test.h164 int (*sample)(int clk_id, long long usec);
/external/python/cpython3/Modules/
Dtimemodule.c145 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/
Dnanosleep01.c31 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/
Dpselect01.c24 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/
Dpoll02.c31 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/
Dselect04.c32 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/
Depoll_wait02.c35 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/
Dclock_getres01.c39 clockid_t clk_id; member
60 TEST(clock_getres(tcase[i].clk_id, tcase[i].res)); in do_test()
/external/perfetto/include/perfetto/base/
Dtime.h49 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/
Dcras_util.h127 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/
Dtime_posix.cc107 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/
Dtime.cc56 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/
Dpytime.c699 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/
Dwindows_nt_common.h51 int windows_clock_gettime(int clk_id, struct timespec *tp);
Dwindows_nt_common.c429 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/
Dloopback_iodev_unittest.cc232 int clock_gettime(clockid_t clk_id, struct timespec *tp) { in clock_gettime() argument

12