clockid 39 fs/timerfd.c int clockid; clockid 53 fs/timerfd.c return ctx->clockid == CLOCK_REALTIME_ALARM || clockid 54 fs/timerfd.c ctx->clockid == CLOCK_BOOTTIME_ALARM; clockid 145 fs/timerfd.c if ((ctx->clockid == CLOCK_REALTIME || clockid 146 fs/timerfd.c ctx->clockid == CLOCK_REALTIME_ALARM) && clockid 177 fs/timerfd.c int clockid = ctx->clockid; clockid 189 fs/timerfd.c ctx->clockid == CLOCK_REALTIME_ALARM ? clockid 193 fs/timerfd.c hrtimer_init(&ctx->t.tmr, clockid, htmode); clockid 318 fs/timerfd.c ctx->clockid, clockid 387 fs/timerfd.c SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags) clockid 397 fs/timerfd.c (clockid != CLOCK_MONOTONIC && clockid 398 fs/timerfd.c clockid != CLOCK_REALTIME && clockid 399 fs/timerfd.c clockid != CLOCK_REALTIME_ALARM && clockid 400 fs/timerfd.c clockid != CLOCK_BOOTTIME && clockid 401 fs/timerfd.c clockid != CLOCK_BOOTTIME_ALARM)) clockid 404 fs/timerfd.c if ((clockid == CLOCK_REALTIME_ALARM || clockid 405 fs/timerfd.c clockid == CLOCK_BOOTTIME_ALARM) && clockid 415 fs/timerfd.c ctx->clockid = clockid; clockid 419 fs/timerfd.c ctx->clockid == CLOCK_REALTIME_ALARM ? clockid 423 fs/timerfd.c hrtimer_init(&ctx->t.tmr, clockid, HRTIMER_MODE_ABS); clockid 161 include/linux/hrtimer.h clockid_t clockid; clockid 513 include/linux/hrtimer.h const clockid_t clockid); clockid 39 include/linux/restart_block.h clockid_t clockid; clockid 532 include/linux/syscalls.h asmlinkage long sys_timerfd_create(int clockid, int flags); clockid 76 include/net/pkt_sched.h clockid_t clockid); clockid 169 include/trace/events/timer.h TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid, clockid 172 include/trace/events/timer.h TP_ARGS(hrtimer, clockid, mode), clockid 176 include/trace/events/timer.h __field( clockid_t, clockid ) clockid 182 include/trace/events/timer.h __entry->clockid = clockid; clockid 187 include/trace/events/timer.h decode_clockid(__entry->clockid), clockid 158 include/uapi/linux/net_tstamp.h __kernel_clockid_t clockid;/* reference clockid */ clockid 411 include/uapi/linux/perf_event.h __s32 clockid; clockid 990 include/uapi/linux/pkt_sched.h __s32 clockid; clockid 11038 kernel/events/core.c err = perf_event_set_clock(event, attr.clockid); clockid 527 kernel/time/alarmtimer.c static enum alarmtimer_type clock2alarm(clockid_t clockid) clockid 529 kernel/time/alarmtimer.c if (clockid == CLOCK_REALTIME_ALARM) clockid 531 kernel/time/alarmtimer.c if (clockid == CLOCK_BOOTTIME_ALARM) clockid 787 kernel/time/alarmtimer.c enum alarmtimer_type type = restart->nanosleep.clockid; clockid 842 kernel/time/alarmtimer.c restart->nanosleep.clockid = type; clockid 75 kernel/time/hrtimer.c .clockid = CLOCK_MONOTONIC, clockid 80 kernel/time/hrtimer.c .clockid = CLOCK_REALTIME, clockid 85 kernel/time/hrtimer.c .clockid = CLOCK_BOOTTIME, clockid 90 kernel/time/hrtimer.c .clockid = CLOCK_TAI, clockid 95 kernel/time/hrtimer.c .clockid = CLOCK_MONOTONIC, clockid 100 kernel/time/hrtimer.c .clockid = CLOCK_REALTIME, clockid 105 kernel/time/hrtimer.c .clockid = CLOCK_BOOTTIME, clockid 110 kernel/time/hrtimer.c .clockid = CLOCK_TAI, clockid 466 kernel/time/hrtimer.c debug_init(struct hrtimer *timer, clockid_t clockid, clockid 470 kernel/time/hrtimer.c trace_hrtimer_init(timer, clockid, mode); clockid 1905 kernel/time/hrtimer.c hrtimer_init_sleeper_on_stack(&t, restart->nanosleep.clockid, clockid 1914 kernel/time/hrtimer.c const enum hrtimer_mode mode, const clockid_t clockid) clockid 1925 kernel/time/hrtimer.c hrtimer_init_sleeper_on_stack(&t, clockid, mode); clockid 1939 kernel/time/hrtimer.c restart->nanosleep.clockid = t.timer.base->clockid; clockid 1339 kernel/time/posix-cpu-timers.c restart_block->nanosleep.clockid = which_clock; clockid 1346 kernel/time/posix-cpu-timers.c clockid_t which_clock = restart_block->nanosleep.clockid; clockid 1168 net/core/sock.c sk->sk_clockid = sk_txtime.clockid; clockid 1519 net/core/sock.c v.txtime.clockid = sk->sk_clockid; clockid 607 net/sched/sch_api.c clockid_t clockid) clockid 609 net/sched/sch_api.c hrtimer_init(&wd->timer, clockid, HRTIMER_MODE_ABS_PINNED); clockid 31 net/sched/sch_etf.c int clockid; clockid 57 net/sched/sch_etf.c if (qopt->clockid < 0) { clockid 62 net/sched/sch_etf.c if (qopt->clockid != CLOCK_TAI) { clockid 94 net/sched/sch_etf.c if (sk->sk_clockid != q->clockid) clockid 374 net/sched/sch_etf.c qopt->delta, qopt->clockid, clockid 392 net/sched/sch_etf.c q->clockid = qopt->clockid; clockid 397 net/sched/sch_etf.c switch (q->clockid) { clockid 415 net/sched/sch_etf.c qdisc_watchdog_init_clockid(&q->watchdog, sch, q->clockid); clockid 477 net/sched/sch_etf.c opt.clockid = q->clockid; clockid 67 net/sched/sch_taprio.c int clockid; clockid 1314 net/sched/sch_taprio.c int clockid = nla_get_s32(tb[TCA_TAPRIO_ATTR_SCHED_CLOCKID]); clockid 1319 net/sched/sch_taprio.c if (clockid < 0 || clockid 1320 net/sched/sch_taprio.c (q->clockid != -1 && q->clockid != clockid)) { clockid 1327 net/sched/sch_taprio.c switch (clockid) { clockid 1346 net/sched/sch_taprio.c q->clockid = clockid; clockid 1511 net/sched/sch_taprio.c hrtimer_init(&q->advance_timer, q->clockid, HRTIMER_MODE_ABS); clockid 1627 net/sched/sch_taprio.c q->clockid = -1; clockid 1806 net/sched/sch_taprio.c nla_put_s32(skb, TCA_TAPRIO_ATTR_SCHED_CLOCKID, q->clockid)) clockid 411 tools/include/uapi/linux/perf_event.h __s32 clockid; clockid 989 tools/include/uapi/linux/pkt_sched.h __s32 clockid; clockid 1828 tools/perf/builtin-record.c int clockid; clockid 1832 tools/perf/builtin-record.c { .name = n, .clockid = (c), } clockid 1904 tools/perf/builtin-record.c if (sscanf(str, "%d", &opts->clockid) == 1) clockid 1905 tools/perf/builtin-record.c return get_clockid_res(opts->clockid, &opts->clockid_res_ns); clockid 1913 tools/perf/builtin-record.c opts->clockid = cm->clockid; clockid 1914 tools/perf/builtin-record.c return get_clockid_res(opts->clockid, clockid 575 tools/perf/builtin-trace.c static const char *clockid[] = { clockid 580 tools/perf/builtin-trace.c static DEFINE_STRARRAY(clockid, "CLOCK_"); clockid 732 tools/perf/builtin-trace.c .arg = { [0] = STRARRAY(clk_id, clockid), }, }, clockid 57 tools/perf/util/evsel.c static clockid_t clockid; clockid 1121 tools/perf/util/evsel.c clockid = opts->clockid; clockid 1124 tools/perf/util/evsel.c attr->clockid = opts->clockid; clockid 1624 tools/perf/util/evsel.c evsel->core.attr.clockid = CLOCK_MONOTONIC; /* should always work */ clockid 1625 tools/perf/util/evsel.c if (perf_missing_features.clockid) { clockid 1627 tools/perf/util/evsel.c evsel->core.attr.clockid = 0; clockid 1713 tools/perf/util/evsel.c if (perf_missing_features.clockid || clockid 1775 tools/perf/util/evsel.c } else if (!perf_missing_features.clockid && evsel->core.attr.use_clockid) { clockid 1776 tools/perf/util/evsel.c perf_missing_features.clockid = true; clockid 2494 tools/perf/util/evsel.c if (perf_missing_features.clockid) clockid 2497 tools/perf/util/evsel.c return scnprintf(msg, size, "wrong clockid (%d).", clockid); clockid 110 tools/perf/util/evsel.h bool clockid; clockid 2864 tools/perf/util/header.c FEAT_OPR(CLOCKID, clockid, false), clockid 126 tools/perf/util/jitdump.c if (evsel->core.attr.use_clockid == 0 || evsel->core.attr.clockid != CLOCK_MONOTONIC) clockid 142 tools/perf/util/perf_event_attr_fprintf.c PRINT_ATTRf(clockid, p_signed); clockid 61 tools/perf/util/record.h clockid_t clockid; clockid 197 tools/testing/selftests/net/so_txtime.c struct sock_txtime so_txtime_val = { .clockid = cfg_clockid }; clockid 57 tools/testing/selftests/timers/alarmtimer-suspend.c char *clockstring(int clockid) clockid 59 tools/testing/selftests/timers/alarmtimer-suspend.c switch (clockid) { clockid 50 tools/testing/selftests/timers/inconsistency-check.c char *clockstring(int clockid) clockid 52 tools/testing/selftests/timers/inconsistency-check.c switch (clockid) { clockid 155 tools/testing/selftests/timers/inconsistency-check.c int clockid, opt; clockid 181 tools/testing/selftests/timers/inconsistency-check.c for (clockid = userclock; clockid < maxclocks; clockid++) { clockid 183 tools/testing/selftests/timers/inconsistency-check.c if (clockid == CLOCK_HWSPECIFIC) clockid 186 tools/testing/selftests/timers/inconsistency-check.c if (!clock_gettime(clockid, &ts)) { clockid 187 tools/testing/selftests/timers/inconsistency-check.c printf("Consistent %-30s ", clockstring(clockid)); clockid 188 tools/testing/selftests/timers/inconsistency-check.c if (consistency_test(clockid, runtime)) clockid 50 tools/testing/selftests/timers/nanosleep.c char *clockstring(int clockid) clockid 52 tools/testing/selftests/timers/nanosleep.c switch (clockid) { clockid 101 tools/testing/selftests/timers/nanosleep.c int nanosleep_test(int clockid, long long ns) clockid 106 tools/testing/selftests/timers/nanosleep.c if (clock_gettime(clockid, &now)) clockid 110 tools/testing/selftests/timers/nanosleep.c if (clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL)) clockid 112 tools/testing/selftests/timers/nanosleep.c clock_gettime(clockid, &now); clockid 118 tools/testing/selftests/timers/nanosleep.c clock_gettime(clockid, &now); clockid 123 tools/testing/selftests/timers/nanosleep.c clock_nanosleep(clockid, 0, &rel, NULL); clockid 124 tools/testing/selftests/timers/nanosleep.c clock_gettime(clockid, &now); clockid 134 tools/testing/selftests/timers/nanosleep.c int clockid, ret; clockid 136 tools/testing/selftests/timers/nanosleep.c for (clockid = CLOCK_REALTIME; clockid < NR_CLOCKIDS; clockid++) { clockid 139 tools/testing/selftests/timers/nanosleep.c if (clockid == CLOCK_PROCESS_CPUTIME_ID || clockid 140 tools/testing/selftests/timers/nanosleep.c clockid == CLOCK_THREAD_CPUTIME_ID || clockid 141 tools/testing/selftests/timers/nanosleep.c clockid == CLOCK_HWSPECIFIC) clockid 144 tools/testing/selftests/timers/nanosleep.c printf("Nanosleep %-31s ", clockstring(clockid)); clockid 149 tools/testing/selftests/timers/nanosleep.c ret = nanosleep_test(clockid, length); clockid 50 tools/testing/selftests/timers/nsleep-lat.c char *clockstring(int clockid) clockid 52 tools/testing/selftests/timers/nsleep-lat.c switch (clockid) { clockid 98 tools/testing/selftests/timers/nsleep-lat.c int nanosleep_lat_test(int clockid, long long ns) clockid 107 tools/testing/selftests/timers/nsleep-lat.c if (clock_gettime(clockid, &start)) clockid 109 tools/testing/selftests/timers/nsleep-lat.c if (clock_nanosleep(clockid, 0, &target, NULL)) clockid 115 tools/testing/selftests/timers/nsleep-lat.c clock_gettime(clockid, &start); clockid 117 tools/testing/selftests/timers/nsleep-lat.c clock_nanosleep(clockid, 0, &target, NULL); clockid 118 tools/testing/selftests/timers/nsleep-lat.c clock_gettime(clockid, &end); clockid 127 tools/testing/selftests/timers/nsleep-lat.c clock_gettime(clockid, &start); clockid 129 tools/testing/selftests/timers/nsleep-lat.c clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL); clockid 130 tools/testing/selftests/timers/nsleep-lat.c clock_gettime(clockid, &end); clockid 147 tools/testing/selftests/timers/nsleep-lat.c int clockid, ret; clockid 149 tools/testing/selftests/timers/nsleep-lat.c for (clockid = CLOCK_REALTIME; clockid < NR_CLOCKIDS; clockid++) { clockid 152 tools/testing/selftests/timers/nsleep-lat.c if (clockid == CLOCK_PROCESS_CPUTIME_ID || clockid 153 tools/testing/selftests/timers/nsleep-lat.c clockid == CLOCK_THREAD_CPUTIME_ID || clockid 154 tools/testing/selftests/timers/nsleep-lat.c clockid == CLOCK_HWSPECIFIC) clockid 157 tools/testing/selftests/timers/nsleep-lat.c printf("nsleep latency %-26s ", clockstring(clockid)); clockid 162 tools/testing/selftests/timers/nsleep-lat.c ret = nanosleep_lat_test(clockid, length); clockid 58 tools/testing/selftests/timers/set-timer-lat.c char *clockstring(int clockid) clockid 60 tools/testing/selftests/timers/set-timer-lat.c switch (clockid) {