Re: [PATCH] distinct tgid/tid I/O statistics

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Righi
Date: Monday, May 19, 2008 - 11:33 am

Balbir Singh wrote:

Maybe:

#ifdef CONFIG_TASK_XACCT
#define _task_xacct 1
#else
#define _task_xacct 0
#endif

and:

rchar = __task_xacct ? task->rchar : 0;
wchar = __task_xacct ? task->wchar : 0;
syscr = __task_xacct ? task->syscr : 0;
syscw = __task_xacct ? task->syscw : 0;

But it's very ugly anyway. It seems a similar problem has been raised
here:

http://lkml.org/lkml/2008/5/17/154

Apparently with no solution.


mmmh... we must surely move the threads stats accounting code out of
the if statement. OK, I'll post a new patch soon.

Thanks,
-Andrea

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] distinct tgid/tid I/O statistics, Andrea Righi, (Mon May 19, 11:33 am)
Re: [PATCH] distinct tgid/tid I/O statistics, Andrea Righi, (Mon May 19, 1:08 pm)
[PATCH v2] distinct tgid/tid I/O statistics, Andrea Righi, (Mon May 19, 2:57 pm)