perf stat: Allow to specify specific metric column len
authorJiri Olsa <jolsa@kernel.org>
Wed, 6 Jun 2018 22:15:09 +0000 (00:15 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 7 Jun 2018 19:01:44 +0000 (16:01 -0300)
commitc1a1f5d9da800dc715d8c1d8a9692c63c70c2955
tree835bae2ebe69dc72fe086f6739e1107cfe04fb29
parentf515572734fb323aa0efe9ea2c546cd7fee327f7
perf stat: Allow to specify specific metric column len

The following change will introduce new metrics, that doesn't need such
wide hard coded spacing. Switch METRIC_ONLY_LEN macro usage with
metric_only_len variable.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20180606221513.11302-7-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c