cregit-Linux how code gets into the kernel

Release 4.12 include/linux/sched/xacct.h

#ifndef _LINUX_SCHED_XACCT_H

#define _LINUX_SCHED_XACCT_H

/*
 * Extended task accounting methods:
 */

#include <linux/sched.h>

#ifdef CONFIG_TASK_XACCT

static inline void add_rchar(struct task_struct *tsk, ssize_t amt) { tsk->ioac.rchar += amt; }

Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar23100.00%1100.00%
Total23100.00%1100.00%


static inline void add_wchar(struct task_struct *tsk, ssize_t amt) { tsk->ioac.wchar += amt; }

Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar23100.00%1100.00%
Total23100.00%1100.00%


static inline void inc_syscr(struct task_struct *tsk) { tsk->ioac.syscr++; }

Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar19100.00%1100.00%
Total19100.00%1100.00%


static inline void inc_syscw(struct task_struct *tsk) { tsk->ioac.syscw++; }

Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar19100.00%1100.00%
Total19100.00%1100.00%

#else
static inline void add_rchar(struct task_struct *tsk, ssize_t amt) { }

Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar14100.00%1100.00%
Total14100.00%1100.00%


static inline void add_wchar(struct task_struct *tsk, ssize_t amt) { }

Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar14100.00%1100.00%
Total14100.00%1100.00%


static inline void inc_syscr(struct task_struct *tsk) { }

Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar11100.00%1100.00%
Total11100.00%1100.00%


static inline void inc_syscw(struct task_struct *tsk) { }

Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar11100.00%1100.00%
Total11100.00%1100.00%

#endif #endif /* _LINUX_SCHED_XACCT_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Ingo Molnar154100.00%2100.00%
Total154100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.