diff options
Diffstat (limited to 'Documentation/accounting/taskstats-struct.txt')
-rw-r--r-- | Documentation/accounting/taskstats-struct.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/accounting/taskstats-struct.txt b/Documentation/accounting/taskstats-struct.txt index 661c797eaf79..8aa7529f8258 100644 --- a/Documentation/accounting/taskstats-struct.txt +++ b/Documentation/accounting/taskstats-struct.txt | |||
@@ -22,6 +22,8 @@ There are three different groups of fields in the struct taskstats: | |||
22 | /* Extended accounting fields end */ | 22 | /* Extended accounting fields end */ |
23 | Their values are collected if CONFIG_TASK_XACCT is set. | 23 | Their values are collected if CONFIG_TASK_XACCT is set. |
24 | 24 | ||
25 | 4) Per-task and per-thread context switch count statistics | ||
26 | |||
25 | Future extension should add fields to the end of the taskstats struct, and | 27 | Future extension should add fields to the end of the taskstats struct, and |
26 | should not change the relative position of each field within the struct. | 28 | should not change the relative position of each field within the struct. |
27 | 29 | ||
@@ -158,4 +160,8 @@ struct taskstats { | |||
158 | 160 | ||
159 | /* Extended accounting fields end */ | 161 | /* Extended accounting fields end */ |
160 | 162 | ||
163 | 4) Per-task and per-thread statistics | ||
164 | __u64 nvcsw; /* Context voluntary switch counter */ | ||
165 | __u64 nivcsw; /* Context involuntary switch counter */ | ||
166 | |||
161 | } | 167 | } |