tsacct_kern.h 664 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * tsacct_kern.h - kernel header for system accounting over taskstats interface
  3. *
  4. * Copyright (C) Jay Lan SGI
  5. */
  6. #ifndef _LINUX_TSACCT_KERN_H
  7. #define _LINUX_TSACCT_KERN_H
  8. #include <linux/taskstats.h>
  9. #ifdef CONFIG_TASKSTATS
  10. extern void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk);
  11. #else
  12. static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
  13. {}
  14. #endif /* CONFIG_TASKSTATS */
  15. #ifdef CONFIG_TASK_XACCT
  16. extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
  17. #else
  18. static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
  19. {}
  20. #endif /* CONFIG_TASK_XACCT */
  21. #endif