History

ARM: 7441/1: perf: return -EOPNOTSUPP if requested mode exclusion is unavailable

We currently return -EPERM if the user requests mode exclusion that is not supported by the CPU. This looks pretty confusing from userspace and is inconsistent with other architectures (ppc, x86). This patch returns -EOPNOTSUPP instead.

Will Deacon committed 14 years ago

Commit fdeb8e31 parent 433e2f31 file · +1 −1Browse files

Unified · Split

arch/arm/kernel/perf_event.c+1−1
@@ -503,7 +503,7 @@ __hw_perf_event_init(struct perf_event *event) · 502 unmodified lines
503503 event_requires_mode_exclusion(&event->attr)) {
504504 pr_debug("ARM performance counters do not support "
505505 "mode exclusion\n");
506− return -EPERM;
506+ return -EOPNOTSUPP;
507507 }
508508
509509 /*