summaryrefslogtreecommitdiff
path: root/tools/perf/util/stat.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2018-08-30 09:32:14 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-08-30 21:52:21 +0300
commit7d9ad16afe2bfc73b8967cc2aa2dc30f0170a8e2 (patch)
treee50824b7be7e99f9c0a8655da964992b40e12629 /tools/perf/util/stat.h
parent35386233fcf78f20cb8a51199518da9f81eca280 (diff)
downloadlinux-7d9ad16afe2bfc73b8967cc2aa2dc30f0170a8e2.tar.xz
perf stat: Add 'identifier' flag to 'struct perf_stat_config'
Add 'identifier' flag to 'struct perf_stat_config' to carry the info whether to use PERF_SAMPLE_IDENTIFIER for events. This makes create_perf_stat_counter() independent. 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-6-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/stat.h b/tools/perf/util/stat.h
index 53b2415ba3f3..918cde064cdc 100644
--- a/tools/perf/util/stat.h
+++ b/tools/perf/util/stat.h
@@ -89,6 +89,7 @@ struct perf_stat_config {
enum aggr_mode aggr_mode;
bool scale;
bool no_inherit;
+ bool identifier;
FILE *output;
unsigned int interval;
unsigned int timeout;