aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2010-10-11 18:08:37 +0100
committerEric B Munson <emunson@mgebm.net>2010-10-11 14:49:55 -0700
commita99dfd5a89b9be9349ada6280879b63f32df8b19 (patch)
tree37e4e576d68069a4b6094fc98b29aea436dea6aa
parentbac952da3a311edf4a869741511bde87ac7c4dad (diff)
downloadlibhugetlbfs-a99dfd5a89b9be9349ada6280879b63f32df8b19.tar.gz
cpupcstat: Print a more appropriate header for TLB miss time percentage
The current header is misleading. Fix it. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Acked-by: Eric B Munson <emunson@mgebm.net> Signed-off-by: Eric B Munson <emunson@mgebm.net>
-rwxr-xr-xcpupcstat5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpupcstat b/cpupcstat
index 8b1d332..3afb358 100755
--- a/cpupcstat
+++ b/cpupcstat
@@ -116,9 +116,12 @@ sub run_profile()
if ($instruct_ratio) {
printf("%24s\n", "Instructions/TLB Miss\n");
$ins_scale = $collector->samples("instructions");
- } elsif ($cycle_ratio || $service) {
+ } elsif ($cycle_ratio) {
printf("%24s\n", "Cycles/TLB Miss\n");
$cyc_scale = $collector->samples("timer");
+ } elsif ($service) {
+ printf("%24s\n", "TLB Miss %age Time\n");
+ $cyc_scale = $collector->samples("timer");
} else {
print("\n");
}