Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243/* SPDX-License-Identifier: GPL-2.0 *//* * 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_TASKSTATSextern void bacct_add_tsk(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct taskstats *stats, struct task_struct *tsk);#elsestatic 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_XACCTextern 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);#elsestatic 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