Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/lib/vdso/
Dgettimeofday.c49 static __always_inline int do_hres_timens(const struct vdso_data *vdns, clockid_t clk, in do_hres_timens()
100 static __always_inline int do_hres_timens(const struct vdso_data *vdns, clockid_t clk, in do_hres_timens()
107 static __always_inline int do_hres(const struct vdso_data *vd, clockid_t clk, in do_hres()
162 static __always_inline int do_coarse_timens(const struct vdso_data *vdns, clockid_t clk, in do_coarse_timens()
191 static __always_inline int do_coarse_timens(const struct vdso_data *vdns, clockid_t clk, in do_coarse_timens()
198 static __always_inline int do_coarse(const struct vdso_data *vd, clockid_t clk, in do_coarse()
225 __cvdso_clock_gettime_common(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime_common()
252 __cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime_data()
263 __cvdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __cvdso_clock_gettime()
270 __cvdso_clock_gettime32_data(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime32_data()
[all …]
/kernel/linux/linux-5.10/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()
217 clockid_t it_clock;
Dhrtimer.h165 clockid_t clockid;
380 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
382 extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id,
386 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock,
389 clockid_t clock_id,
395 clockid_t which_clock, in hrtimer_init_on_stack()
402 clockid_t clock_id, in hrtimer_init_sleeper_on_stack()
517 const clockid_t clockid);
524 clockid_t clock_id);
Dtime_namespace.h80 ktime_t do_timens_ktime_to_host(clockid_t clockid, ktime_t tim,
83 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) in timens_ktime_to_host()
133 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) in timens_ktime_to_host()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
331 static u64 cpu_clock_sample_group(const clockid_t clkid, struct task_struct *p, in cpu_clock_sample_group()
350 static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 *tp) in posix_cpu_clock_get()
352 const clockid_t clkid = CPUCLOCK_WHICH(clock); in posix_cpu_clock_get()
575 clockid_t clkid = CPUCLOCK_WHICH(timer->it_clock); in posix_cpu_timer_set()
[all …]
Dposix-clock.c199 static int get_clock_desc(const clockid_t id, struct posix_clock_desc *cd) in get_clock_desc()
226 static int pc_clock_adjtime(clockid_t id, struct __kernel_timex *tx) in pc_clock_adjtime()
250 static int pc_clock_gettime(clockid_t id, struct timespec64 *ts) in pc_clock_gettime()
269 static int pc_clock_getres(clockid_t id, struct timespec64 *ts) in pc_clock_getres()
288 static int pc_clock_settime(clockid_t id, const struct timespec64 *ts) in pc_clock_settime()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/x86/include/asm/vdso/
Dgettimeofday.h70 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
94 long clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
108 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
125 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
160 clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
177 long clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm/vdso/
Dvgettimeofday.c15 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
21 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
33 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/kernel/linux/linux-5.10/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()
/kernel/liteos_a/syscall/
Dtime_syscall.c160 int SysTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID) in SysTimerCreate()
263 int SysClockSettime(clockid_t clockID, const struct timespec *tp) in SysClockSettime()
285 int SysClockGettime(clockid_t clockID, struct timespec *tp) in SysClockGettime()
308 int SysClockGetres(clockid_t clockID, struct timespec *tp) in SysClockGetres()
331 int SysClockNanoSleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem) in SysClockNanoSleep()
405 int SysClockSettime64(clockid_t clockID, const struct timespec64 *tp) in SysClockSettime64()
435 int SysClockGettime64(clockid_t clockID, struct timespec64 *tp) in SysClockGettime64()
462 int SysClockGetres64(clockid_t clockID, struct timespec64 *tp) in SysClockGetres64()
489 int SysClockNanoSleep64(clockid_t clk, int flags, const struct timespec64 *req, struct timespec64 *… in SysClockNanoSleep64()
Dlos_syscall.h194 extern int SysTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID);
198 extern int SysClockSettime(clockid_t clockID, const struct timespec *tp);
199 extern int SysClockGettime(clockid_t clockID, struct timespec *tp);
200 extern int SysClockGetres(clockid_t clockID, struct timespec *tp);
201 extern int SysClockNanoSleep(clockid_t clk, int flags, const struct timespec *req, struct timespec …
205 extern int SysClockSettime64(clockid_t clockID, const struct timespec64 *tp);
206 extern int SysClockGettime64(clockid_t clockID, struct timespec64 *tp);
207 extern int SysClockGetres64(clockid_t clockID, struct timespec64 *tp);
208 extern int SysClockNanoSleep64(clockid_t clk, int flags, const struct timespec64 *req, struct times…
/kernel/linux/linux-5.10/arch/s390/kernel/vdso64/
Dvdso64_generic.c10 int __s390_vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __s390_vdso_clock_gettime()
15 int __s390_vdso_clock_getres(clockid_t clock, struct __kernel_timespec *ts) in __s390_vdso_clock_getres()
/kernel/linux/linux-5.10/arch/arm64/kernel/vdso/
Dvgettimeofday.c9 int __kernel_clock_gettime(clockid_t clock, in __kernel_clock_gettime()
21 int __kernel_clock_getres(clockid_t clock_id, in __kernel_clock_getres()

1234