blob: 7e50ac795b0b05b55b747fc96b07da8bcfcb6977 [file] [log] [blame]
Jay Lanf3cef7a2006-09-30 23:28:55 -07001/*
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
13extern void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk);
14#else
15static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
16{}
17#endif /* CONFIG_TASKSTATS */
18
Jay Lan9acc1852006-09-30 23:28:58 -070019#ifdef CONFIG_TASK_XACCT
20extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
Jay Lan8f0ab512006-09-30 23:28:59 -070021extern void acct_update_integrals(struct task_struct *tsk);
22extern void acct_clear_integrals(struct task_struct *tsk);
Jay Lan9acc1852006-09-30 23:28:58 -070023#else
24static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
25{}
Jay Lan8f0ab512006-09-30 23:28:59 -070026static inline void acct_update_integrals(struct task_struct *tsk)
27{}
28static inline void acct_clear_integrals(struct task_struct *tsk)
29{}
Jay Lan9acc1852006-09-30 23:28:58 -070030#endif /* CONFIG_TASK_XACCT */
31
Jay Lanf3cef7a2006-09-30 23:28:55 -070032#endif
Jay Lan9acc1852006-09-30 23:28:58 -070033
34