summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/stat.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2018-08-30 08:32:29 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-08-30 15:52:23 -0300
commitfa7070a38676d660c0a71ab6981bfdca3b340ccd (patch)
treef0ab5c3b179b13b0f87156085683403c7c506cb9 /tools/perf/util/stat.h
parent6ca9a082b1908ff7f8adedf08166043b83b266f6 (diff)
downloadblackbird-op-linux-fa7070a38676d660c0a71ab6981bfdca3b340ccd.tar.gz
blackbird-op-linux-fa7070a38676d660c0a71ab6981bfdca3b340ccd.zip
perf stat: Move csv_* to 'struct perf_stat_config'
Move the static csv_* variables 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-21-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/stat.h')
-rw-r--r--tools/perf/util/stat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/stat.h b/tools/perf/util/stat.h
index dffcf2110706..18546d8b0279 100644
--- a/tools/perf/util/stat.h
+++ b/tools/perf/util/stat.h
@@ -91,6 +91,7 @@ struct perf_stat_config {
bool scale;
bool no_inherit;
bool identifier;
+ bool csv_output;
FILE *output;
unsigned int interval;
unsigned int timeout;
@@ -98,6 +99,7 @@ struct perf_stat_config {
int times;
struct runtime_stat *stats;
int stats_num;
+ const char *csv_sep;
};
void update_stats(struct stats *stats, u64 val);
OpenPOWER on IntegriCloud