diff options
Diffstat (limited to 'Documentation/accounting/getdelays.c')
-rw-r--r-- | Documentation/accounting/getdelays.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/Documentation/accounting/getdelays.c b/Documentation/accounting/getdelays.c index 3f7755f3963f..cc49400b4af8 100644 --- a/Documentation/accounting/getdelays.c +++ b/Documentation/accounting/getdelays.c | |||
@@ -201,13 +201,19 @@ void print_delayacct(struct taskstats *t) | |||
201 | "RECLAIM %12s%15s\n" | 201 | "RECLAIM %12s%15s\n" |
202 | " %15llu%15llu\n", | 202 | " %15llu%15llu\n", |
203 | "count", "real total", "virtual total", "delay total", | 203 | "count", "real total", "virtual total", "delay total", |
204 | t->cpu_count, t->cpu_run_real_total, t->cpu_run_virtual_total, | 204 | (unsigned long long)t->cpu_count, |
205 | t->cpu_delay_total, | 205 | (unsigned long long)t->cpu_run_real_total, |
206 | (unsigned long long)t->cpu_run_virtual_total, | ||
207 | (unsigned long long)t->cpu_delay_total, | ||
206 | "count", "delay total", | 208 | "count", "delay total", |
207 | t->blkio_count, t->blkio_delay_total, | 209 | (unsigned long long)t->blkio_count, |
208 | "count", "delay total", t->swapin_count, t->swapin_delay_total, | 210 | (unsigned long long)t->blkio_delay_total, |
209 | "count", "delay total", | 211 | "count", "delay total", |
210 | t->freepages_count, t->freepages_delay_total); | 212 | (unsigned long long)t->swapin_count, |
213 | (unsigned long long)t->swapin_delay_total, | ||
214 | "count", "delay total", | ||
215 | (unsigned long long)t->freepages_count, | ||
216 | (unsigned long long)t->freepages_delay_total); | ||
211 | } | 217 | } |
212 | 218 | ||
213 | void task_context_switch_counts(struct taskstats *t) | 219 | void task_context_switch_counts(struct taskstats *t) |
@@ -215,14 +221,17 @@ void task_context_switch_counts(struct taskstats *t) | |||
215 | printf("\n\nTask %15s%15s\n" | 221 | printf("\n\nTask %15s%15s\n" |
216 | " %15llu%15llu\n", | 222 | " %15llu%15llu\n", |
217 | "voluntary", "nonvoluntary", | 223 | "voluntary", "nonvoluntary", |
218 | t->nvcsw, t->nivcsw); | 224 | (unsigned long long)t->nvcsw, (unsigned long long)t->nivcsw); |
219 | } | 225 | } |
220 | 226 | ||
221 | void print_cgroupstats(struct cgroupstats *c) | 227 | void print_cgroupstats(struct cgroupstats *c) |
222 | { | 228 | { |
223 | printf("sleeping %llu, blocked %llu, running %llu, stopped %llu, " | 229 | printf("sleeping %llu, blocked %llu, running %llu, stopped %llu, " |
224 | "uninterruptible %llu\n", c->nr_sleeping, c->nr_io_wait, | 230 | "uninterruptible %llu\n", (unsigned long long)c->nr_sleeping, |
225 | c->nr_running, c->nr_stopped, c->nr_uninterruptible); | 231 | (unsigned long long)c->nr_io_wait, |
232 | (unsigned long long)c->nr_running, | ||
233 | (unsigned long long)c->nr_stopped, | ||
234 | (unsigned long long)c->nr_uninterruptible); | ||
226 | } | 235 | } |
227 | 236 | ||
228 | 237 | ||