Home
last modified time | relevance | path

Searched refs:clockid_t (Results 1 – 25 of 43) sorted by relevance

12

/Linux-v5.4/arch/x86/entry/vdso/
Dvclock_gettime.c38 extern int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
39 extern int __vdso_clock_getres(clockid_t clock, struct __kernel_timespec *res);
41 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __vdso_clock_gettime()
46 int clock_gettime(clockid_t, struct __kernel_timespec *)
49 int __vdso_clock_getres(clockid_t clock, in __vdso_clock_getres()
54 int clock_getres(clockid_t, struct __kernel_timespec *)
59 extern int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts);
60 extern int __vdso_clock_getres(clockid_t clock, struct old_timespec32 *res);
62 int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts) in __vdso_clock_gettime()
67 int clock_gettime(clockid_t, struct old_timespec32 *)
[all …]
/Linux-v5.4/arch/arm64/include/asm/vdso/
Dcompat_gettimeofday.h40 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
43 register clockid_t clkid asm("r0") = _clkid; in clock_gettime_fallback()
57 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
60 register clockid_t clkid asm("r0") = _clkid; in clock_gettime32_fallback()
74 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
77 register clockid_t clkid asm("r0") = _clkid; in clock_getres_fallback()
95 int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
98 register clockid_t clkid asm("r0") = _clkid; in clock_getres32_fallback()
Dgettimeofday.h36 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
39 register clockid_t clkid asm("x0") = _clkid; in clock_gettime_fallback()
53 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
56 register clockid_t clkid asm("x0") = _clkid; in clock_getres_fallback()
/Linux-v5.4/include/linux/
Dposix-timers.h26 (((clock) & (clockid_t) CPUCLOCK_PERTHREAD_MASK) != 0)
29 #define CPUCLOCK_WHICH(clock) ((clock) & (clockid_t) CPUCLOCK_CLOCK_MASK)
38 static inline clockid_t make_process_cpuclock(const unsigned int pid, in make_process_cpuclock()
39 const clockid_t clock) in make_process_cpuclock()
43 static inline clockid_t make_thread_cpuclock(const unsigned int tid, in make_thread_cpuclock()
44 const clockid_t clock) in make_thread_cpuclock()
49 static inline clockid_t fd_to_clockid(const int fd) in fd_to_clockid()
54 static inline int clockid_to_fd(const clockid_t clk) in clockid_to_fd()
198 clockid_t it_clock;
Dhrtimer.h161 clockid_t clockid;
375 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
377 extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id,
381 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock,
384 clockid_t clock_id,
390 clockid_t which_clock, in hrtimer_init_on_stack()
397 clockid_t clock_id, in hrtimer_init_sleeper_on_stack()
507 const clockid_t clockid);
514 clockid_t clock_id);
Drestart_block.h39 clockid_t clockid;
Dtimex.h155 extern int do_clock_adjtime(const clockid_t which_clock, struct __kernel_timex * ktx);
/Linux-v5.4/arch/mips/include/asm/vdso/
Dgettimeofday.h63 clockid_t _clkid, in clock_gettime_fallback()
67 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
87 clockid_t _clkid, in clock_getres_fallback()
91 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
115 clockid_t _clkid, in clock_gettime32_fallback()
119 register clockid_t clkid asm("a0") = _clkid; in clock_gettime32_fallback()
135 clockid_t _clkid, in clock_getres32_fallback()
139 register clockid_t clkid asm("a0") = _clkid; in clock_getres32_fallback()
/Linux-v5.4/arch/mips/vdso/
Dvgettimeofday.c14 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
26 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
32 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
40 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
52 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/Linux-v5.4/kernel/time/
Dposix-stubs.c59 SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
72 int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime()
90 SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
105 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
124 SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
162 SYSCALL_DEFINE2(clock_settime32, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
175 SYSCALL_DEFINE2(clock_gettime32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
190 SYSCALL_DEFINE2(clock_getres_time32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
210 SYSCALL_DEFINE4(clock_nanosleep_time32, clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
Dposix-timers.h5 int (*clock_getres)(const clockid_t which_clock,
7 int (*clock_set)(const clockid_t which_clock,
9 int (*clock_get)(const clockid_t which_clock,
11 int (*clock_adj)(const clockid_t which_clock, struct __kernel_timex *tx);
13 int (*nsleep)(const clockid_t which_clock, int flags,
Dposix-timers.c55 static const struct k_clock *clockid_to_kclock(const clockid_t id);
168 static int posix_clock_realtime_get(clockid_t which_clock, struct timespec64 *tp) in posix_clock_realtime_get()
175 static int posix_clock_realtime_set(const clockid_t which_clock, in posix_clock_realtime_set()
181 static int posix_clock_realtime_adj(const clockid_t which_clock, in posix_clock_realtime_adj()
190 static int posix_ktime_get_ts(clockid_t which_clock, struct timespec64 *tp) in posix_ktime_get_ts()
199 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw()
206 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse()
212 static int posix_get_monotonic_coarse(clockid_t which_clock, in posix_get_monotonic_coarse()
219 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) in posix_get_coarse_res()
225 static int posix_get_boottime(const clockid_t which_clock, struct timespec64 *tp) in posix_get_boottime()
[all …]
Dposix-cpu-timers.c88 static struct task_struct *__get_task_for_clock(const clockid_t clock, in __get_task_for_clock()
106 static inline struct task_struct *get_task_for_clock(const clockid_t clock) in get_task_for_clock()
111 static inline struct task_struct *get_task_for_clock_get(const clockid_t clock) in get_task_for_clock_get()
116 static inline int validate_clock_permissions(const clockid_t clock) in validate_clock_permissions()
163 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in posix_cpu_clock_getres()
183 posix_cpu_clock_set(const clockid_t clock, const struct timespec64 *tp) in posix_cpu_clock_set()
197 static u64 cpu_clock_sample(const clockid_t clkid, struct task_struct *p) in cpu_clock_sample()
343 static u64 cpu_clock_sample_group(const clockid_t clkid, struct task_struct *p, in cpu_clock_sample_group()
362 static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 *tp) in posix_cpu_clock_get()
364 const clockid_t clkid = CPUCLOCK_WHICH(clock); in posix_cpu_clock_get()
[all …]
Dposix-clock.c204 static int get_clock_desc(const clockid_t id, struct posix_clock_desc *cd) in get_clock_desc()
231 static int pc_clock_adjtime(clockid_t id, struct __kernel_timex *tx) in pc_clock_adjtime()
255 static int pc_clock_gettime(clockid_t id, struct timespec64 *ts) in pc_clock_gettime()
274 static int pc_clock_getres(clockid_t id, struct timespec64 *ts) in pc_clock_getres()
293 static int pc_clock_settime(clockid_t id, const struct timespec64 *ts) in pc_clock_settime()
Dhrtimer.c429 static void __hrtimer_init(struct hrtimer *timer, clockid_t clock_id,
432 void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t clock_id, in hrtimer_init_on_stack()
441 clockid_t clock_id, enum hrtimer_mode mode);
444 clockid_t clock_id, enum hrtimer_mode mode) in hrtimer_init_sleeper_on_stack()
466 debug_init(struct hrtimer *timer, clockid_t clockid, in debug_init()
1361 static inline int hrtimer_clockid_to_base(clockid_t clock_id) in hrtimer_clockid_to_base()
1373 static void __hrtimer_init(struct hrtimer *timer, clockid_t clock_id, in __hrtimer_init()
1421 void hrtimer_init(struct hrtimer *timer, clockid_t clock_id, in hrtimer_init()
1797 clockid_t clock_id, enum hrtimer_mode mode) in __hrtimer_init_sleeper()
1834 void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id, in hrtimer_init_sleeper()
[all …]
Dalarmtimer.c46 clockid_t base_clockid;
518 static enum alarmtimer_type clock2alarm(clockid_t clockid) in clock2alarm()
649 static int alarm_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in alarm_clock_getres()
666 static int alarm_clock_get(clockid_t which_clock, struct timespec64 *tp) in alarm_clock_get()
796 static int alarm_timer_nsleep(const clockid_t which_clock, int flags, in alarm_timer_nsleep()
/Linux-v5.4/arch/x86/include/asm/vdso/
Dgettimeofday.h62 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
86 long clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
102 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
119 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
154 clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
171 long clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
/Linux-v5.4/lib/vdso/
Dgettimeofday.c41 static int do_hres(const struct vdso_data *vd, clockid_t clk, in do_hres()
71 static void do_coarse(const struct vdso_data *vd, clockid_t clk, in do_coarse()
85 __cvdso_clock_gettime_common(clockid_t clock, struct __kernel_timespec *ts) in __cvdso_clock_gettime_common()
111 __cvdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __cvdso_clock_gettime()
121 __cvdso_clock_gettime32(clockid_t clock, struct old_timespec32 *res) in __cvdso_clock_gettime32()
181 int __cvdso_clock_getres_common(clockid_t clock, struct __kernel_timespec *res) in __cvdso_clock_getres_common()
224 int __cvdso_clock_getres(clockid_t clock, struct __kernel_timespec *res) in __cvdso_clock_getres()
234 __cvdso_clock_getres_time32(clockid_t clock, struct old_timespec32 *res) in __cvdso_clock_getres_time32()
/Linux-v5.4/arch/arm64/kernel/vdso32/
Dvgettimeofday.c11 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
21 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
37 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/Linux-v5.4/arch/nds32/kernel/vdso/
Dgettimeofday.c50 static notrace long clock_gettime_fallback(clockid_t _clkid, in clock_gettime_fallback()
54 register clockid_t clkid asm("$r0") = _clkid; in clock_gettime_fallback()
161 notrace int __vdso_clock_gettime(clockid_t clkid, struct timespec *ts) in __vdso_clock_gettime()
193 static notrace int clock_getres_fallback(clockid_t _clk_id, in clock_getres_fallback()
196 register clockid_t clk_id asm("$r0") = _clk_id; in clock_getres_fallback()
209 notrace int __vdso_clock_getres(clockid_t clk_id, struct timespec *res) in __vdso_clock_getres()
/Linux-v5.4/arch/arm64/kernel/vdso/
Dvgettimeofday.c11 int __kernel_clock_gettime(clockid_t clock, in __kernel_clock_gettime()
23 int __kernel_clock_getres(clockid_t clock_id, in __kernel_clock_getres()
/Linux-v5.4/arch/x86/um/vdso/
Dum_vdso.c16 int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime()
25 int clock_gettime(clockid_t, struct timespec *)
/Linux-v5.4/arch/arm/vdso/
Dvgettimeofday.c50 static notrace long clock_gettime_fallback(clockid_t _clkid, in clock_gettime_fallback()
54 register clockid_t clkid asm("r0") = _clkid; in clock_gettime_fallback()
188 notrace int __vdso_clock_gettime(clockid_t clkid, struct timespec *ts) in __vdso_clock_gettime()
/Linux-v5.4/tools/testing/selftests/ptp/
Dtestptp.c41 static int clock_adjtime(clockid_t id, struct timex *tx) in clock_adjtime()
87 static clockid_t get_clockid(int fd) in get_clockid()
161 clockid_t clkid; in main()
/Linux-v5.4/arch/sparc/vdso/
Dvclock_gettime.c254 __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime()
278 clock_gettime(clockid_t, struct timespec *)
282 __vdso_clock_gettime_stick(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime_stick()

12