]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Reset the function filter after completing trampoline/graph selftest
authorLi Huafei <lihuafei1@huawei.com>
Wed, 27 Apr 2022 03:41:19 +0000 (11:41 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 25 May 2022 20:57:37 +0000 (16:57 -0400)
commit37ea53c9b74a6432a869b8f4addbc1b32c461d08
treefee5d294d853be84ff51749c4314589dbd848a3d
parentcd644a2f0bdd5c80c235522d269cf9eb5e998fb8
tracing: Reset the function filter after completing trampoline/graph selftest

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/
Fixes: 247f6510e357 ("tracing: Add trampoline/graph selftest")
Signed-off-by: Li Huafei <lihuafei1@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_selftest.c