Home
last modified time | relevance | path

Searched refs:clockid (Results 1 – 24 of 24) sorted by relevance

/linux-4.1.27/tools/testing/selftests/timers/
Dnsleep-lat.c61 char *clockstring(int clockid) in clockstring() argument
63 switch (clockid) { in clockstring()
109 int nanosleep_lat_test(int clockid, long long ns) in nanosleep_lat_test() argument
118 if (clock_gettime(clockid, &start)) in nanosleep_lat_test()
120 if (clock_nanosleep(clockid, 0, &target, NULL)) in nanosleep_lat_test()
126 clock_gettime(clockid, &start); in nanosleep_lat_test()
128 clock_nanosleep(clockid, 0, &target, NULL); in nanosleep_lat_test()
129 clock_gettime(clockid, &end); in nanosleep_lat_test()
138 clock_gettime(clockid, &start); in nanosleep_lat_test()
140 clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL); in nanosleep_lat_test()
[all …]
Dnanosleep.c60 char *clockstring(int clockid) in clockstring() argument
62 switch (clockid) { in clockstring()
111 int nanosleep_test(int clockid, long long ns) in nanosleep_test() argument
116 if (clock_gettime(clockid, &now)) in nanosleep_test()
120 if (clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL)) in nanosleep_test()
122 clock_gettime(clockid, &now); in nanosleep_test()
128 clock_gettime(clockid, &now); in nanosleep_test()
133 clock_nanosleep(clockid, 0, &rel, NULL); in nanosleep_test()
134 clock_gettime(clockid, &now); in nanosleep_test()
144 int clockid, ret; in main() local
[all …]
Dinconsistency-check.c61 char *clockstring(int clockid) in clockstring() argument
63 switch (clockid) { in clockstring()
166 int clockid, opt; in main() local
192 for (clockid = userclock; clockid < maxclocks; clockid++) { in main()
194 if (clockid == CLOCK_HWSPECIFIC) in main()
197 if (!clock_gettime(clockid, &ts)) { in main()
198 printf("Consistent %-30s ", clockstring(clockid)); in main()
199 if (consistency_test(clockid, runtime)) in main()
Dalarmtimer-suspend.c68 char *clockstring(int clockid) in clockstring() argument
70 switch (clockid) { in clockstring()
Dset-timer-lat.c67 char *clockstring(int clockid) in clockstring() argument
69 switch (clockid) { in clockstring()
/linux-4.1.27/fs/
Dtimerfd.c38 int clockid; member
51 return ctx->clockid == CLOCK_REALTIME_ALARM || in isalarm()
52 ctx->clockid == CLOCK_BOOTTIME_ALARM; in isalarm()
135 if ((ctx->clockid == CLOCK_REALTIME || in timerfd_setup_cancel()
136 ctx->clockid == CLOCK_REALTIME_ALARM) && in timerfd_setup_cancel()
166 int clockid = ctx->clockid; in timerfd_setup() local
178 ctx->clockid == CLOCK_REALTIME_ALARM ? in timerfd_setup()
182 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup()
307 ctx->clockid, in timerfd_show()
376 SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags) in SYSCALL_DEFINE2() argument
[all …]
/linux-4.1.27/include/trace/events/
Dtimer.h132 TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid,
135 TP_ARGS(hrtimer, clockid, mode),
139 __field( clockid_t, clockid )
145 __entry->clockid = clockid;
150 __entry->clockid == CLOCK_REALTIME ?
/linux-4.1.27/kernel/time/
Dhrtimer.c75 .clockid = CLOCK_MONOTONIC,
81 .clockid = CLOCK_REALTIME,
87 .clockid = CLOCK_BOOTTIME,
93 .clockid = CLOCK_TAI,
426 debug_init(struct hrtimer *timer, clockid_t clockid, in debug_init() argument
430 trace_hrtimer_init(timer, clockid, mode); in debug_init()
1538 hrtimer_init_on_stack(&t.timer, restart->nanosleep.clockid, in hrtimer_nanosleep_restart()
1560 const enum hrtimer_mode mode, const clockid_t clockid) in hrtimer_nanosleep() argument
1571 hrtimer_init_on_stack(&t.timer, clockid, mode); in hrtimer_nanosleep()
1590 restart->nanosleep.clockid = t.timer.base->clockid; in hrtimer_nanosleep()
Dalarmtimer.c449 static enum alarmtimer_type clock2alarm(clockid_t clockid) in clock2alarm() argument
451 if (clockid == CLOCK_REALTIME_ALARM) in clock2alarm()
453 if (clockid == CLOCK_BOOTTIME_ALARM) in clock2alarm()
708 enum alarmtimer_type type = restart->nanosleep.clockid; in alarm_timer_nsleep_restart()
793 restart->nanosleep.clockid = type; in alarm_timer_nsleep()
Dposix-cpu-timers.c1362 restart_block->nanosleep.clockid = which_clock; in posix_cpu_nsleep()
1371 clockid_t which_clock = restart_block->nanosleep.clockid; in posix_cpu_nsleep_restart()
Dposix-timers.c1117 clockid_t which_clock = restart_block->nanosleep.clockid; in clock_nanosleep_restart()
/linux-4.1.27/tools/perf/util/
Devsel.c35 bool clockid; member
39 static clockid_t clockid; variable
769 clockid = opts->clockid; in perf_evsel__config()
772 attr->clockid = opts->clockid; in perf_evsel__config()
1122 PRINT_ATTRf(clockid, p_signed); in perf_event_attr__fprintf()
1158 evsel->attr.clockid = CLOCK_MONOTONIC; /* should always work */ in __perf_evsel__open()
1159 if (perf_missing_features.clockid) { in __perf_evsel__open()
1161 evsel->attr.clockid = 0; in __perf_evsel__open()
1210 if (perf_missing_features.clockid || in __perf_evsel__open()
1255 } else if (!perf_missing_features.clockid && evsel->attr.use_clockid) { in __perf_evsel__open()
[all …]
/linux-4.1.27/tools/perf/
Dperf.h66 clockid_t clockid; member
Dbuiltin-record.c716 int clockid; member
720 { .name = n, .clockid = (c), }
779 if (sscanf(str, "%d", &opts->clockid) == 1) in parse_clockid()
788 opts->clockid = cm->clockid; in parse_clockid()
Dbuiltin-trace.c583 static const char *clockid[] = { variable
587 static DEFINE_STRARRAY(clockid);
933 { .name = "clock_gettime", .errmsg = true, STRARRAY(0, clk_id, clockid), },
/linux-4.1.27/include/linux/
Dhrtimer.h148 clockid_t clockid; member
432 const clockid_t clockid);
Dthread_info.h33 clockid_t clockid; member
Dsyscalls.h805 asmlinkage long sys_timerfd_create(int clockid, int flags);
/linux-4.1.27/include/uapi/linux/
Dperf_event.h360 __s32 clockid; member
/linux-4.1.27/drivers/char/
Dmmtimer.c481 static int sgi_clock_get(clockid_t clockid, struct timespec *tp) in sgi_clock_get() argument
492 static int sgi_clock_set(const clockid_t clockid, const struct timespec *tp) in sgi_clock_set() argument
/linux-4.1.27/arch/s390/kernel/
Dcompat_wrapper.c196 COMPAT_SYSCALL_WRAP2(timerfd_create, int, clockid, int, flags);
/linux-4.1.27/tools/perf/Documentation/
Dperf-record.txt254 --clockid::
/linux-4.1.27/Documentation/filesystems/
Dproc.txt1800 clockid: 0
1806 where 'clockid' is the clock type and 'ticks' is the number of the timer expirations
/linux-4.1.27/kernel/events/
Dcore.c8017 err = perf_event_set_clock(event, attr.clockid); in SYSCALL_DEFINE5()