summaryrefslogtreecommitdiff
path: root/tools/perf/tests/attr/test-stat-default
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2017-10-09 15:07:12 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-10-23 11:20:54 -0300
commit692f5a22cd284bb8233a38e3ed86881d2d9c89d4 (patch)
treea321019c8508c6b84557729d064106310c1a18fc /tools/perf/tests/attr/test-stat-default
parent73c17d815000e425aea108226bcb57491a04f534 (diff)
downloadlwn-692f5a22cd284bb8233a38e3ed86881d2d9c89d4.tar.gz
lwn-692f5a22cd284bb8233a38e3ed86881d2d9c89d4.zip
perf tests attr: Make hw events optional
Otherwise we fail on virtual machines with no support for specific HW events. Signed-off-by: Jiri Olsa <jolsa@kernel.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/20171009130712.14747-1-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/attr/test-stat-default')
-rw-r--r--tools/perf/tests/attr/test-stat-default4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/tests/attr/test-stat-default b/tools/perf/tests/attr/test-stat-default
index e911dbd4eb47..d9e99b3f77e6 100644
--- a/tools/perf/tests/attr/test-stat-default
+++ b/tools/perf/tests/attr/test-stat-default
@@ -32,6 +32,7 @@ config=2
fd=5
type=0
config=0
+optional=1
# PERF_TYPE_HARDWARE / PERF_COUNT_HW_STALLED_CYCLES_FRONTEND
[event6:base-stat]
@@ -52,15 +53,18 @@ optional=1
fd=8
type=0
config=1
+optional=1
# PERF_TYPE_HARDWARE / PERF_COUNT_HW_BRANCH_INSTRUCTIONS
[event9:base-stat]
fd=9
type=0
config=4
+optional=1
# PERF_TYPE_HARDWARE / PERF_COUNT_HW_BRANCH_MISSES
[event10:base-stat]
fd=10
type=0
config=5
+optional=1