[PATCH 6/6] getdelays.c: Show utime, stime,and scaled variants of the two

From: Darrick J. Wong
Date: Tue Nov 25 2008 - 16:48:48 EST


Since utime, stime, scaled_utime and scaled_stime have been available
via the taskstats interface for a while, modify the helper program to
show those values.

Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
---
Documentation/accounting/getdelays.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Documentation/accounting/getdelays.c b/Documentation/accounting/getdelays.c
index cc49400..1894894 100644
--- a/Documentation/accounting/getdelays.c
+++ b/Documentation/accounting/getdelays.c
@@ -199,7 +199,8 @@ void print_delayacct(struct taskstats *t)
"SWAP %15s%15s\n"
" %15llu%15llu\n"
"RECLAIM %12s%15s\n"
- " %15llu%15llu\n",
+ " %15llu%15llu\n"
+ "TIME utime=%llu stime=%llu sutime=%llu sstime=%llu\n",
"count", "real total", "virtual total", "delay total",
(unsigned long long)t->cpu_count,
(unsigned long long)t->cpu_run_real_total,
@@ -213,7 +214,11 @@ void print_delayacct(struct taskstats *t)
(unsigned long long)t->swapin_delay_total,
"count", "delay total",
(unsigned long long)t->freepages_count,
- (unsigned long long)t->freepages_delay_total);
+ (unsigned long long)t->freepages_delay_total,
+ (unsigned long long)t->ac_utime,
+ (unsigned long long)t->ac_stime,
+ (unsigned long long)t->ac_utimescaled,
+ (unsigned long long)t->ac_stimescaled);
}

void task_context_switch_counts(struct taskstats *t)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/