Searched refs:clockid (Results 1 - 25 of 60) sorted by relevance

123

/linux-master/tools/testing/selftests/timers/
H A Dnanosleep.c50 char *clockstring(int clockid) argument
52 switch (clockid) {
101 int nanosleep_test(int clockid, long long ns) argument
106 if (clock_gettime(clockid, &now))
110 if (clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL))
112 clock_gettime(clockid, &now);
118 clock_gettime(clockid, &now);
123 clock_nanosleep(clockid, 0, &rel, NULL);
124 clock_gettime(clockid, &now);
134 int clockid, re local
[all...]
H A Dnsleep-lat.c50 char *clockstring(int clockid) argument
52 switch (clockid) {
98 int nanosleep_lat_test(int clockid, long long ns) argument
107 if (clock_gettime(clockid, &start))
109 if (clock_nanosleep(clockid, 0, &target, NULL))
115 clock_gettime(clockid, &start);
117 clock_nanosleep(clockid, 0, &target, NULL);
118 clock_gettime(clockid, &end);
127 clock_gettime(clockid, &start);
129 clock_nanosleep(clockid, TIMER_ABSTIM
147 int clockid, ret; local
[all...]
H A Dinconsistency-check.c50 char *clockstring(int clockid) argument
52 switch (clockid) {
153 int clockid, opt; local
170 printf("Usage: %s [-t <secs>] [-c <clockid>]\n", argv[0]);
172 printf(" -c: clockid to use (default, all clockids)\n");
182 for (clockid = userclock; clockid < maxclocks; clockid++) {
184 if (clockid == CLOCK_HWSPECIFIC || clock_gettime(clockid,
[all...]
H A Dalarmtimer-suspend.c57 char *clockstring(int clockid) argument
59 switch (clockid) {
/linux-master/tools/testing/selftests/futex/include/
H A Dfutex2test.h19 unsigned long flags, struct timespec *timo, clockid_t clockid)
21 return syscall(__NR_futex_waitv, waiters, nr_waiters, flags, timo, clockid);
18 futex_waitv(volatile struct futex_waitv *waiters, unsigned long nr_waiters, unsigned long flags, struct timespec *timo, clockid_t clockid) argument
/linux-master/tools/testing/selftests/timens/
H A Dtimerfd.c18 static int tclock_gettime(clock_t clockid, struct timespec *now) argument
20 if (clockid == CLOCK_BOOTTIME_ALARM)
21 clockid = CLOCK_BOOTTIME;
22 return clock_gettime(clockid, now);
25 int run_test(int clockid, struct timespec now) argument
31 if (check_skip(clockid))
34 if (tclock_gettime(clockid, &now))
35 return pr_perror("clock_gettime(%d)", clockid);
50 fd = timerfd_create(clockid, 0);
52 return pr_perror("timerfd_create(%d)", clockid);
[all...]
H A Dclock_nanosleep.c28 int clockid; member in struct:thread_args
36 clock_nanosleep(args->clockid, args->abs ? TIMER_ABSTIME : 0, args->now, args->rem);
41 int run_test(int clockid, int abs) argument
44 struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid};
56 if (clock_gettime(clockid, &start) == -1) {
57 if (errno == EINVAL && check_skip(clockid))
100 ksft_test_result_pass("clockid: %d abs:%d timeout\n", clockid, abs);
105 pr_fail("clockid
[all...]
H A Dfutex.c20 static int run_test(int clockid) argument
26 if (clockid == CLOCK_REALTIME)
29 clock_gettime(clockid, &timeout);
48 clock_gettime(clockid, &end);
57 ksft_test_result_pass("futex with the %d clockid\n", clockid);
H A Dtimens.h30 static inline bool check_skip(int clockid) argument
32 if (!config_alarm_timers && clockid == CLOCK_BOOTTIME_ALARM) {
40 switch (clockid) {
H A Dtimer.c18 int run_test(int clockid, struct timespec now) argument
25 if (check_skip(clockid))
42 if (timer_create(clockid, &sevp, &fd) == -1) {
60 ksft_test_result_fail("clockid: %d elapsed: %lld\n",
61 clockid, elapsed);
66 ksft_test_result_pass("clockid=%d\n", clockid);
H A Dgettime_perf.c47 static void test(clock_t clockid, char *clockstr, bool in_ns) argument
53 vdso_clock_gettime(clockid, &start);
58 vdso_clock_gettime(clockid, &tp);
/linux-master/tools/perf/util/
H A Dclockid.c9 #include "clockid.h"
14 int clockid; member in struct:clockid_map
18 { .name = n, .clockid = (c), }
90 if (sscanf(str, "%d", &opts->clockid) == 1)
91 return get_clockid_res(opts->clockid, &opts->clockid_res_ns);
99 opts->clockid = cm->clockid;
100 return get_clockid_res(opts->clockid,
106 ui__warning("unknown clockid %s, check man page\n", ostr);
115 if (cm->clockid
[all...]
H A Drecord.h69 clockid_t clockid; member in struct:record_opts
/linux-master/fs/
H A Dtimerfd.c40 int clockid; member in struct:timerfd_ctx
54 return ctx->clockid == CLOCK_REALTIME_ALARM ||
55 ctx->clockid == CLOCK_BOOTTIME_ALARM;
162 if ((ctx->clockid == CLOCK_REALTIME ||
163 ctx->clockid == CLOCK_REALTIME_ALARM) &&
194 int clockid = ctx->clockid; local
206 ctx->clockid == CLOCK_REALTIME_ALARM ?
210 hrtimer_init(&ctx->t.tmr, clockid, htmode);
217 texp = timens_ktime_to_host(clockid, tex
[all...]
/linux-master/include/linux/
H A Dtime_namespace.h61 int clockid; member in struct:proc_timens_offset
96 ktime_t do_timens_ktime_to_host(clockid_t clockid, ktime_t tim,
99 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) argument
106 return do_timens_ktime_to_host(clockid, tim, &ns->offsets);
162 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) argument
H A Drestart_block.h40 clockid_t clockid; member in struct:restart_block::__anon604::__anon606
H A Dhrtimer_defs.h40 * @clockid: clock id for per_cpu support
50 clockid_t clockid; member in struct:hrtimer_clock_base
/linux-master/net/sched/
H A Dsch_etf.c31 int clockid; member in struct:etf_sched_data
57 if (qopt->clockid < 0) {
62 if (qopt->clockid != CLOCK_TAI) {
63 NL_SET_ERR_MSG(extack, "Invalid clockid. CLOCK_TAI must be used");
92 * Drop if packet's clockid differs from qdisc's.
94 if (sk->sk_clockid != q->clockid)
370 pr_debug("delta %d clockid %d offload %s deadline %s\n",
371 qopt->delta, qopt->clockid,
389 q->clockid = qopt->clockid;
[all...]
H A Dact_gate.c279 enum tk_offsets tko, s32 clockid,
285 clockid == gact->param.tcfg_clockid)
293 gact->param.tcfg_clockid = clockid;
295 hrtimer_init(&gact->hitimer, clockid, HRTIMER_MODE_ABS_SOFT);
311 s32 clockid = CLOCK_TAI; local
331 clockid = nla_get_s32(tb[TCA_GATE_CLOCKID]);
332 switch (clockid) {
346 NL_SET_ERR_MSG(extack, "Invalid 'clockid'");
422 gate_setup_timer(gact, basetime, tk_offset, clockid,
278 gate_setup_timer(struct tcf_gate *gact, u64 basetime, enum tk_offsets tko, s32 clockid, bool do_init) argument
/linux-master/kernel/time/
H A Dnamespace.c23 ktime_t do_timens_ktime_to_host(clockid_t clockid, ktime_t tim, argument
28 switch (clockid) {
347 static void show_offset(struct seq_file *m, int clockid, struct timespec64 *ts) argument
351 switch (clockid) {
401 switch (off->clockid) {
440 switch (off->clockid) {
H A Dhrtimer.c66 * to reach a base using a clockid, hrtimer_clockid_to_base()
67 * is used to convert from clockid to the proper hrtimer_base_type.
76 .clockid = CLOCK_MONOTONIC,
81 .clockid = CLOCK_REALTIME,
86 .clockid = CLOCK_BOOTTIME,
91 .clockid = CLOCK_TAI,
96 .clockid = CLOCK_MONOTONIC,
101 .clockid = CLOCK_REALTIME,
106 .clockid = CLOCK_BOOTTIME,
111 .clockid
468 debug_init(struct hrtimer *timer, clockid_t clockid, enum hrtimer_mode mode) argument
2090 hrtimer_nanosleep(ktime_t rqtp, const enum hrtimer_mode mode, const clockid_t clockid) argument
[all...]
/linux-master/include/trace/events/
H A Dtimer.h190 * @clockid: the hrtimers clock
195 TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid,
198 TP_ARGS(hrtimer, clockid, mode),
202 __field( clockid_t, clockid )
208 __entry->clockid = clockid;
212 TP_printk("hrtimer=%p clockid=%s mode=%s", __entry->hrtimer,
213 decode_clockid(__entry->clockid),
/linux-master/kernel/futex/
H A Dsyscalls.c228 clockid_t clockid, struct hrtimer_sleeper *to)
238 if (clockid == CLOCK_REALTIME) {
243 if (clockid != CLOCK_REALTIME && clockid != CLOCK_MONOTONIC)
273 * @clockid: Clock to be used for the timeout, realtime or monotonic.
292 struct __kernel_timespec __user *, timeout, clockid_t, clockid)
305 if (timeout && (ret = futex2_setup_timeout(timeout, clockid, &to)))
364 * @clockid: Clock to be used for the timeout, realtime or monotonic
376 clockid_t, clockid)
392 if (timeout && (ret = futex2_setup_timeout(timeout, clockid,
227 futex2_setup_timeout(struct __kernel_timespec __user *timeout, clockid_t clockid, struct hrtimer_sleeper *to) argument
[all...]
/linux-master/include/uapi/linux/
H A Dnet_tstamp.h201 __kernel_clockid_t clockid;/* reference clockid */ member in struct:sock_txtime
/linux-master/tools/testing/selftests/futex/functional/
H A Dfutex_wait_timeout.c78 static int futex_get_abs_timeout(clockid_t clockid, struct timespec *to, argument
81 if (clock_gettime(clockid, to)) {

Completed in 161 milliseconds

123