Linux Audio

Check our new training course

Loading...
v5.9
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/*
 3 * tsacct_kern.h - kernel header for system accounting over taskstats interface
 4 *
 5 * Copyright (C) Jay Lan	SGI
 6 */
 7
 8#ifndef _LINUX_TSACCT_KERN_H
 9#define _LINUX_TSACCT_KERN_H
10
11#include <linux/taskstats.h>
12
13#ifdef CONFIG_TASKSTATS
14extern void bacct_add_tsk(struct user_namespace *user_ns,
15			  struct pid_namespace *pid_ns,
16			  struct taskstats *stats, struct task_struct *tsk);
17#else
18static inline void bacct_add_tsk(struct user_namespace *user_ns,
19				 struct pid_namespace *pid_ns,
20				 struct taskstats *stats, struct task_struct *tsk)
21{}
22#endif /* CONFIG_TASKSTATS */
23
24#ifdef CONFIG_TASK_XACCT
25extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
26extern void acct_update_integrals(struct task_struct *tsk);
27extern void acct_account_cputime(struct task_struct *tsk);
28extern void acct_clear_integrals(struct task_struct *tsk);
29#else
30static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
31{}
32static inline void acct_update_integrals(struct task_struct *tsk)
33{}
34static inline void acct_account_cputime(struct task_struct *tsk)
35{}
36static inline void acct_clear_integrals(struct task_struct *tsk)
37{}
38#endif /* CONFIG_TASK_XACCT */
39
40#endif
41
42
v3.1
 
 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 taskstats *stats, struct task_struct *tsk);
 
 
14#else
15static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
 
 
16{}
17#endif /* CONFIG_TASKSTATS */
18
19#ifdef CONFIG_TASK_XACCT
20extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
21extern void acct_update_integrals(struct task_struct *tsk);
 
22extern void acct_clear_integrals(struct task_struct *tsk);
23#else
24static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
25{}
26static inline void acct_update_integrals(struct task_struct *tsk)
 
 
27{}
28static inline void acct_clear_integrals(struct task_struct *tsk)
29{}
30#endif /* CONFIG_TASK_XACCT */
31
32#endif
33
34