MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ruadd

Function ruadd

freebsd/kern/kern_resource.c:1109–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109void
1110ruadd(struct rusage *ru, struct rusage_ext *rux, struct rusage *ru2,
1111 struct rusage_ext *rux2)
1112{
1113
1114 rux->rux_runtime += rux2->rux_runtime;
1115 rux->rux_uticks += rux2->rux_uticks;
1116 rux->rux_sticks += rux2->rux_sticks;
1117 rux->rux_iticks += rux2->rux_iticks;
1118 rux->rux_uu += rux2->rux_uu;
1119 rux->rux_su += rux2->rux_su;
1120 rux->rux_tu += rux2->rux_tu;
1121 rucollect(ru, ru2);
1122}
1123
1124/*
1125 * Aggregate tick counts into the proc's rusage_ext.

Callers 2

exit1Function · 0.85
proc_reapFunction · 0.85

Calls 1

rucollectFunction · 0.85

Tested by

no test coverage detected