Home
last modified time | relevance | path

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

1234

/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getrusage.c84 struct rusage ru; in ATF_TC_BODY()
105 struct rusage ru; in ATF_TC_BODY()
117 (void)memset(&ru, 0, sizeof(struct rusage)); in ATF_TC_BODY()
132 struct rusage ru1, ru2; in ATF_TC_BODY()
144 (void)memset(&ru1, 0, sizeof(struct rusage)); in ATF_TC_BODY()
145 (void)memset(&ru2, 0, sizeof(struct rusage)); in ATF_TC_BODY()
172 struct rusage ru; in ATF_TC_BODY()
192 (void)memset(&ru, 0, sizeof(struct rusage)); in ATF_TC_BODY()
/freebsd/sys/sys/
H A Dresourcevar.h55 struct rusage p_cru; /* Stats for reaped children. */
178 void ruadd(struct rusage *ru, struct rusage_ext *rux, struct rusage *ru2,
180 void rucollect(struct rusage *ru, struct rusage *ru2);
181 void rufetch(struct proc *p, struct rusage *ru);
182 void rufetchcalc(struct proc *p, struct rusage *ru, struct timeval *up,
184 void rufetchtd(struct thread *td, struct rusage *ru);
H A Dresource.h70 struct rusage { struct
93 struct rusage wru_self; argument
94 struct rusage wru_children;
190 int getrusage(int, struct rusage *);
H A Dwait.h163 struct rusage;
165 pid_t wait3(int *, int, struct rusage *);
166 pid_t wait4(pid_t, int *, int, struct rusage *);
H A Dprocdesc.h116 struct rusage;
/freebsd/lib/libc/sys/
H A Dwait3.c41 pid_t __wait3(int *, int, struct rusage *);
44 __wait3(int *istat, int options, struct rusage *rup) in __wait3()
H A Dwait4.c40 wait4(pid_t pid, int *status, int options, struct rusage *ru) in wait4()
H A Dwait.c
H A Dwaitpid.c
/freebsd/sys/kern/
H A Dkern_racct.c101 SDT_PROBE_DEFINE3(racct, , rusage, add,
103 SDT_PROBE_DEFINE3(racct, , rusage, add__failure,
105 SDT_PROBE_DEFINE3(racct, , rusage, add__buf,
107 SDT_PROBE_DEFINE3(racct, , rusage, add__cred,
109 SDT_PROBE_DEFINE3(racct, , rusage, add__force,
111 SDT_PROBE_DEFINE3(racct, , rusage, set,
113 SDT_PROBE_DEFINE3(racct, , rusage, set__failure,
115 SDT_PROBE_DEFINE3(racct, , rusage, set__force,
117 SDT_PROBE_DEFINE3(racct, , rusage, sub,
119 SDT_PROBE_DEFINE3(racct, , rusage, sub__cre
[all...]
H A Dkern_exit.c855 struct rusage ru, *rup; in sys_wait4()
858 if (uap->rusage != NULL) in sys_wait4()
865 if (uap->rusage != NULL && error == 0 && td->td_retval[0] != 0) in sys_wait4()
866 error = copyout(&ru, uap->rusage, sizeof(struct rusage)); in sys_wait4()
1053 struct rusage *rup; in proc_to_reap()
1203 struct rusage *rusage) in kern_wait() argument
1226 if (rusage != NULL) in kern_wait()
1237 if (rusage != NULL) in kern_wait()
1238 *rusage = wru.wru_self; in kern_wait()
H A Dkern_resource.c972 rufetchtd(struct thread *td, struct rusage *ru) in rufetchtd()
1161 struct rusage *rusage; member
1167 struct rusage ru; in sys_getrusage()
1172 error = copyout(&ru, uap->rusage, sizeof(struct rusage)); in sys_getrusage()
1177 kern_getrusage(struct thread *td, int who, struct rusage *rup) in kern_getrusage()
1212 rucollect(struct rusage *ru, struct rusage *ru2) in rucollect()
1226 ruadd(struct rusage *ru, struct rusage_ext *rux, struct rusage *ru2, in ruadd()
1281 rufetch(struct proc *p, struct rusage *ru) in rufetch()
1302 rufetchcalc(struct proc *p, struct rusage *ru, struct timeval *up, in rufetchcalc()
/freebsd/sys/amd64/linux32/
H A Dlinux32_machdep.c55 static void bsd_to_linux_rusage(struct rusage *ru, struct l_rusage *lru);
66 bsd_to_linux_rusage(struct rusage *ru, struct l_rusage *lru) in bsd_to_linux_rusage()
90 linux_copyout_rusage(struct rusage *ru, void *uaddr) in linux_copyout_rusage()
454 struct rusage s; in linux_getrusage()
460 if (uap->rusage != NULL) in linux_getrusage()
461 error = linux_copyout_rusage(&s, uap->rusage); in linux_getrusage()
/freebsd/usr.bin/time/
H A Dtime.c53 struct rusage *);
69 struct rusage ru; in main()
253 struct rusage *ru) in showtime()
/freebsd/tools/regression/environ/
H A Dtimings.c66 struct rusage endUsage; in main()
67 struct rusage startUsage; in main()
/freebsd/contrib/tcpdump/lbl/
H A Dos-sunos4.h188 struct rusage;
193 pid_t wait3(int *, int, struct rusage *);
/freebsd/contrib/libpcap/lbl/
H A Dos-sunos4.h188 struct rusage;
193 pid_t wait3(int *, int, struct rusage *);
/freebsd/lib/libc/gen/
H A Dclock.c46 struct rusage ru; in clock()
H A Dtimes.c46 struct rusage ru; in times()
/freebsd/contrib/tcsh/
H A Dsh.time.c71 (void) getrusage(RUSAGE_SELF, (struct rusage *) &ru0); in settimes()
72 (void) getrusage(RUSAGE_CHILDREN, (struct rusage *) &ruch); in settimes()
107 (void) getrusage(RUSAGE_SELF, (struct rusage *) &ru1); in dotime()
108 (void) getrusage(RUSAGE_CHILDREN, (struct rusage *) &ruch); in dotime()
/freebsd/tools/test/stress2/misc/
H A Dptrace.sh62 struct rusage ru;
H A Dvfork.sh83 struct rusage ru;
/freebsd/usr.sbin/pmc/
H A Dcmd_pmc_stat.c127 struct rusage *ru) in showtime()
245 pmc_stat_print_stat(struct rusage *ru) in pmc_stat_print_stat()
320 struct rusage ru; in pmc_stat_internal()
/freebsd/lib/libthr/thread/
H A Dthr_syscalls.c556 __thr_wait4(pid_t pid, int *status, int options, struct rusage *rusage) in __thr_wait4() argument
563 ret = __sys_wait4(pid, status, options, rusage); in __thr_wait4()
/freebsd/lib/libc/stdlib/
H A Dsystem.c99 pid = _wait4(savedpid, &pstat, 0, (struct rusage *)0); in __libc_system()

1234