Home
last modified time | relevance | path

Searched hist:"58 f8e9da33eb0104f5bee3e8b3ca44e1583c78b9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/s390/kernel/
H A Dperf_cpum_cf.cdiff 58f8e9da33eb0104f5bee3e8b3ca44e1583c78b9 Mon Sep 07 03:52:42 CDT 2015 Hendrik Brueckner <brueckner@linux.vnet.ibm.com> s390/cpum_cf: Corrected return code for unauthorized counter sets

Previously, the cpum_cf PMU returned -EPERM if a counter is requested and
the counter set to which the counter belongs is not authorized. According
to the perf_event_open() system call manual, an error code of EPERM indicates
an unsupported exclude setting or CAP_SYS_ADMIN is missing.

Use ENOENT to indicate that particular counters are not available when the
counter set which contains the counter is not authorized. For generic events,
this might trigger a fall back, for example, to a software event.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>