Blame view

kernel/linux-imx6_3.14.28/include/linux/tsacct_kern.h 1.16 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  /*
   * 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 user_namespace *user_ns,
  			  struct pid_namespace *pid_ns,
  			  struct taskstats *stats, struct task_struct *tsk);
  #else
  static inline void bacct_add_tsk(struct user_namespace *user_ns,
  				 struct pid_namespace *pid_ns,
  				 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);
  extern void acct_update_integrals(struct task_struct *tsk);
  extern void acct_account_cputime(struct task_struct *tsk);
  extern void acct_clear_integrals(struct task_struct *tsk);
  #else
  static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
  {}
  static inline void acct_update_integrals(struct task_struct *tsk)
  {}
  static inline void acct_account_cputime(struct task_struct *tsk)
  {}
  static inline void acct_clear_integrals(struct task_struct *tsk)
  {}
  #endif /* CONFIG_TASK_XACCT */
  
  #endif