Messages in this thread | | | Date | Fri, 21 Apr 2006 09:41:30 +0200 | From | bert hubert <> | Subject | Re: [PATCH] Extending getrusage |
| |
On Thu, Apr 20, 2006 at 04:21:40PM -0700, Andrew Morton wrote: > I'd be reluctant to support this change without a compelling description of > why we actually want it.
It offers nothing that isn't available elsewhere (I think), except more cheaply. It also has the potential to be multiplatform one day. Right now to get the CPU usage of a random pid, one has to implement the equivalent of /proc/ parsing for each platform.
If at least Linux did 'getrusage for foreign pid', that would clean up things up somewhat already.
It might even mean a 'portable top', and who knows, more unixes might follow.
I for one would save work having a getrusage that does this.
Bert
-- http://www.PowerDNS.com Open source, database driven DNS Software http://netherlabs.nl Open and Closed source services - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |