Home
last modified time | relevance | path

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

1234

/Linux-v6.1/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-v6.1/arch/powerpc/include/asm/vdso/
Dgettimeofday.h46 int clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
52 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
62 int clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
68 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
74 int clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
80 int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
142 int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts,
144 int __c_kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res,
147 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
149 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts,
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/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.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-v6.1/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-v6.1/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()
223 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-v6.1/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 static int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime()
94 SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
109 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
128 SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
173 SYSCALL_DEFINE2(clock_settime32, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
186 SYSCALL_DEFINE2(clock_gettime32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
201 SYSCALL_DEFINE2(clock_getres_time32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
221 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.c57 static struct pid *pid_for_clock(const clockid_t clock, bool gettime) in pid_for_clock()
97 static inline int validate_clock_permissions(const clockid_t clock) in validate_clock_permissions()
108 static inline enum pid_type clock_pid_type(const clockid_t clock) in clock_pid_type()
160 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in posix_cpu_clock_getres()
180 posix_cpu_clock_set(const clockid_t clock, const struct timespec64 *tp) in posix_cpu_clock_set()
194 static u64 cpu_clock_sample(const clockid_t clkid, struct task_struct *p) in cpu_clock_sample()
340 static u64 cpu_clock_sample_group(const clockid_t clkid, struct task_struct *p, in cpu_clock_sample_group()
359 static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 *tp) in posix_cpu_clock_get()
361 const clockid_t clkid = CPUCLOCK_WHICH(clock); in posix_cpu_clock_get()
627 clockid_t clkid = CPUCLOCK_WHICH(timer->it_clock); in posix_cpu_timer_set()
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/arch/powerpc/kernel/vdso/
Dvgettimeofday.c9 int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts, in __c_kernel_clock_gettime()
15 int __c_kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res, in __c_kernel_clock_getres()
21 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts, in __c_kernel_clock_gettime()
27 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts, in __c_kernel_clock_gettime64()
33 int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res, in __c_kernel_clock_getres()
/Linux-v6.1/arch/loongarch/vdso/
Dvgettimeofday.c10 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
11 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __vdso_clock_gettime()
24 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
25 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) in __vdso_clock_getres()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/arch/loongarch/include/asm/vdso/
Dgettimeofday.h37 clockid_t _clkid, in clock_gettime_fallback()
40 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
56 clockid_t _clkid, in clock_getres_fallback()
59 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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);
63 static void vdso_test_clock_gettime(clockid_t clk_id) in vdso_test_clock_gettime()
108 static void vdso_test_clock_getres(clockid_t clk_id) in vdso_test_clock_getres()
165 static inline void vdso_test_clock(clockid_t clock_id) in vdso_test_clock()

1234