Home
last modified time | relevance | path

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

/kernel/liteos_a/syscall/
Dmisc_syscall.c194 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()
Dlos_syscall.h83 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);
Dprocess_syscall.c405 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/
Dlos_process.h60 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/
Dtask.h14 struct rusage;
93 extern long kernel_wait4(pid_t, int __user *, int, struct rusage *);
/kernel/linux/linux-5.10/include/linux/
Dresource.h10 void getrusage(struct task_struct *p, int who, struct rusage *ru);
Dcompat.h122 struct rusage;
280 extern int put_compat_rusage(const struct rusage *,
Dsyscalls.h37 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/
Dexit.c948 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 …]
Dcompat.c83 int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru) in put_compat_rusage()
Dsys.c1714 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/
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()
Dnuma.c1123 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/
Dresource.h24 struct rusage { struct
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dresource.h27 struct rusage { struct
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dresource.h14 struct rusage { struct
/kernel/linux/linux-5.10/tools/include/nolibc/
Dnolibc.h187 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/
Dstat.h139 struct rusage ru_data;
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
Dpidfd_wait.c35 struct rusage *ru) in sys_waitid()
/kernel/liteos_a/kernel/base/core/
Dlos_process.c1377 …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/
Dtcp_mmap.c159 struct rusage ru; in child_thread()
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dosf_sys.c1114 struct rusage r; in SYSCALL_DEFINE4()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-sched.c547 struct rusage ru; in get_cpu_usage_nsec_parent()