mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] csa: Extended system accounting over taskstats
Add extended system accounting handling over taskstats interface. A CONFIG_TASK_XACCT flag is created to enable the extended accounting code. 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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f3cef7a994
commit
9acc185351
5 changed files with 52 additions and 0 deletions
|
@ -107,6 +107,17 @@ struct taskstats {
|
|||
__u64 ac_minflt; /* Minor Page Fault */
|
||||
__u64 ac_majflt; /* Major Page Fault */
|
||||
/* Basic Accounting Fields end */
|
||||
|
||||
/* Extended accounting fields start */
|
||||
__u64 acct_rss_mem1; /* accumulated rss usage */
|
||||
__u64 acct_vm_mem1; /* accumulated virtual memory usage */
|
||||
__u64 hiwater_rss; /* High-watermark of RSS usage */
|
||||
__u64 hiwater_vm; /* High-water virtual memory usage */
|
||||
__u64 read_char; /* bytes read */
|
||||
__u64 write_char; /* bytes written */
|
||||
__u64 read_syscalls; /* read syscalls */
|
||||
__u64 write_syscalls; /* write syscalls */
|
||||
/* Extended accounting fields end */
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue