public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] per process I/O statistics for userspace
@ 2005-09-12 12:27 Levent Serinol
  2005-09-14  9:23 ` Pavel Machek
  0 siblings, 1 reply; 7+ messages in thread
From: Levent Serinol @ 2005-09-12 12:27 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton, jlan

with following patch, userspace processes/utilities will be able to
access per process I/O statistics. for example, top like utilites can
use this information.


--- linux-2.6.13/fs/proc/array.c.org    2005-08-29 02:41:01.000000000 +0300
+++ linux-2.6.13/fs/proc/array.c        2005-09-12 10:22:55.000000000 +0300
@@ -408,7 +408,7 @@ static int do_task_stat(struct task_stru

        res = sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \
 %lu %lu %lu %lu %lu %ld %ld %ld %ld %d %ld %llu %lu %ld %lu %lu %lu %lu %lu \
-%lu %lu %lu %lu %lu %lu %lu %lu %d %d %lu %lu\n",
+%lu %lu %lu %lu %lu %lu %lu %lu %d %d %lu %lu %llu %llu\n",
                task->pid,
                tcomm,
                state,
@@ -453,7 +453,9 @@ static int do_task_stat(struct task_stru
                task->exit_signal,
                task_cpu(task),
                task->rt_priority,
-               task->policy);
+               task->policy,
+               task->rchar,
+               task->wchar);
        if(mm)
                mmput(mm);
        return res;
--
Signed-off-by: Levent Serinol <lserinol@gmail.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-09-17 20:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-12 12:27 [PATCH] per process I/O statistics for userspace Levent Serinol
2005-09-14  9:23 ` Pavel Machek
2005-09-14 20:17   ` Levent Serinol
2005-09-14 20:24     ` Andrew Morton
2005-09-14 21:06       ` Jay Lan
2005-09-17 17:36         ` Levent Serinol
2005-09-17 20:58           ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox