You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running tools/testing/selftests/bpf/test_ftrace.sh on kernel 5.10, I found ftrace shutdown due to conflict with the interface functions.
This is because:
"echo function_graph > current_tracer" enables function_graph, and ftrace will try to modify many functions (including interface functions).
The check in ftrace_verify_code() will fail and causing the whole ftrace shutdown.
The text was updated successfully, but these errors were encountered:
Just like commit b91e014f078e ("bpf: Make BPF trampoline use register_ftrace_direct() API"), we can use the API of ftrace to let it know we've already occupied the function entry.
However this still remains several problems (conflicts with function_graph, fentry/fexit, etc). They will just return -EBUSY, instead of directly shutdown (this is a good news).
When running tools/testing/selftests/bpf/test_ftrace.sh on kernel 5.10, I found ftrace shutdown due to conflict with the interface functions.
This is because:
"echo function_graph > current_tracer" enables function_graph, and ftrace will try to modify many functions (including interface functions).
The check in ftrace_verify_code() will fail and causing the whole ftrace shutdown.
The text was updated successfully, but these errors were encountered: