linux/include/linux/tsacct_kern.h
<<
>>
Prefs
   1/*
   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 user_namespace *user_ns,
  14                          struct pid_namespace *pid_ns,
  15                          struct taskstats *stats, struct task_struct *tsk);
  16#else
  17static inline void bacct_add_tsk(struct user_namespace *user_ns,
  18                                 struct pid_namespace *pid_ns,
  19                                 struct taskstats *stats, struct task_struct *tsk)
  20{}
  21#endif /* CONFIG_TASKSTATS */
  22
  23#ifdef CONFIG_TASK_XACCT
  24extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
  25extern void acct_update_integrals(struct task_struct *tsk);
  26extern void acct_clear_integrals(struct task_struct *tsk);
  27#else
  28static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
  29{}
  30static inline void acct_update_integrals(struct task_struct *tsk)
  31{}
  32static inline void acct_clear_integrals(struct task_struct *tsk)
  33{}
  34#endif /* CONFIG_TASK_XACCT */
  35
  36#endif
  37
  38
  39
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.