perf stat: Move 'run_count' to 'struct perf_stat_config'

Move the static 'run_count' 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-28-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Jiri Olsa
2018-08-30 08:32:36 +02:00
committed by Arnaldo Carvalho de Melo
parent 0c538a9462
commit d97ae04b3d
2 changed files with 21 additions and 19 deletions

View File

@@ -100,6 +100,7 @@ struct perf_stat_config {
unsigned int initial_delay;
unsigned int unit_width;
int times;
int run_count;
struct runtime_stat *stats;
int stats_num;
const char *csv_sep;