diff options
-rw-r--r-- | kernel/perf_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index 974e2e64a43a..533f71570736 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -5478,6 +5478,8 @@ static int perf_tp_event_match(struct perf_event *event, | |||
5478 | struct perf_sample_data *data, | 5478 | struct perf_sample_data *data, |
5479 | struct pt_regs *regs) | 5479 | struct pt_regs *regs) |
5480 | { | 5480 | { |
5481 | if (event->hw.state & PERF_HES_STOPPED) | ||
5482 | return 0; | ||
5481 | /* | 5483 | /* |
5482 | * All tracepoints are from kernel-space. | 5484 | * All tracepoints are from kernel-space. |
5483 | */ | 5485 | */ |