summaryrefslogtreecommitdiffstats
path: root/kernel/events
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2022-01-31 08:24:53 +0100
committerPeter Zijlstra <peterz@infradead.org>2022-02-02 13:11:43 +0100
commit58b2ff2c18b1e1d7232b8007a5698ec4ee7a7a0d (patch)
tree650c2edfceffa98b0a7be02ef9909d3d7c1d8c5d /kernel/events
parentperf/x86/intel/pt: Fix address filter config for 32-bit kernel (diff)
downloadlinux-58b2ff2c18b1e1d7232b8007a5698ec4ee7a7a0d.tar.xz
linux-58b2ff2c18b1e1d7232b8007a5698ec4ee7a7a0d.zip
perf/core: Allow kernel address filter when not filtering the kernel
The so-called 'kernel' address filter can also be useful for filtering fixed addresses in user space. Allow that. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220131072453.2839535-6-adrian.hunter@intel.com
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 2889b82fb75e..afbf388a5176 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -10515,8 +10515,6 @@ perf_event_parse_addr_filter(struct perf_event *event, char *fstr,
*/
if (state == IF_STATE_END) {
ret = -EINVAL;
- if (kernel && event->attr.exclude_kernel)
- goto fail;
/*
* ACTION "filter" must have a non-zero length region