Commit 95f04328 authored by Michael Petlan's avatar Michael Petlan Committed by Arnaldo Carvalho de Melo

perf list: Unify metric group description format with PMU event description

PMU event descriptions use 7 spaces + '[' or 8 spaces as indentation.
Metric groups used a tab + '['. This patch unifies it to the way PMU
event descriptions are indented.

BEFORE:

  $ perf list
  [...]
  Metric Groups:

  DSB:
    DSB_Coverage
	  [Fraction of Uops delivered by the DSB (aka Decoded Icache; or Uop Cache)]
  [...]

AFTER:

  $ perf list
  [...]
  Metric Groups:

  DSB:
    DSB_Coverage
         [Fraction of Uops delivered by the DSB (aka Decoded Icache; or Uop Cache)]
  [...]
Signed-off-by: default avatarMichael Petlan <mpetlan@redhat.com>
Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Kim Phillips <kim.phillips@arm.com>
LPU-Reference: 771439042.22924766.1532986504631.JavaMail.zimbra@redhat.com
Link: https://lkml.kernel.org/n/tip-mlo850517m6u1rbjndvd1bwr@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b9b77222
...@@ -326,8 +326,8 @@ void metricgroup__print(bool metrics, bool metricgroups, char *filter, ...@@ -326,8 +326,8 @@ void metricgroup__print(bool metrics, bool metricgroups, char *filter,
if (raw) if (raw)
s = (char *)pe->metric_name; s = (char *)pe->metric_name;
else { else {
if (asprintf(&s, "%s\n\t[%s]", if (asprintf(&s, "%s\n%*s%s]",
pe->metric_name, pe->desc) < 0) pe->metric_name, 8, "[", pe->desc) < 0)
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment