perf stat: Add missing aggregation headers for --metric-only CSV
authorAndi Kleen <ak@linux.intel.com>
Tue, 24 May 2016 19:52:39 +0000 (12:52 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jun 2016 20:43:12 +0000 (17:43 -0300)
commitc51fd6395d67a6d414834db7f892c95594247d6f
tree43f9cc6f79f78e967385da90757e8faec92daeef
parent41c8ca2a924b359e8f1768f8550487cd13a1ec03
perf stat: Add missing aggregation headers for --metric-only CSV

When in CSV mode --metric-only outputs an header, unlike the other
modes. Previously it did not properly print headers for the aggregation
columns, so the headers were actually shifted against the real values.

Fix this here by outputting the correct headers for CSV.

v2: Indent array.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1464119559-17203-4-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c