/kernel/liteos_a/syscall/ |
D | misc_syscall.c | 194 int SysGetrusage(int what, struct rusage *ru) in SysGetrusage() 199 struct rusage kru; in SysGetrusage() 201 ret = LOS_ArchCopyFromUser(&kru, ru, sizeof(struct rusage)); in SysGetrusage() 227 ret = LOS_ArchCopyToUser(ru, &kru, sizeof(struct rusage)); in SysGetrusage()
|
D | los_syscall.h | 83 extern int SysWait(int pid, USER int *status, int options, void *rusage); 84 extern int SysWaitid(idtype_t type, int pid, USER siginfo_t *info, int options, void *rusage); 318 extern int SysGetrusage(int what, struct rusage *ru);
|
D | process_syscall.c | 405 int SysWait(int pid, USER int *status, int options, void *rusage) in SysWait() argument 407 (void)rusage; in SysWait() 412 int SysWaitid(idtype_t type, int pid, USER siginfo_t *info, int options, void *rusage) in SysWaitid() argument 414 (void)rusage; in SysWaitid()
|
/kernel/liteos_a/kernel/include/ |
D | los_process.h | 60 extern INT32 LOS_Wait(INT32 pid, USER INT32 *status, UINT32 options, VOID *rusage); 62 extern INT32 LOS_Waitid(INT32 pid, USER siginfo_t *info, UINT32 options, VOID *rusage);
|
/kernel/linux/linux-5.10/include/linux/sched/ |
D | task.h | 14 struct rusage; 93 extern long kernel_wait4(pid_t, int __user *, int, struct rusage *);
|
/kernel/linux/linux-5.10/include/linux/ |
D | resource.h | 10 void getrusage(struct task_struct *p, int who, struct rusage *ru);
|
D | compat.h | 122 struct rusage; 280 extern int put_compat_rusage(const struct rusage *,
|
D | syscalls.h | 37 struct rusage; 597 int options, struct rusage __user *ru); 757 asmlinkage long sys_getrusage(int who, struct rusage __user *ru); 945 int options, struct rusage __user *ru);
|
/kernel/linux/linux-5.10/kernel/ |
D | exit.c | 948 struct rusage *wo_rusage; 1493 int options, struct rusage *ru) in kernel_waitid() 1559 infop, int, options, struct rusage __user *, ru) in SYSCALL_DEFINE5() 1561 struct rusage r; in SYSCALL_DEFINE5() 1569 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE5() 1592 struct rusage *ru) in kernel_wait4() 1651 int, options, struct rusage __user *, ru) in SYSCALL_DEFINE4() 1653 struct rusage r; in SYSCALL_DEFINE4() 1657 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE4() 1683 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 | 1714 static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r) in accumulate_thread_rusage() 1724 void getrusage(struct task_struct *p, int who, struct rusage *r) in getrusage() 1799 SYSCALL_DEFINE2(getrusage, int, who, struct rusage __user *, ru) in SYSCALL_DEFINE2() 1801 struct rusage r; in SYSCALL_DEFINE2() 1814 struct rusage r; in COMPAT_SYSCALL_DEFINE2()
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
D | inject-buildid.c | 351 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()
|
D | numa.c | 1123 struct rusage rusage; in worker_thread() local 1282 getrusage(RUSAGE_THREAD, &rusage); in worker_thread() 1283 td->system_time_ns = rusage.ru_stime.tv_sec * NSEC_PER_SEC; in worker_thread() 1284 td->system_time_ns += rusage.ru_stime.tv_usec * NSEC_PER_USEC; in worker_thread() 1285 td->user_time_ns = rusage.ru_utime.tv_sec * NSEC_PER_SEC; in worker_thread() 1286 td->user_time_ns += rusage.ru_utime.tv_usec * NSEC_PER_USEC; in worker_thread()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | resource.h | 24 struct rusage { struct
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | resource.h | 27 struct rusage { struct
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | resource.h | 14 struct rusage { struct
|
/kernel/linux/linux-5.10/tools/include/nolibc/ |
D | nolibc.h | 187 struct rusage { struct 1759 pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage) in sys_wait4() argument 1761 return my_syscall4(__NR_wait4, pid, status, options, rusage); in sys_wait4() 2241 pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) in wait4() argument 2243 pid_t ret = sys_wait4(pid, status, options, rusage); in wait4()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | stat.h | 139 struct rusage ru_data;
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
D | pidfd_wait.c | 35 struct rusage *ru) in sys_waitid()
|
/kernel/liteos_a/kernel/base/core/ |
D | los_process.c | 1377 …TIC INT32 OsWait(INT32 pid, USER INT32 *status, USER siginfo_t *info, UINT32 options, VOID *rusage) in OsWait() argument 1379 (VOID)rusage; in OsWait() 1433 LITE_OS_SEC_TEXT INT32 LOS_Wait(INT32 pid, USER INT32 *status, UINT32 options, VOID *rusage) in LOS_Wait() argument 1435 (VOID)rusage; in LOS_Wait() 1470 LITE_OS_SEC_TEXT INT32 LOS_Waitid(INT32 pid, USER siginfo_t *info, UINT32 options, VOID *rusage) in LOS_Waitid() argument 1472 (VOID)rusage; in LOS_Waitid()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | tcp_mmap.c | 159 struct rusage ru; in child_thread()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | osf_sys.c | 1114 struct rusage r; in SYSCALL_DEFINE4()
|
/kernel/linux/linux-5.10/tools/perf/ |
D | builtin-sched.c | 547 struct rusage ru; in get_cpu_usage_nsec_parent()
|