perf evlist: Add helper to check if attr.exclude_kernel is set in all evsels
authorArnaldo Carvalho de Melo <[email protected]>
Tue, 14 Nov 2017 14:01:06 +0000 (11:01 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 16 Nov 2017 17:50:01 +0000 (14:50 -0300)
commit07d6f446a9e45b7e6e7438f8560e40d4dcfa0321
tree2b12dee4889df6a103439343f8af4adeea40df58
parent0879e5e5f33c8a1eb01281ad920173664e68b266
perf evlist: Add helper to check if attr.exclude_kernel is set in all evsels

The warning about kptr_restrict needs to be emitted only when it is set
and we ask for kernel space samples, so add a helper to help with that.

Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/evlist.c
tools/perf/util/evlist.h