diff --git a/kernel/perf_event.c b/kernel/perf_event.c index d25c864cadbf9f3522211630a92428cea71f5d98..e099650cd249a7fb728e00f409b9557d598ceb8f 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, struct perf_sample_data *data, struct pt_regs *regs) { - if (perf_exclude_event(event, regs)) + /* + * All tracepoints are from kernel-space. + */ + if (event->attr.exclude_kernel) return 0; if (!perf_tp_filter_match(event, data))