perf stat: Move 'metric_only_len' to 'struct perf_stat_config'
Move the static 'metric_only_len' variable to 'struct perf_stat_config', so that it can be passed around and used outside the 'perf stat' command. 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: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20180830063252.23729-29-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
d97ae04b3d
commit
ee1760e2cf
@@ -99,6 +99,7 @@ struct perf_stat_config {
|
||||
unsigned int timeout;
|
||||
unsigned int initial_delay;
|
||||
unsigned int unit_width;
|
||||
unsigned int metric_only_len;
|
||||
int times;
|
||||
int run_count;
|
||||
struct runtime_stat *stats;
|
||||
|
Reference in New Issue
Block a user