The direct trampoline and graph coexistence test sets global_ops to trace only 'trace_selftest_dynamic_test_func', but does not reset it after the test is completed, resulting in the function filter being set already after the system starts. Although it can be reset through the tracefs interface, it is more or less confusing to the user, and we should reset it to trace all functions after the trampoline/graph test completes. Link: https://lkml.kernel.org/r/20220427034119.24668-1-lihuafei1@huawei.com Link: https://lore.kernel.org/all/20220418073958.104029-1-lihuafei1@huawei.com/
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -895,6 +895,9 @@ trace_selftest_startup_function_graph(struct tracer *trace, · 894 unmodified lines | ||
| 895 | 895 | ret = -1; |
| 896 | 896 | goto out; |
| 897 | 897 | } |
| 898 | + | |
| 899 | + /* Enable tracing on all functions again */ | |
| 900 | + ftrace_set_global_filter(NULL, 0, 1); | |
| 898 | 901 | #endif |
| 899 | 902 | |
| 900 | 903 | /* Don't test dynamic tracing, the function tracer already did */ |