diff options
author | Andi Kleen <ak@linux.intel.com> | 2019-06-28 18:07:36 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-02 15:08:16 -0400 |
commit | 9c344d15f5783260f57c711f3fce72dd744bebe2 (patch) | |
tree | 3b0025570c42b0d2bbee3aefaa19a54d5110168e /tools/perf | |
parent | 4df79ba3eb1b82e2939fb984b36a0e71bbed611b (diff) |
perf list: Avoid extra : for --raw metrics
When printing the metrics raw, don't print : after the metricgroups.
This helps the command line completion to complete those too.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20190628220737.13259-2-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/metricgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index bc25995255ab..7d36435fa84c 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/perf/util/metricgroup.c | |||
@@ -375,7 +375,7 @@ void metricgroup__print(bool metrics, bool metricgroups, char *filter, | |||
375 | struct mep *me = container_of(node, struct mep, nd); | 375 | struct mep *me = container_of(node, struct mep, nd); |
376 | 376 | ||
377 | if (metricgroups) | 377 | if (metricgroups) |
378 | printf("%s%s%s", me->name, metrics ? ":" : "", raw ? " " : "\n"); | 378 | printf("%s%s%s", me->name, metrics && !raw ? ":" : "", raw ? " " : "\n"); |
379 | if (metrics) | 379 | if (metrics) |
380 | metricgroup__print_strlist(me->metrics, raw); | 380 | metricgroup__print_strlist(me->metrics, raw); |
381 | next = rb_next(node); | 381 | next = rb_next(node); |