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

Kvdev #122

Merged
merged 4 commits into from
Oct 17, 2024
Merged

Kvdev #122

merged 4 commits into from
Oct 17, 2024

Conversation

carloslack
Copy link
Owner

No description provided.

JNE added 4 commits October 17, 2024 16:22
 # echo 0 >/proc/sys/kernel/ftrace_enabled
 -bash: echo: write error: Device or resource busy
We go old-school here.

Result is same:

 # echo 0 >/proc/sys/kernel/ftrace_enabled
 -bash: echo: write error: Device or resource busy

Also (for all kernels):

 $ sudo sysctl kernel.ftrace_enabled=0
 sysctl: setting key "kernel.ftrace_enabled": Device or resource busy

However it is also possible to hook regardless of kernel version
and instad of returning -EBUSY like for newer kernels
when using FTRACE_OPS_FL_PERMANENT, return 0 and
do nothing which is something to consider for later.
Example:

 # cat /proc/sys/kernel/ftrace_enabled
 1
 # echo 0 > /proc/sys/kernel/ftrace_enabled
 # cat /proc/sys/kernel/ftrace_enabled
 0
@carloslack carloslack merged commit ea46f96 into master Oct 17, 2024
2 checks passed
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 this pull request may close these issues.

1 participant