aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/attr/test-stat-C0
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-C0
parentperf mmap: Adopt push method from builtin-record.c (diff)
downloadlinux-dev-692f5a22cd284bb8233a38e3ed86881d2d9c89d4.tar.xz
linux-dev-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-C0')
-rw-r--r--tools/perf/tests/attr/test-stat-C01
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/tests/attr/test-stat-C0 b/tools/perf/tests/attr/test-stat-C0
index 67717fe6a65d..a2c76d10b2bb 100644
--- a/tools/perf/tests/attr/test-stat-C0
+++ b/tools/perf/tests/attr/test-stat-C0
@@ -7,3 +7,4 @@ ret = 1
# events are disabled by default when attached to cpu
disabled=1
enable_on_exec=0
+optional=1