diff options
-rw-r--r-- | kernel/perf_event.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index d25c864cadbf..e099650cd249 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -4496,7 +4496,10 @@ static int perf_tp_event_match(struct perf_event *event, | |||
4496 | struct perf_sample_data *data, | 4496 | struct perf_sample_data *data, |
4497 | struct pt_regs *regs) | 4497 | struct pt_regs *regs) |
4498 | { | 4498 | { |
4499 | if (perf_exclude_event(event, regs)) | 4499 | /* |
4500 | * All tracepoints are from kernel-space. | ||
4501 | */ | ||
4502 | if (event->attr.exclude_kernel) | ||
4500 | return 0; | 4503 | return 0; |
4501 | 4504 | ||
4502 | if (!perf_tp_filter_match(event, data)) | 4505 | if (!perf_tp_filter_match(event, data)) |