diff options
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index a62d142ad498..e9ef0c6646af 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -7120,6 +7120,13 @@ SYSCALL_DEFINE5(perf_event_open, | |||
7120 | } | 7120 | } |
7121 | } | 7121 | } |
7122 | 7122 | ||
7123 | if (is_sampling_event(event)) { | ||
7124 | if (event->pmu->capabilities & PERF_PMU_CAP_NO_INTERRUPT) { | ||
7125 | err = -ENOTSUPP; | ||
7126 | goto err_alloc; | ||
7127 | } | ||
7128 | } | ||
7129 | |||
7123 | account_event(event); | 7130 | account_event(event); |
7124 | 7131 | ||
7125 | /* | 7132 | /* |