Searched refs:clk_id (Results 1 – 7 of 7) sorted by relevance
| /tools/testing/selftests/timens/ |
| A D | timens.h | 64 static inline int _settime(clockid_t clk_id, time_t offset) in _settime() argument 69 if (clk_id == CLOCK_MONOTONIC_COARSE || clk_id == CLOCK_MONOTONIC_RAW) in _settime() 70 clk_id = CLOCK_MONOTONIC; in _settime() 72 len = snprintf(buf, sizeof(buf), "%d %ld 0", clk_id, offset); in _settime() 86 static inline int _gettime(clockid_t clk_id, struct timespec *res, bool raw_syscall) in _gettime() argument 91 if (clock_gettime(clk_id, res)) { in _gettime() 92 pr_perror("clock_gettime(%d)", (int)clk_id); in _gettime() 98 err = syscall(SYS_clock_gettime, clk_id, res); in _gettime() 100 pr_perror("syscall(SYS_clock_gettime(%d))", (int)clk_id); in _gettime()
|
| /tools/testing/selftests/vDSO/ |
| A D | vdso_test_abi.c | 73 static void vdso_test_clock_gettime(clockid_t clk_id) in vdso_test_clock_gettime() argument 82 vdso_clock_name[clk_id]); in vdso_test_clock_gettime() 87 long ret = VDSO_CALL(vdso_clock_gettime, 2, clk_id, &ts); in vdso_test_clock_gettime() 93 vdso_clock_name[clk_id]); in vdso_test_clock_gettime() 96 vdso_clock_name[clk_id]); in vdso_test_clock_gettime() 123 static void vdso_test_clock_getres(clockid_t clk_id) in vdso_test_clock_getres() argument 134 vdso_clock_name[clk_id]); in vdso_test_clock_getres() 139 long ret = VDSO_CALL(vdso_clock_getres, 2, clk_id, &ts); in vdso_test_clock_getres() 148 ret = syscall(SYS_clock_getres, clk_id, &sys_ts); in vdso_test_clock_getres() 158 vdso_clock_name[clk_id]); in vdso_test_clock_getres() [all …]
|
| /tools/perf/util/ |
| A D | clockid.c | 55 static int get_clockid_res(clockid_t clk_id, u64 *res_ns) in get_clockid_res() argument 60 if (!clock_getres(clk_id, &res)) in get_clockid_res() 110 const char *clockid_name(clockid_t clk_id) in clockid_name() argument 115 if (cm->clockid == clk_id) in clockid_name()
|
| A D | clockid.h | 9 const char *clockid_name(clockid_t clk_id);
|
| /tools/testing/selftests/seccomp/ |
| A D | seccomp_benchmark.c | 25 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument 32 assert(clock_gettime(clk_id, &start) == 0); in timing() 37 assert(clock_gettime(clk_id, &finish) == 0); in timing()
|
| /tools/tracing/latency/ |
| A D | latency-collector.c | 276 static __always_inline void clock_gettime_or_die(clockid_t clk_id, in clock_gettime_or_die() argument 279 int r = clock_gettime(clk_id, tp); in clock_gettime_or_die()
|
| /tools/perf/ |
| A D | builtin-trace.c | 1162 .arg = { [0] = STRARRAY(clk_id, clockid), }, },
|
Completed in 27 milliseconds