perf_event_open.2: Explain the EACCES "monitoring all processes" case more precisely

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-04-17 09:44:58 +02:00
parent bec6277efa
commit 2b23ecbdea
1 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@
.\" This document is based on the perf_event.h header file, the
.\" tools/perf/design.txt file, and a lot of bitter experience.
.\"
.TH PERF_EVENT_OPEN 2 2014-04-10 "Linux" "Linux Programmer's Manual"
.TH PERF_EVENT_OPEN 2 2014-04-17 "Linux" "Linux Programmer's Manual"
.SH NAME
perf_event_open \- set up performance monitoring
.SH SYNOPSIS
@ -2404,8 +2404,9 @@ permissions (or a more permissive perf_event paranoid setting).
Some common cases where an unprivileged process
may encounter this error:
attaching to a process owned by a different user;
monitoring all processes (including those not belonging to the user)
on a given CPU;
monitoring all processes on a given CPU (i.e., specifying the
.I pid
argument as \-1);
and not setting
.I exclude_kernel
when the paranoid setting requires it.