Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Tracing won't work due to perf_event_paranoid. Any notification? #513

Closed
DanielTimLee opened this issue Sep 19, 2018 · 2 comments
Closed

Comments

@DanielTimLee
Copy link
Contributor

DanielTimLee commented Sep 19, 2018

Just followed instruction Event Tracing, but /* linux:sched-out */ won't show up on my machine.
And with a verbose message, finally found out the reason.

$ cat /proc/sys/kernel/perf_event_paranoid
3

How about info users with the warning message about setting /proc/sys/kernel/perf_event_paranoid being 2 or smaller to enable Event Tracing?

Example:

WARN: cannot trace event: perf_event_paranoid is greater than 2. 
WARN: To enable, $ echo 2 > /proc/sys/kernel/perf_event_paranoid

(Working on Ubuntu 18.04.1 4.15.0-29-generic)

@DanielTimLee DanielTimLee changed the title Event Tracing won't work due to /proc/sys/kernel/perf_event_paranoid. Any notification? Event Tracing won't work due to perf_event_paranoid. Any notification? Sep 19, 2018
@namhyung
Copy link
Owner

But it might be annoying if user don't have the right to change the setting. How about showing it as a debug message rather than a warning?

@DanielTimLee
Copy link
Contributor Author

DanielTimLee commented Sep 19, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants