Blame view

include/linux/tsacct_kern.h 920 Bytes
f3cef7a99   Jay Lan   [PATCH] csa: basi...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  /*
   * 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 */
9acc18535   Jay Lan   [PATCH] csa: Exte...
18
19
  #ifdef CONFIG_TASK_XACCT
  extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
8f0ab5147   Jay Lan   [PATCH] csa: conv...
20
21
  extern void acct_update_integrals(struct task_struct *tsk);
  extern void acct_clear_integrals(struct task_struct *tsk);
9acc18535   Jay Lan   [PATCH] csa: Exte...
22
23
24
  #else
  static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
  {}
8f0ab5147   Jay Lan   [PATCH] csa: conv...
25
26
27
28
  static inline void acct_update_integrals(struct task_struct *tsk)
  {}
  static inline void acct_clear_integrals(struct task_struct *tsk)
  {}
9acc18535   Jay Lan   [PATCH] csa: Exte...
29
  #endif /* CONFIG_TASK_XACCT */
f3cef7a99   Jay Lan   [PATCH] csa: basi...
30
  #endif
9acc18535   Jay Lan   [PATCH] csa: Exte...
31