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

execsnoop: enable tracing_on for good measure #29

Open
aktau opened this issue Jul 8, 2015 · 3 comments · May be fixed by #80
Open

execsnoop: enable tracing_on for good measure #29

aktau opened this issue Jul 8, 2015 · 3 comments · May be fixed by #80

Comments

@aktau
Copy link

aktau commented Jul 8, 2015

I was lately trying to run execsnoop on my workstation and seeing nothing being printed out. Confused, I read the script and tried catting all sorts of values in /sys/kernel/debug/tracing. To my surprise, tracing_on contained 0. Doing echo 1 > tracing_on thus fixed the problem.

I see that execsnoop doesn't deal with tracing_on, so maybe it would be good to just put a echo 1 > tracing_on in there?

I find it strange that I only encounter this now, as a cursory Google search tells me that tracing_on has been present in Linux kernels since forever.

@scotte
Copy link
Contributor

scotte commented Dec 19, 2017

Same as #41?

@brendangregg
Copy link
Owner

Any idea why tracing_on is 0? Ever used trace-cmd or KernelShark or something?

On all my systems it is 1 by default. I'd like to know why it is 0 before forcing it to 1, in case I'm breaking something (like another tracer that is using it.)

@EvanTheB
Copy link

It is set to 0 at boot on my chromebook, but I dont know why. Maybe a check+warn instead of a set?

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

Successfully merging a pull request may close this issue.

4 participants