Home
last modified time | relevance | path

Searched refs:rusage (Results 1 – 20 of 20) sorted by relevance

/linux/tools/perf/util/
H A Dstat.h106 struct rusage ru_data;
142 static inline void update_rusage_stats(struct rusage_stats *ru_stats, struct rusage* rusage) { in update_rusage_stats() argument
146 (rusage->ru_utime.tv_usec * us_to_ns + rusage->ru_utime.tv_sec * s_to_ns)); in update_rusage_stats()
148 (rusage->ru_stime.tv_usec * us_to_ns + rusage->ru_stime.tv_sec * s_to_ns)); in update_rusage_stats()
/linux/kernel/
H A Dexit.h19 struct rusage *wo_rusage;
29 struct rusage *ru);
H A Dexit.c1707 struct rusage *ru) in kernel_waitid_prepare()
1766 int options, struct rusage *ru) in kernel_waitid()
1784 infop, int, options, struct rusage __user *, ru) in SYSCALL_DEFINE5()
1786 struct rusage r; in SYSCALL_DEFINE5()
1794 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE5()
1817 struct rusage *ru) in kernel_wait4()
1876 int, options, struct rusage __user *, ru) in SYSCALL_DEFINE4()
1878 struct rusage r; in SYSCALL_DEFINE4()
1882 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE4()
1908 struct rusage r; in COMPAT_SYSCALL_DEFINE4()
[all …]
H A Dcompat.c83 int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru) in put_compat_rusage()
H A Dsys.c1782 static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r) in accumulate_thread_rusage()
1792 void getrusage(struct task_struct *p, int who, struct rusage *r) in getrusage()
1880 SYSCALL_DEFINE2(getrusage, int, who, struct rusage __user *, ru) in SYSCALL_DEFINE2()
1882 struct rusage r; in SYSCALL_DEFINE2()
1895 struct rusage r; in COMPAT_SYSCALL_DEFINE2()
/linux/include/linux/
H A Dresource.h10 void getrusage(struct task_struct *p, int who, struct rusage *ru);
H A Dcompat.h116 struct rusage;
310 extern int put_compat_rusage(const struct rusage *,
H A Dsyscalls.h37 struct rusage;
543 int options, struct rusage __user *ru);
693 asmlinkage long sys_getrusage(int who, struct rusage __user *ru);
857 int options, struct rusage __user *ru);
/linux/tools/include/nolibc/
H A Dsys.h1199 pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage) in sys_wait4() argument
1202 return my_syscall4(__NR_wait4, pid, status, options, rusage); in sys_wait4()
1204 return __nolibc_enosys(__func__, pid, status, options, rusage); in sys_wait4()
1215 pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) in wait4() argument
1217 return __sysret(sys_wait4(pid, status, options, rusage)); in wait4()
/linux/include/linux/sched/
H A Dtask.h16 struct rusage;
105 extern long kernel_wait4(pid_t, int __user *, int, struct rusage *);
/linux/tools/perf/bench/
H A Dinject-buildid.c352 struct rusage rusage; in inject_build_id() local
387 wait4(data->pid, &status, 0, &rusage); in inject_build_id()
388 *max_rss = rusage.ru_maxrss; in inject_build_id()
H A Dnuma.c1172 struct rusage rusage; in worker_thread() local
1332 getrusage(RUSAGE_THREAD, &rusage); in worker_thread()
1333 td->system_time_ns = rusage.ru_stime.tv_sec * NSEC_PER_SEC; in worker_thread()
1334 td->system_time_ns += rusage.ru_stime.tv_usec * NSEC_PER_USEC; in worker_thread()
1335 td->user_time_ns = rusage.ru_utime.tv_sec * NSEC_PER_SEC; in worker_thread()
1336 td->user_time_ns += rusage.ru_utime.tv_usec * NSEC_PER_USEC; in worker_thread()
/linux/include/uapi/linux/
H A Dresource.h24 struct rusage { struct
/linux/io_uring/
H A Dsqpoll.c256 static void io_sq_update_worktime(struct io_sq_data *sqd, struct rusage *start) in io_sq_update_worktime()
258 struct rusage end; in io_sq_update_worktime()
272 struct rusage start; in io_sq_thread()
H A Dfdinfo.c58 struct rusage sq_usage; in io_uring_show_fdinfo()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c35 struct rusage *ru) in sys_waitid()
/linux/tools/testing/selftests/net/
H A Dtcp_mmap.c182 struct rusage ru; in child_thread()
/linux/arch/alpha/kernel/
H A Dosf_sys.c1113 struct rusage r; in SYSCALL_DEFINE4()
/linux/tools/testing/selftests/mm/
H A Dpagemap_ioctl.c1348 struct rusage r; in thread_proc()
/linux/tools/perf/
H A Dbuiltin-sched.c541 struct rusage ru; in get_cpu_usage_nsec_parent()