You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|