Where is the correct place to report this bug? (perf_event_paranoid
error message out of date)
#521
Unanswered
willhansen
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The default value for
perf_event_paranoid
seems to be4
.Command:
perf stat ls
Result:
OS:
Linux Mint 21.3
kernel: 5.15.0-113-generic
Even after giving /usr/bin/perf all of
CAP_PERFMON
,CAP_SYS_PTRACE
, andCAP_SYS_ADMIN
withsudo setcap "cap_perfmon,cap_sys_ptrace,cap_ipc_lock,cap_syslog,cap_sys_admin=ep" /usr/bin/perf
for a group the current non-root user is in (in my case, I made aperf_users
one as suggested by the linux kernel docs) the same error message appears.It turns out that the problem was the default version of perf_event_paranoid of 4 prevents all non-root users from doing profiling. Setting it to 3 fixes the problem. I think the behavior was originally introduced in debian, but specifically in Ubuntu with value
4
in this commitThe bug I'm trying to report is that the listed values for
perf_event_paranoid
in that one error message only go up to two. Having the effect of it being4
listed would have saved me quite a bit of time.Am I supposed to file this in the ubuntu bug tracker (that needs an Ubuntu One account)? Am I supposed to file it in the OS that I'm using (Linux Mint), and then a dev sends it upstream? Where in the Linux Mint project would I put this bug report?
Beta Was this translation helpful? Give feedback.
All reactions