From: walter harms <wharms-fPG8STNUNVg@public.gmane.org>
To: Vince Weaver <vincent.weaver-e7X0jjDqjFGHXe+LvDLADg@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [patch] perf_event_open.2 -- expand ERRORS section
Date: Wed, 16 Apr 2014 09:18:34 +0200 [thread overview]
Message-ID: <534E2ECA.5030605@bfs.de> (raw)
In-Reply-To: <alpine.DEB.2.10.1404151342450.15528-6xBS8L8d439fDsnSvq7Uq4Se7xf15W0s1dQoKJhdanU@public.gmane.org>
Am 15.04.2014 20:25, schrieb Vince Weaver:
> On Mon, 14 Apr 2014, Michael Kerrisk (man-pages) wrote:
>
>>
>> EACCES Returned when the requested event requires root permis‐
>> sions (or a more permissive perf_event paranoid set‐
>> ting). Some common cases where an unprivileged process
>> may encounter this error: are attaching to a process
>> owned by a different user; monitoring all processes on a
>> given CPU; and not setting exclude_kernel when the para‐
>> noid setting requires it.
>>
>> But, now I have some more questions:
>>
>> * What are "root permissions" here? It's these days usual to express
>> things precisely in terms of the required capability.
>
> Yes, I guess that should really be CAP_SYS_ADMIN
>
>> * I am puzzled by "monitoring all processes on a CPU"? So, monitoring
>> _some_ (i.e., < all) processes on a CPU won't trigger this error?
>
> I was a bit confused here.
>
> A regular user can monitor "the specified process on CPU X" or "the
> specified process on any CPU".
>
> A user running as root can also monitor "all procceses belonging to anyone
> on CPU X"
>
why not "can monitor any process" ?
re,
wh
> Other combinations aren't possible.
>
>>>>> +.B EPERM
>>>>> +Returned if sufficient permissions not available to create the event.
>>
>> Again, somewhere here, the text should mention the required capability.
>
> Yes, it's CAP_SYS_ADMIN again.
>
>>> This is a recent change.
>>
>> So, the text should mention a kernel version number. Could you patch
>> that please. I guess it should be something like:
>>
>> and (since Linux 3.??) setting an ftrace function-trace tracepoint
>
> Yes, I'll do that.
>
> Vince
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-04-16 7:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-07 4:56 [patch] perf_event_open.2 -- expand ERRORS section Vince Weaver
[not found] ` <alpine.DEB.2.10.1404070052310.16856-6xBS8L8d439fDsnSvq7Uq4Se7xf15W0s1dQoKJhdanU@public.gmane.org>
2014-04-10 19:50 ` Michael Kerrisk (man-pages)
[not found] ` <5346F5EC.6080600-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-04-10 20:30 ` Vince Weaver
[not found] ` <alpine.DEB.2.10.1404101621260.30596-6xBS8L8d439fDsnSvq7Uq4Se7xf15W0s1dQoKJhdanU@public.gmane.org>
2014-04-14 10:44 ` Michael Kerrisk (man-pages)
[not found] ` <534BBC07.7040105-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-04-15 18:25 ` Vince Weaver
[not found] ` <alpine.DEB.2.10.1404151342450.15528-6xBS8L8d439fDsnSvq7Uq4Se7xf15W0s1dQoKJhdanU@public.gmane.org>
2014-04-16 7:18 ` walter harms [this message]
[not found] ` <534E2ECA.5030605-fPG8STNUNVg@public.gmane.org>
2014-04-17 9:03 ` Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=534E2ECA.5030605@bfs.de \
--to=wharms-fpg8stnunvg@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=vincent.weaver-e7X0jjDqjFGHXe+LvDLADg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).