mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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
This commit is contained in:
parent
e5524bf104
commit
58b2ff2c18
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user