mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
9acc185351
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>
28 lines
664 B
C
28 lines
664 B
C
/*
|
|
* tsacct_kern.h - kernel header for system accounting over taskstats interface
|
|
*
|
|
* Copyright (C) Jay Lan SGI
|
|
*/
|
|
|
|
#ifndef _LINUX_TSACCT_KERN_H
|
|
#define _LINUX_TSACCT_KERN_H
|
|
|
|
#include <linux/taskstats.h>
|
|
|
|
#ifdef CONFIG_TASKSTATS
|
|
extern void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk);
|
|
#else
|
|
static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
|
|
{}
|
|
#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
|
|
|
|
|