aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r--tools/perf/builtin-stat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 700b47849101..ce2266c5cd52 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -997,10 +997,10 @@ static void abs_printout(int cpu, int nr, struct perf_evsel *evsel, double avg)
997 } else if (perf_evsel__match(evsel, HARDWARE, HW_CPU_CYCLES)) { 997 } else if (perf_evsel__match(evsel, HARDWARE, HW_CPU_CYCLES)) {
998 total = avg_stats(&runtime_nsecs_stats[cpu]); 998 total = avg_stats(&runtime_nsecs_stats[cpu]);
999 999
1000 if (total) 1000 if (total) {
1001 ratio = 1.0 * avg / total; 1001 ratio = avg / total;
1002 1002 fprintf(output, " # %8.3f GHz ", ratio);
1003 fprintf(output, " # %8.3f GHz ", ratio); 1003 }
1004 } else if (transaction_run && 1004 } else if (transaction_run &&
1005 perf_evsel__cmp(evsel, nth_evsel(T_CYCLES_IN_TX))) { 1005 perf_evsel__cmp(evsel, nth_evsel(T_CYCLES_IN_TX))) {
1006 total = avg_stats(&runtime_cycles_stats[cpu]); 1006 total = avg_stats(&runtime_cycles_stats[cpu]);