[PATCH] csa: basic accounting over taskstats
Add some basic accounting fields to the taskstats struct, add a new kernel/tsacct.c to handle basic accounting data handling upon exit. A handle is added to taskstats.c to invoke the basic accounting data handling. Signed-off-by: Jay Lan <jlan@sgi.com> Cc: Shailabh Nagar <nagar@watson.ibm.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Jes Sorensen <jes@sgi.com> Cc: Chris Sturtivant <csturtiv@sgi.com> Cc: Tony Ernst <tee@sgi.com> Cc: Guillaume Thouvenin <guillaume.thouvenin@bull.net> Cc: "Michal Piotrowski" <michal.k.k.piotrowski@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
19
include/linux/tsacct_kern.h
Normal file
19
include/linux/tsacct_kern.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* 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_TASKSTATS
|
||||
extern void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk);
|
||||
#else
|
||||
static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
|
||||
{}
|
||||
#endif /* CONFIG_TASKSTATS */
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user