]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/linux/tsacct_kern.h
[PATCH] csa: Extended system accounting over taskstats
[linux-2.6-omap-h63xx.git] / include / linux / tsacct_kern.h
1 /*
2  * tsacct_kern.h - kernel header for system accounting over taskstats interface
3  *
4  * Copyright (C) Jay Lan        SGI
5  */
6
7 #ifndef _LINUX_TSACCT_KERN_H
8 #define _LINUX_TSACCT_KERN_H
9
10 #include <linux/taskstats.h>
11
12 #ifdef CONFIG_TASKSTATS
13 extern void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk);
14 #else
15 static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
16 {}
17 #endif /* CONFIG_TASKSTATS */
18
19 #ifdef CONFIG_TASK_XACCT
20 extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
21 #else
22 static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
23 {}
24 #endif /* CONFIG_TASK_XACCT */
25
26 #endif
27
28