summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/stat.h
diff options
context:
space:
mode:
authorJiri Olsa2015-06-03 16:25:52 +0200
committerArnaldo Carvalho de Melo2015-06-08 15:30:30 +0200
commit4c358d5cf36192f22b8d331779cb92e3ede9cddf (patch)
tree0f9d1e258f73c7680bf1c326bae51ba92c67e8a6 /tools/perf/util/stat.h
parentperf stat: Add id into perf_stat struct (diff)
downloadkernel-qcow2-linux-4c358d5cf36192f22b8d331779cb92e3ede9cddf.tar.gz
kernel-qcow2-linux-4c358d5cf36192f22b8d331779cb92e3ede9cddf.tar.xz
kernel-qcow2-linux-4c358d5cf36192f22b8d331779cb92e3ede9cddf.zip
perf stat: Replace transaction event possition check with id check
Using perf_stat::id to check for transaction events, instead of current position based way. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1433341559-31848-3-git-send-email-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/stat.h b/tools/perf/util/stat.h
index f4136cfd3cc9..3df529bd0774 100644
--- a/tools/perf/util/stat.h
+++ b/tools/perf/util/stat.h
@@ -11,6 +11,10 @@ struct stats
enum perf_stat_evsel_id {
PERF_STAT_EVSEL_ID__NONE = 0,
+ PERF_STAT_EVSEL_ID__CYCLES_IN_TX,
+ PERF_STAT_EVSEL_ID__TRANSACTION_START,
+ PERF_STAT_EVSEL_ID__ELISION_START,
+ PERF_STAT_EVSEL_ID__CYCLES_IN_TX_CP,
PERF_STAT_EVSEL_ID__MAX,
};