diff --git a/kernel/events/core.c b/kernel/events/core.c index f94f164b5054935e1a63e9f8ea7bcc4bc97235f6..5d48306879d55d3221a7789bdd7cc8bdc611969e 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9309,7 +9309,7 @@ SYSCALL_DEFINE5(perf_event_open, if (is_sampling_event(event)) { if (event->pmu->capabilities & PERF_PMU_CAP_NO_INTERRUPT) { - err = -ENOTSUPP; + err = -EOPNOTSUPP; goto err_alloc; } }