diff options
Diffstat (limited to 'tools/perf/util/stat-shadow.c')
| -rw-r--r-- | tools/perf/util/stat-shadow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c index c323cce97d98..ac10cc675d39 100644 --- a/tools/perf/util/stat-shadow.c +++ b/tools/perf/util/stat-shadow.c | |||
| @@ -803,7 +803,9 @@ void perf_stat__print_shadow_stats(struct perf_evsel *evsel, | |||
| 803 | 803 | ||
| 804 | if (expr__parse(&ratio, &pctx, &p) == 0) | 804 | if (expr__parse(&ratio, &pctx, &p) == 0) |
| 805 | print_metric(ctxp, NULL, "%8.1f", | 805 | print_metric(ctxp, NULL, "%8.1f", |
| 806 | out->force_header ? evsel->name : "", | 806 | evsel->metric_name ? |
| 807 | evsel->metric_name : | ||
| 808 | out->force_header ? evsel->name : "", | ||
| 807 | ratio); | 809 | ratio); |
| 808 | else | 810 | else |
| 809 | print_metric(ctxp, NULL, NULL, "", 0); | 811 | print_metric(ctxp, NULL, NULL, "", 0); |
