summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evlist.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2017-11-14 15:01:06 +0100
committerArnaldo Carvalho de Melo2017-11-16 18:50:01 +0100
commit07d6f446a9e45b7e6e7438f8560e40d4dcfa0321 (patch)
tree2b12dee4889df6a103439343f8af4adeea40df58 /tools/perf/util/evlist.h
parentperf test shell: Fix test case probe libc's inet_pton on s390x (diff)
downloadkernel-qcow2-linux-07d6f446a9e45b7e6e7438f8560e40d4dcfa0321.tar.gz
kernel-qcow2-linux-07d6f446a9e45b7e6e7438f8560e40d4dcfa0321.tar.xz
kernel-qcow2-linux-07d6f446a9e45b7e6e7438f8560e40d4dcfa0321.zip
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 <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-fh7drty6yljei9gxxzer6eup@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evlist.h')
-rw-r--r--tools/perf/util/evlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h
index e72ae64c11ac..491f69542920 100644
--- a/tools/perf/util/evlist.h
+++ b/tools/perf/util/evlist.h
@@ -312,4 +312,6 @@ perf_evlist__find_evsel_by_str(struct perf_evlist *evlist, const char *str);
struct perf_evsel *perf_evlist__event2evsel(struct perf_evlist *evlist,
union perf_event *event);
+
+bool perf_evlist__exclude_kernel(struct perf_evlist *evlist);
#endif /* __PERF_EVLIST_H */