Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-20 Thread Balbir Singh
>> Andrew, >> >> Thanks for reviewing the patchset, this patch is on my review and test >> queue (which has gotten rather long of late). I'll test it further and >> get back. > > I still think this version is very wrong. It makes the ->signal->stats > absolutely meaningless. Quoting myself: >

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-20 Thread Oleg Nesterov
On 09/20, Balbir Singh wrote: > > Andrew Morton wrote: > > On Tue, 18 Sep 2007 00:23:39 +0200 Guillaume Chazarain <[EMAIL PROTECTED]> > > wrote: > > > >> TASKSTATS_CMD_ATTR_TGID used to return only the delay accounting stats, not > >> the basic and extended accounting. With this patch, > >>

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-20 Thread Balbir Singh
Andrew Morton wrote: > On Tue, 18 Sep 2007 00:23:39 +0200 Guillaume Chazarain <[EMAIL PROTECTED]> > wrote: > >> TASKSTATS_CMD_ATTR_TGID used to return only the delay accounting stats, not >> the basic and extended accounting. With this patch, >> TASKSTATS_CMD_ATTR_TGID also aggregates the

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-20 Thread Andrew Morton
On Tue, 18 Sep 2007 00:23:39 +0200 Guillaume Chazarain <[EMAIL PROTECTED]> wrote: > TASKSTATS_CMD_ATTR_TGID used to return only the delay accounting stats, not > the basic and extended accounting. With this patch, > TASKSTATS_CMD_ATTR_TGID also aggregates the accounting info for all threads >

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-20 Thread Andrew Morton
On Tue, 18 Sep 2007 00:23:39 +0200 Guillaume Chazarain [EMAIL PROTECTED] wrote: TASKSTATS_CMD_ATTR_TGID used to return only the delay accounting stats, not the basic and extended accounting. With this patch, TASKSTATS_CMD_ATTR_TGID also aggregates the accounting info for all threads of a

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-20 Thread Balbir Singh
Andrew Morton wrote: On Tue, 18 Sep 2007 00:23:39 +0200 Guillaume Chazarain [EMAIL PROTECTED] wrote: TASKSTATS_CMD_ATTR_TGID used to return only the delay accounting stats, not the basic and extended accounting. With this patch, TASKSTATS_CMD_ATTR_TGID also aggregates the accounting info

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-20 Thread Oleg Nesterov
On 09/20, Balbir Singh wrote: Andrew Morton wrote: On Tue, 18 Sep 2007 00:23:39 +0200 Guillaume Chazarain [EMAIL PROTECTED] wrote: TASKSTATS_CMD_ATTR_TGID used to return only the delay accounting stats, not the basic and extended accounting. With this patch,

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-20 Thread Balbir Singh
Andrew, Thanks for reviewing the patchset, this patch is on my review and test queue (which has gotten rather long of late). I'll test it further and get back. I still think this version is very wrong. It makes the -signal-stats absolutely meaningless. Quoting myself: Hi, Oleg, Yes,

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-18 Thread Oleg Nesterov
On 09/18, Guillaume Chazarain wrote: > > @@ -508,7 +543,7 @@ void taskstats_exit(struct task_struct * > if (!stats) > goto err; > > - memcpy(stats, tsk->signal->stats, sizeof(*stats)); > + fill_tgid(tsk->pid, tsk, stats); No, no, this is wrong. tsk->signal->stats

Re: Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-18 Thread Oleg Nesterov
On 09/18, Guillaume Chazarain wrote: @@ -508,7 +543,7 @@ void taskstats_exit(struct task_struct * if (!stats) goto err; - memcpy(stats, tsk-signal-stats, sizeof(*stats)); + fill_tgid(tsk-pid, tsk, stats); No, no, this is wrong. tsk-signal-stats contains the

Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-17 Thread Guillaume Chazarain
TASKSTATS_CMD_ATTR_TGID used to return only the delay accounting stats, not the basic and extended accounting. With this patch, TASKSTATS_CMD_ATTR_TGID also aggregates the accounting info for all threads of a thread group. This makes TASKSTATS_CMD_ATTR_TGID usable in a similar fashion to

Add all thread stats for TASKSTATS_CMD_ATTR_TGID (v5)

2007-09-17 Thread Guillaume Chazarain
TASKSTATS_CMD_ATTR_TGID used to return only the delay accounting stats, not the basic and extended accounting. With this patch, TASKSTATS_CMD_ATTR_TGID also aggregates the accounting info for all threads of a thread group. This makes TASKSTATS_CMD_ATTR_TGID usable in a similar fashion to