Skip to content

Commit 58b2ff2

Browse files
ahunter6Peter Zijlstra
authored andcommitted
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e5524bf commit 58b2ff2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/events/core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10515,8 +10515,6 @@ perf_event_parse_addr_filter(struct perf_event *event, char *fstr,
1051510515
*/
1051610516
if (state == IF_STATE_END) {
1051710517
ret = -EINVAL;
10518-
if (kernel && event->attr.exclude_kernel)
10519-
goto fail;
1052010518

1052110519
/*
1052210520
* ACTION "filter" must have a non-zero length region

0 commit comments

Comments
 (0)