Home
last modified time | relevance | path

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

123

/Linux-v5.15/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.15/arch/csky/include/asm/vdso/
Dgettimeofday.h33 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
35 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
49 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
51 register clockid_t clkid asm("a0") = _clkid; in clock_gettime32_fallback()
65 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
67 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
81 int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
83 register clockid_t clkid asm("a0") = _clkid; in clock_getres32_fallback()
/Linux-v5.15/arch/arm/include/asm/vdso/
Dgettimeofday.h39 clockid_t _clkid, in clock_gettime_fallback()
43 register clockid_t clkid asm("r0") = _clkid; in clock_gettime_fallback()
57 clockid_t _clkid, in clock_gettime32_fallback()
61 register clockid_t clkid asm("r0") = _clkid; in clock_gettime32_fallback()
75 clockid_t _clkid, in clock_getres_fallback()
79 register clockid_t clkid asm("r0") = _clkid; in clock_getres_fallback()
93 clockid_t _clkid, in clock_getres32_fallback()
97 register clockid_t clkid asm("r0") = _clkid; in clock_getres32_fallback()
/Linux-v5.15/arch/arm64/include/asm/vdso/
Dcompat_gettimeofday.h39 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
42 register clockid_t clkid asm("r0") = _clkid; in clock_gettime_fallback()
56 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
59 register clockid_t clkid asm("r0") = _clkid; in clock_gettime32_fallback()
73 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
76 register clockid_t clkid asm("r0") = _clkid; in clock_getres_fallback()
90 int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
93 register clockid_t clkid asm("r0") = _clkid; in clock_getres32_fallback()
Dgettimeofday.h34 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
37 register clockid_t clkid asm("x0") = _clkid; in clock_gettime_fallback()
51 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
54 register clockid_t clkid asm("x0") = _clkid; in clock_getres_fallback()
/Linux-v5.15/arch/powerpc/include/asm/vdso/
Dgettimeofday.h111 int clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts)
117 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts)
127 int clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts)
133 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts)
139 int clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
145 int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
207 int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts,
209 int __c_kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res,
212 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
214 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts,
[all …]
/Linux-v5.15/include/linux/
Dposix-timers.h27 (((clock) & (clockid_t) CPUCLOCK_PERTHREAD_MASK) != 0)
30 #define CPUCLOCK_WHICH(clock) ((clock) & (clockid_t) CPUCLOCK_CLOCK_MASK)
39 static inline clockid_t make_process_cpuclock(const unsigned int pid, in make_process_cpuclock()
40 const clockid_t clock) in make_process_cpuclock()
44 static inline clockid_t make_thread_cpuclock(const unsigned int tid, in make_thread_cpuclock()
45 const clockid_t clock) in make_thread_cpuclock()
50 static inline clockid_t fd_to_clockid(const int fd) in fd_to_clockid()
55 static inline int clockid_to_fd(const clockid_t clk) in clockid_to_fd()
222 clockid_t it_clock;
Dhrtimer.h162 clockid_t clockid;
372 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
374 extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id,
378 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock,
381 clockid_t clock_id,
387 clockid_t which_clock, in hrtimer_init_on_stack()
394 clockid_t clock_id, in hrtimer_init_sleeper_on_stack()
513 const clockid_t clockid);
520 clockid_t clock_id);
/Linux-v5.15/arch/mips/include/asm/vdso/
Dgettimeofday.h52 clockid_t _clkid, in clock_gettime_fallback()
56 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
78 clockid_t _clkid, in clock_getres_fallback()
82 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
106 clockid_t _clkid, in clock_gettime32_fallback()
110 register clockid_t clkid asm("a0") = _clkid; in clock_gettime32_fallback()
128 clockid_t _clkid, in clock_getres32_fallback()
132 register clockid_t clkid asm("a0") = _clkid; in clock_getres32_fallback()
/Linux-v5.15/kernel/time/
Dposix-timers.h5 int (*clock_getres)(const clockid_t which_clock,
7 int (*clock_set)(const clockid_t which_clock,
10 int (*clock_get_timespec)(const clockid_t which_clock,
13 ktime_t (*clock_get_ktime)(const clockid_t which_clock);
14 int (*clock_adj)(const clockid_t which_clock, struct __kernel_timex *tx);
16 int (*nsleep)(const clockid_t which_clock, int flags,
Dposix-stubs.c60 SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
73 int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime()
93 SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
108 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
127 SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
172 SYSCALL_DEFINE2(clock_settime32, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
185 SYSCALL_DEFINE2(clock_gettime32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
200 SYSCALL_DEFINE2(clock_getres_time32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
220 SYSCALL_DEFINE4(clock_nanosleep_time32, clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
Dposix-timers.c56 static const struct k_clock *clockid_to_kclock(const clockid_t id);
170 static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_timespec()
176 static ktime_t posix_get_realtime_ktime(clockid_t which_clock) in posix_get_realtime_ktime()
182 static int posix_clock_realtime_set(const clockid_t which_clock, in posix_clock_realtime_set()
188 static int posix_clock_realtime_adj(const clockid_t which_clock, in posix_clock_realtime_adj()
197 static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_timespec()
204 static ktime_t posix_get_monotonic_ktime(clockid_t which_clock) in posix_get_monotonic_ktime()
212 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw()
220 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse()
226 static int posix_get_monotonic_coarse(clockid_t which_clock, in posix_get_monotonic_coarse()
[all …]
Dposix-cpu-timers.c50 static struct pid *pid_for_clock(const clockid_t clock, bool gettime) in pid_for_clock()
90 static inline int validate_clock_permissions(const clockid_t clock) in validate_clock_permissions()
101 static inline enum pid_type clock_pid_type(const clockid_t clock) in clock_pid_type()
153 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in posix_cpu_clock_getres()
173 posix_cpu_clock_set(const clockid_t clock, const struct timespec64 *tp) in posix_cpu_clock_set()
187 static u64 cpu_clock_sample(const clockid_t clkid, struct task_struct *p) in cpu_clock_sample()
333 static u64 cpu_clock_sample_group(const clockid_t clkid, struct task_struct *p, in cpu_clock_sample_group()
352 static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 *tp) in posix_cpu_clock_get()
354 const clockid_t clkid = CPUCLOCK_WHICH(clock); in posix_cpu_clock_get()
620 clockid_t clkid = CPUCLOCK_WHICH(timer->it_clock); in posix_cpu_timer_set()
[all …]
/Linux-v5.15/lib/vdso/
Dgettimeofday.c49 static __always_inline int do_hres_timens(const struct vdso_data *vdns, clockid_t clk, in do_hres_timens()
103 static __always_inline int do_hres_timens(const struct vdso_data *vdns, clockid_t clk, in do_hres_timens()
110 static __always_inline int do_hres(const struct vdso_data *vd, clockid_t clk, in do_hres()
165 static __always_inline int do_coarse_timens(const struct vdso_data *vdns, clockid_t clk, in do_coarse_timens()
194 static __always_inline int do_coarse_timens(const struct vdso_data *vdns, clockid_t clk, in do_coarse_timens()
201 static __always_inline int do_coarse(const struct vdso_data *vd, clockid_t clk, in do_coarse()
228 __cvdso_clock_gettime_common(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime_common()
255 __cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime_data()
266 __cvdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __cvdso_clock_gettime()
273 __cvdso_clock_gettime32_data(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime32_data()
[all …]
/Linux-v5.15/arch/mips/vdso/
Dvgettimeofday.c14 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
36 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
42 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
50 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
72 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/Linux-v5.15/arch/riscv/kernel/vdso/
Dvgettimeofday.c13 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
14 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __vdso_clock_gettime()
27 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
28 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) in __vdso_clock_getres()
/Linux-v5.15/arch/x86/include/asm/vdso/
Dgettimeofday.h71 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
95 long clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
109 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
126 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
161 clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
178 long clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
/Linux-v5.15/arch/riscv/include/asm/vdso/
Dgettimeofday.h32 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
34 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
48 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
50 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
/Linux-v5.15/arch/csky/kernel/vdso/
Dvgettimeofday.c6 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
12 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
24 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/Linux-v5.15/arch/arm/vdso/
Dvgettimeofday.c10 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
16 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
28 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/Linux-v5.15/arch/arm64/kernel/vdso32/
Dvgettimeofday.c9 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
15 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
27 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/Linux-v5.15/tools/testing/selftests/vDSO/
Dvdso_test_abi.c32 typedef long (*vdso_clock_gettime_t)(clockid_t clk_id, struct timespec *ts);
33 typedef long (*vdso_clock_getres_t)(clockid_t clk_id, struct timespec *ts);
61 static int vdso_test_clock_gettime(clockid_t clk_id) in vdso_test_clock_gettime()
110 static int vdso_test_clock_getres(clockid_t clk_id) in vdso_test_clock_getres()
161 static inline int vdso_test_clock(clockid_t clock_id) in vdso_test_clock()
/Linux-v5.15/arch/powerpc/kernel/vdso32/
Dvgettimeofday.c7 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts, in __c_kernel_clock_gettime()
13 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts, in __c_kernel_clock_gettime64()
25 int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res, in __c_kernel_clock_getres()
/Linux-v5.15/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()
158 notrace int __vdso_clock_gettime(clockid_t clkid, struct __kernel_old_timespec *ts) in __vdso_clock_gettime()
190 static notrace int clock_getres_fallback(clockid_t _clk_id, in clock_getres_fallback()
193 register clockid_t clk_id asm("$r0") = _clk_id; in clock_getres_fallback()
206 notrace int __vdso_clock_getres(clockid_t clk_id, struct __kernel_old_timespec *res) in __vdso_clock_getres()
/Linux-v5.15/arch/s390/kernel/vdso64/
Dvdso.h11 int __s390_vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
12 int __s390_vdso_clock_getres(clockid_t clock, struct __kernel_timespec *ts);

123