summaryrefslogtreecommitdiff
path: root/include/linux/resource.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2004-09-07 17:49:24 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-07 17:49:24 -0700
commitd8888069ef4fb6acb3c985e707893a693fac28b9 (patch)
treeb6c1849f53479dcd07a8e73b0c7c22540df529ff /include/linux/resource.h
parentfad0738bb26cfbdab6952e3cf480622881760276 (diff)
[PATCH] Remove RUSAGE_GROUP
After my cleanup of the rusage semantics was so quickly taken in by Andrew and Linus without comment, I wonder if I should not have tried to be so accommodating of potential objections as I was. :-) In my original posting, I solicited comment on whether introducing RUSAGE_GROUP as distinct from RUSAGE_SELF was warranted. Note that we've now changed the behavior of the times system call when using CLONE_THREAD, so changing getrusage RUSAGE_SELF to match would be consistent. I think that changing the meaning of the old RUSAGE_SELF value is preferable to introducing the new value for the proper POSIX getrusage behavior. This patch against Linus's current tree dumps RUSAGE_GROUP and makes RUSAGE_SELF have the fixed behavior. If there is interest in having a new explicit interface to sample a single thread's stats alone, then I think that would be better done by introducing a new value for RUSAGE_THREAD. This is trivial to implement, but I won't offer patches bloating the interface if noone is actually interested in using it. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/resource.h')
-rw-r--r--include/linux/resource.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/resource.h b/include/linux/resource.h
index 3c848324df44..21a86cb6acdb 100644
--- a/include/linux/resource.h
+++ b/include/linux/resource.h
@@ -17,7 +17,6 @@
#define RUSAGE_SELF 0
#define RUSAGE_CHILDREN (-1)
#define RUSAGE_BOTH (-2) /* sys_wait4() uses this */
-#define RUSAGE_GROUP (-3) /* thread group sum + dead threads */
struct rusage {
struct timeval ru_utime; /* user time used */