diff options
author | Laurent Vivier <Laurent.Vivier@bull.net> | 2007-10-15 11:00:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:19 -0400 |
commit | 9ac52315d4cf5f561f36dabaf0720c00d3553162 (patch) | |
tree | afe7284f34a65d2540fcb2a9b764834f9d790fa7 /include/linux | |
parent | 5e84cfde51cf303d368fcb48f22059f37b3872de (diff) |
sched: guest CPU accounting: add guest-CPU /proc/<pid>/stat fields
like for cpustat, introduce the "gtime" (guest time of the task) and
"cgtime" (guest time of the task children) fields for the
tasks. Modify signal_struct and task_struct.
Modify /proc/<pid>/stat to display these new fields.
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Acked-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 3a6e05e77715..fefce22e4c16 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -517,6 +517,8 @@ struct signal_struct { | |||
517 | * in __exit_signal, except for the group leader. | 517 | * in __exit_signal, except for the group leader. |
518 | */ | 518 | */ |
519 | cputime_t utime, stime, cutime, cstime; | 519 | cputime_t utime, stime, cutime, cstime; |
520 | cputime_t gtime; | ||
521 | cputime_t cgtime; | ||
520 | unsigned long nvcsw, nivcsw, cnvcsw, cnivcsw; | 522 | unsigned long nvcsw, nivcsw, cnvcsw, cnivcsw; |
521 | unsigned long min_flt, maj_flt, cmin_flt, cmaj_flt; | 523 | unsigned long min_flt, maj_flt, cmin_flt, cmaj_flt; |
522 | unsigned long inblock, oublock, cinblock, coublock; | 524 | unsigned long inblock, oublock, cinblock, coublock; |
@@ -1048,6 +1050,7 @@ struct task_struct { | |||
1048 | 1050 | ||
1049 | unsigned int rt_priority; | 1051 | unsigned int rt_priority; |
1050 | cputime_t utime, stime; | 1052 | cputime_t utime, stime; |
1053 | cputime_t gtime; | ||
1051 | unsigned long nvcsw, nivcsw; /* context switch counts */ | 1054 | unsigned long nvcsw, nivcsw; /* context switch counts */ |
1052 | struct timespec start_time; /* monotonic time */ | 1055 | struct timespec start_time; /* monotonic time */ |
1053 | struct timespec real_start_time; /* boot based time */ | 1056 | struct timespec real_start_time; /* boot based time */ |