diff options
author | Jay Lan <jlan@engr.sgi.com> | 2006-09-30 23:28:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 00:39:29 -0700 |
commit | 9acc1853519a0473620d424105f9d49ea5b4e62e (patch) | |
tree | fd4d03bf82ea604e71f8e805e557023226c2dd42 /include/linux/tsacct_kern.h | |
parent | f3cef7a99469afc159fec3a61b42dc7ca5b6824f (diff) |
[PATCH] csa: Extended system accounting over taskstats
Add extended system accounting handling over taskstats interface. A
CONFIG_TASK_XACCT flag is created to enable the extended accounting code.
Signed-off-by: Jay Lan <jlan@sgi.com>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Jes Sorensen <jes@sgi.com>
Cc: Chris Sturtivant <csturtiv@sgi.com>
Cc: Tony Ernst <tee@sgi.com>
Cc: Guillaume Thouvenin <guillaume.thouvenin@bull.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/tsacct_kern.h')
-rw-r--r-- | include/linux/tsacct_kern.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/tsacct_kern.h b/include/linux/tsacct_kern.h index 7e8196a0211..74102dcae67 100644 --- a/include/linux/tsacct_kern.h +++ b/include/linux/tsacct_kern.h @@ -16,4 +16,13 @@ static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *ts {} #endif /* CONFIG_TASKSTATS */ +#ifdef CONFIG_TASK_XACCT +extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p); +#else +static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p) +{} +#endif /* CONFIG_TASK_XACCT */ + #endif + + |