diff options
-rw-r--r-- | tools/perf/builtin-stat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index c95dbdad98c3..d4d1b77da0bd 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -1094,6 +1094,8 @@ static void abs_printout(int id, int nr, struct perf_evsel *evsel, double avg) | |||
1094 | if (total) { | 1094 | if (total) { |
1095 | ratio = avg / total; | 1095 | ratio = avg / total; |
1096 | fprintf(output, " # %5.2f insns per cycle ", ratio); | 1096 | fprintf(output, " # %5.2f insns per cycle ", ratio); |
1097 | } else { | ||
1098 | fprintf(output, " "); | ||
1097 | } | 1099 | } |
1098 | total = avg_stats(&runtime_stalled_cycles_front_stats[cpu]); | 1100 | total = avg_stats(&runtime_stalled_cycles_front_stats[cpu]); |
1099 | total = max(total, avg_stats(&runtime_stalled_cycles_back_stats[cpu])); | 1101 | total = max(total, avg_stats(&runtime_stalled_cycles_back_stats[cpu])); |
@@ -1163,6 +1165,8 @@ static void abs_printout(int id, int nr, struct perf_evsel *evsel, double avg) | |||
1163 | if (total) { | 1165 | if (total) { |
1164 | ratio = avg / total; | 1166 | ratio = avg / total; |
1165 | fprintf(output, " # %8.3f GHz ", ratio); | 1167 | fprintf(output, " # %8.3f GHz ", ratio); |
1168 | } else { | ||
1169 | fprintf(output, " "); | ||
1166 | } | 1170 | } |
1167 | } else if (transaction_run && | 1171 | } else if (transaction_run && |
1168 | perf_evsel__cmp(evsel, nth_evsel(T_CYCLES_IN_TX))) { | 1172 | perf_evsel__cmp(evsel, nth_evsel(T_CYCLES_IN_TX))) { |