perf tests: Fix exclude_guest|exclude_host checking for attr tests
authorJiri Olsa <[email protected]>
Fri, 24 May 2013 11:16:38 +0000 (13:16 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 29 May 2013 12:15:19 +0000 (15:15 +0300)
We have a one of the event open fallback case in __perf_evsel__open
where we zero exclude_guest|exclude_host fields.

This means there's no way for attr tests to find out what's the right
value for those fields, so we need to check for both 0 and 1. Luckily we
still have other event parsing tests for those fields.

Signed-off-by: Jiri Olsa <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/tests/attr/base-record
tools/perf/tests/attr/base-stat

index b4fc835de6074fc242e438e901cdc8463742268e..e9bd6391f2aeb09d2f29445a8f55052b0845c419 100644 (file)
@@ -27,8 +27,8 @@ watermark=0
 precise_ip=0
 mmap_data=0
 sample_id_all=1
-exclude_host=0
-exclude_guest=1
+exclude_host=0|1
+exclude_guest=0|1
 exclude_callchain_kernel=0
 exclude_callchain_user=0
 wakeup_events=0
index 748ee949a204c2d7a27796ae4d3d2e8c94b09676..91cd48b399f3b8006f67fa5711eff84129bee2d3 100644 (file)
@@ -27,8 +27,8 @@ watermark=0
 precise_ip=0
 mmap_data=0
 sample_id_all=0
-exclude_host=0
-exclude_guest=1
+exclude_host=0|1
+exclude_guest=0|1
 exclude_callchain_kernel=0
 exclude_callchain_user=0
 wakeup_events=0