/linux-6.6.21/tools/perf/util/ |
D | stat.h | 105 struct rusage ru_data; 141 static inline void update_rusage_stats(struct rusage_stats *ru_stats, struct rusage* rusage) { in update_rusage_stats() argument 145 (rusage->ru_utime.tv_usec * us_to_ns + rusage->ru_utime.tv_sec * s_to_ns)); in update_rusage_stats() 147 (rusage->ru_stime.tv_usec * us_to_ns + rusage->ru_stime.tv_sec * s_to_ns)); in update_rusage_stats()
|
/linux-6.6.21/include/linux/sched/ |
D | task.h | 14 struct rusage; 102 extern long kernel_wait4(pid_t, int __user *, int, struct rusage *);
|
/linux-6.6.21/kernel/ |
D | exit.c | 1051 struct rusage *wo_rusage; 1644 int options, struct rusage *ru) in kernel_waitid() 1710 infop, int, options, struct rusage __user *, ru) in SYSCALL_DEFINE5() 1712 struct rusage r; in SYSCALL_DEFINE5() 1720 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE5() 1743 struct rusage *ru) in kernel_wait4() 1802 int, options, struct rusage __user *, ru) in SYSCALL_DEFINE4() 1804 struct rusage r; in SYSCALL_DEFINE4() 1808 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE4() 1834 struct rusage r; in COMPAT_SYSCALL_DEFINE4() [all …]
|
D | compat.c | 83 int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru) in put_compat_rusage()
|
D | sys.c | 1773 static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r) in accumulate_thread_rusage() 1783 void getrusage(struct task_struct *p, int who, struct rusage *r) in getrusage() 1858 SYSCALL_DEFINE2(getrusage, int, who, struct rusage __user *, ru) in SYSCALL_DEFINE2() 1860 struct rusage r; in SYSCALL_DEFINE2() 1873 struct rusage r; in COMPAT_SYSCALL_DEFINE2()
|
/linux-6.6.21/include/linux/ |
D | resource.h | 10 void getrusage(struct task_struct *p, int who, struct rusage *ru);
|
D | compat.h | 116 struct rusage; 310 extern int put_compat_rusage(const struct rusage *,
|
D | syscalls.h | 37 struct rusage; 535 int options, struct rusage __user *ru); 675 asmlinkage long sys_getrusage(int who, struct rusage __user *ru); 838 int options, struct rusage __user *ru);
|
/linux-6.6.21/tools/perf/bench/ |
D | inject-buildid.c | 352 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()
|
D | numa.c | 1172 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-6.6.21/tools/include/nolibc/ |
D | sys.h | 1125 pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage) in sys_wait4() argument 1128 return my_syscall4(__NR_wait4, pid, status, options, rusage); in sys_wait4() 1141 pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) in wait4() argument 1143 return __sysret(sys_wait4(pid, status, options, rusage)); in wait4()
|
D | types.h | 184 struct rusage { struct
|
/linux-6.6.21/include/uapi/linux/ |
D | resource.h | 24 struct rusage { struct
|
/linux-6.6.21/tools/testing/selftests/pidfd/ |
D | pidfd_wait.c | 35 struct rusage *ru) in sys_waitid()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | tcp_mmap.c | 182 struct rusage ru; in child_thread()
|
/linux-6.6.21/arch/alpha/kernel/ |
D | osf_sys.c | 1113 struct rusage r; in SYSCALL_DEFINE4()
|
/linux-6.6.21/tools/perf/ |
D | builtin-sched.c | 549 struct rusage ru; in get_cpu_usage_nsec_parent()
|