on-internet
← Community

perf have no permission to collect stats

Stack Overflow ·

When I use perf to collect system stats, like this sudo perf record -a -g -F 997 -p pid sleep 30 then I got Error: You may not have permission to collect stats. Consider tweaking /proc/sys/kernel/perf_event_paranoid: -1 - Not paranoid at all 0 - Disallow raw tracepoint access for unpriv 1 - Disallow cpu events for unpriv 2 - Disallow kernel profiling for unpriv I have no permission to modify /proc/sys/kernel/perf_event_paranoid, even in root. I try to add "kernal.perf_event_paranoid=-1" into /etc/sysctl.conf, and use sysctl -p to reload params. Again I have no permission to load param kernal.p

Comments

Sign in or sign up to comment and upvote.

No comments yet.