]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/sched/xacct.h
1 #ifndef _LINUX_SCHED_XACCT_H
2 #define _LINUX_SCHED_XACCT_H
5 * Extended task accounting methods:
8 #include <linux/sched.h>
10 #ifdef CONFIG_TASK_XACCT
11 static inline void add_rchar(struct task_struct
*tsk
, ssize_t amt
)
13 tsk
->ioac
.rchar
+= amt
;
16 static inline void add_wchar(struct task_struct
*tsk
, ssize_t amt
)
18 tsk
->ioac
.wchar
+= amt
;
21 static inline void inc_syscr(struct task_struct
*tsk
)
26 static inline void inc_syscw(struct task_struct
*tsk
)
31 static inline void add_rchar(struct task_struct
*tsk
, ssize_t amt
)
35 static inline void add_wchar(struct task_struct
*tsk
, ssize_t amt
)
39 static inline void inc_syscr(struct task_struct
*tsk
)
43 static inline void inc_syscw(struct task_struct
*tsk
)
48 #endif /* _LINUX_SCHED_XACCT_H */