Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/perf/util/
A Dstat.h177 struct rusage ru_data;
213 static inline void update_rusage_stats(struct rusage_stats *ru_stats, struct rusage* rusage) { in update_rusage_stats() argument
217 (rusage->ru_utime.tv_usec * us_to_ns + rusage->ru_utime.tv_sec * s_to_ns)); in update_rusage_stats()
219 (rusage->ru_stime.tv_usec * us_to_ns + rusage->ru_stime.tv_sec * s_to_ns)); in update_rusage_stats()
/linux-6.3-rc2/include/linux/sched/
A Dtask.h14 struct rusage;
96 extern long kernel_wait4(pid_t, int __user *, int, struct rusage *);
/linux-6.3-rc2/kernel/
A Dexit.c1049 struct rusage *wo_rusage;
1642 int options, struct rusage *ru) in kernel_waitid()
1708 infop, int, options, struct rusage __user *, ru) in SYSCALL_DEFINE5()
1710 struct rusage r; in SYSCALL_DEFINE5()
1718 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE5()
1741 struct rusage *ru) in kernel_wait4()
1800 int, options, struct rusage __user *, ru) in SYSCALL_DEFINE4()
1802 struct rusage r; in SYSCALL_DEFINE4()
1806 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE4()
1832 struct rusage r; in COMPAT_SYSCALL_DEFINE4()
[all …]
A Dcompat.c83 int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru) in put_compat_rusage()
A Dsys.c1755 static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r) in accumulate_thread_rusage()
1765 void getrusage(struct task_struct *p, int who, struct rusage *r) in getrusage()
1840 SYSCALL_DEFINE2(getrusage, int, who, struct rusage __user *, ru) in SYSCALL_DEFINE2()
1842 struct rusage r; in SYSCALL_DEFINE2()
1855 struct rusage r; in COMPAT_SYSCALL_DEFINE2()
/linux-6.3-rc2/include/linux/
A Dresource.h10 void getrusage(struct task_struct *p, int who, struct rusage *ru);
A Dcompat.h116 struct rusage;
310 extern int put_compat_rusage(const struct rusage *,
A Dsyscalls.h37 struct rusage;
606 int options, struct rusage __user *ru);
770 asmlinkage long sys_getrusage(int who, struct rusage __user *ru);
959 int options, struct rusage __user *ru);
/linux-6.3-rc2/tools/perf/bench/
A Dinject-buildid.c351 struct rusage rusage; in inject_build_id() local
386 wait4(data->pid, &status, 0, &rusage); in inject_build_id()
387 *max_rss = rusage.ru_maxrss; in inject_build_id()
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-6.3-rc2/tools/include/nolibc/
A Dsys.h1205 pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage) in sys_wait4() argument
1207 return my_syscall4(__NR_wait4, pid, status, options, rusage); in sys_wait4()
1223 pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) in wait4() argument
1225 pid_t ret = sys_wait4(pid, status, options, rusage); in wait4()
A Dtypes.h158 struct rusage { struct
/linux-6.3-rc2/include/uapi/linux/
A Dresource.h24 struct rusage { struct
/linux-6.3-rc2/tools/testing/selftests/pidfd/
A Dpidfd_wait.c35 struct rusage *ru) in sys_waitid()
/linux-6.3-rc2/tools/testing/selftests/net/
A Dtcp_mmap.c160 struct rusage ru; in child_thread()
/linux-6.3-rc2/arch/alpha/kernel/
A Dosf_sys.c1115 struct rusage r; in SYSCALL_DEFINE4()
/linux-6.3-rc2/tools/perf/
A Dbuiltin-sched.c549 struct rusage ru; in get_cpu_usage_nsec_parent()

Completed in 54 milliseconds