mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Jay Lan](/assets/img/avatar_default.png)
There were a few accounting data/macros that are used in CSA but are #ifdef'ed inside CONFIG_BSD_PROCESS_ACCT. This patch is to change those ifdef's from CONFIG_BSD_PROCESS_ACCT to CONFIG_TASK_XACCT. A few defines are moved from kernel/acct.c and include/linux/acct.h to kernel/tsacct.c and include/linux/tsacct_kern.h. 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>
34 lines
920 B
C
34 lines
920 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);
|
|
extern void acct_update_integrals(struct task_struct *tsk);
|
|
extern void acct_clear_integrals(struct task_struct *tsk);
|
|
#else
|
|
static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
|
|
{}
|
|
static inline void acct_update_integrals(struct task_struct *tsk)
|
|
{}
|
|
static inline void acct_clear_integrals(struct task_struct *tsk)
|
|
{}
|
|
#endif /* CONFIG_TASK_XACCT */
|
|
|
|
#endif
|
|
|
|
|