[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20081125214508.22900.79143.stgit@elm3a70.beaverton.ibm.com>
Date: Tue, 25 Nov 2008 13:45:08 -0800
From: "Darrick J. Wong" <djwong@...ibm.com>
To: "Darrick J. Wong" <djwong@...ibm.com>,
Vaidyanathan Srinivasan <svaidy@...ux.vnet.ibm.com>,
Dipankar Sarma <dipankar.sarma@...ibm.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Balbir Singh <balbir@...ux.vnet.ibm.com>
Subject: [PATCH 6/6] getdelays.c: Show utime, stime,
and scaled variants of the two
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@...ibm.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists