Home
last modified time | relevance | path

Searched refs:ru2 (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/tcsh/
H A Dsh.time.c167 ruadd(struct sysrusage *ru, struct sysrusage *ru2) in ruadd() argument
169 tvadd(&ru->ru_utime, &ru2->ru_utime); in ruadd()
170 tvadd(&ru->ru_stime, &ru2->ru_stime); in ruadd()
172 if (ru2->ru_maxrss > ru->ru_maxrss) in ruadd()
173 ru->ru_maxrss = ru2->ru_maxrss; in ruadd()
175 ru->ru_ixrss += ru2->ru_ixrss; in ruadd()
176 ru->ru_idrss += ru2->ru_idrss; in ruadd()
177 ru->ru_isrss += ru2->ru_isrss; in ruadd()
178 ru->ru_minflt += ru2->ru_minflt; in ruadd()
179 ru->ru_majflt += ru2->ru_majflt; in ruadd()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getrusage.c132 struct rusage ru1, ru2; in ATF_TC_BODY() local
145 (void)memset(&ru2, 0, sizeof(struct rusage)); in ATF_TC_BODY()
153 ATF_REQUIRE(getrusage(RUSAGE_SELF, &ru2) == 0); in ATF_TC_BODY()
155 if (timercmp(&ru2.ru_utime, &ru1.ru_utime, <) != 0) in ATF_TC_BODY()
/freebsd/sys/sys/
H A Dresourcevar.h178 void ruadd(struct rusage *ru, struct rusage_ext *rux, struct rusage *ru2,
180 void rucollect(struct rusage *ru, struct rusage *ru2);
/freebsd/sys/kern/
H A Dkern_resource.c1212 rucollect(struct rusage *ru, struct rusage *ru2) in rucollect() argument
1217 if (ru->ru_maxrss < ru2->ru_maxrss) in rucollect()
1218 ru->ru_maxrss = ru2->ru_maxrss; in rucollect()
1220 ip2 = &ru2->ru_first; in rucollect()
1226 ruadd(struct rusage *ru, struct rusage_ext *rux, struct rusage *ru2, in ruadd() argument
1237 rucollect(ru, ru2); in ruadd()