Lines Matching refs:tp
52 timespec_to_sample(const clockid_t which_clock, const struct timespec *tp) in timespec_to_sample() argument
57 ret.sched = (unsigned long long)tp->tv_sec * NSEC_PER_SEC + tp->tv_nsec; in timespec_to_sample()
59 ret.cpu = timespec_to_cputime(tp); in timespec_to_sample()
66 struct timespec *tp) in sample_to_timespec() argument
69 *tp = ns_to_timespec(cpu.sched); in sample_to_timespec()
71 cputime_to_timespec(cpu.cpu, tp); in sample_to_timespec()
179 int posix_cpu_clock_getres(const clockid_t which_clock, struct timespec *tp) in posix_cpu_clock_getres() argument
183 tp->tv_sec = 0; in posix_cpu_clock_getres()
184 tp->tv_nsec = ((NSEC_PER_SEC + HZ - 1) / HZ); in posix_cpu_clock_getres()
191 tp->tv_nsec = 1; in posix_cpu_clock_getres()
197 int posix_cpu_clock_set(const clockid_t which_clock, const struct timespec *tp) in posix_cpu_clock_set() argument
327 int posix_cpu_clock_get(const clockid_t which_clock, struct timespec *tp) in posix_cpu_clock_get() argument
379 sample_to_timespec(which_clock, rtn, tp); in posix_cpu_clock_get()
1637 struct timespec *tp) in process_cpu_clock_getres() argument
1639 return posix_cpu_clock_getres(PROCESS_CLOCK, tp); in process_cpu_clock_getres()
1642 struct timespec *tp) in process_cpu_clock_get() argument
1644 return posix_cpu_clock_get(PROCESS_CLOCK, tp); in process_cpu_clock_get()
1662 struct timespec *tp) in thread_cpu_clock_getres() argument
1664 return posix_cpu_clock_getres(THREAD_CLOCK, tp); in thread_cpu_clock_getres()
1667 struct timespec *tp) in thread_cpu_clock_get() argument
1669 return posix_cpu_clock_get(THREAD_CLOCK, tp); in thread_cpu_clock_get()