diff options
| author | David van Moolenbroek <david@minix3.org> | 2015-09-27 17:32:10 +0000 |
|---|---|---|
| committer | David van Moolenbroek <david@minix3.org> | 2015-09-28 14:06:59 +0000 |
| commit | bc2d75fa05289d971b2669f2f8593daa1524eb58 (patch) | |
| tree | 972c065fedc52b79b42e67c5133d04028809c032 /minix/kernel/system?id=bc2d75fa05289d971b2669f2f8593daa1524eb58 | |
| parent | 0f8e20a12ce891f0ea230592ef663a200f7166ca (diff) | |
Rework getrusage(2) infrastructure
- the userland call is now made to PM only, and PM relays the call to
other servers as appropriate; this is an ABI change that will
ultimately allow us to add proper support for wait3() and the like;
for the moment there is backward compatibility;
- the getrusage-specific kernel subcall has been removed, as it
provided only redundant functionality, and did not provide the means
to be extended correctly in the future - namely, allowing the kernel
to return different values depending on whether resource usage of
the caller (self) or its children was requested;
- VM is now told whether resource usage of the caller (self) or its
children is requested, and it refrains from filling in wrong values
for information it does not have;
- VM now uses the correct unit for the ru_maxrss values;
- VFS is cut out of the loop entirely, since it does not provide any
values at the moment; a comment explains how it should be readded.
Change-Id: I27b0f488437dec3d8e784721c67b03f2f853120f
Diffstat (limited to 'minix/kernel/system?id=bc2d75fa05289d971b2669f2f8593daa1524eb58')
0 files changed, 0 insertions, 0 deletions
