lkml.org 
[lkml]   [2007]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: per-thread rusage
On Wed, 4 Apr 2007 10:29:31 -0700
William Lee Irwin III <wli@holomorphy.com> wrote:

> It is not now possible for a thread to retrieve its own rusage in
> isolation. Its rusage is nowhere exposed without being intermixed with
> that of its sibling threads. This patch adds support for an
> RUSAGE_THREAD who argument that returns rusage for only the desired
> thread.
>

Please check mm, because we now return ru_inblock and ru_oublock as well.

r->ru_inblock = task_io_get_inblock(p);
r->ru_oublock = task_io_get_oublock(p);

-
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/

\
 
 \ /
  Last update: 2007-04-04 19:51    [W:0.270 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site