From: Pavel Machek <pavel@ucw.cz>
To: Levent Serinol <lserinol@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>,
jlan@engr.sgi.com
Subject: Re: [PATCH] per process I/O statistics for userspace
Date: Wed, 14 Sep 2005 11:23:38 +0200 [thread overview]
Message-ID: <20050914092338.GA2260@elf.ucw.cz> (raw)
In-Reply-To: <2c1942a7050912052759c7f730@mail.gmail.com>
Hi!
> 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.
Nice, but should not this perhaps go into the other file? Adding more
integers into long line does not seem nice...
Pavel
>
> --- 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>
> -
> 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/
--
if you have sharp zaurus hardware you don't need... you know my address
next prev parent reply other threads:[~2005-09-14 9:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-12 12:27 Levent Serinol
2005-09-14 9:23 ` Pavel Machek [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050914092338.GA2260@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@osdl.org \
--cc=jlan@engr.sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lserinol@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®