Patch "tracing: Reset the function filter after completing trampoline/graph selftest" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    tracing: Reset the function filter after completing trampoline/graph selftest

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tracing-reset-the-function-filter-after-completing-t.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9f433c312504fa164f21040c589cfdad0c78e62e
Author: Li Huafei <lihuafei1@xxxxxxxxxx>
Date:   Wed Apr 27 11:41:19 2022 +0800

    tracing: Reset the function filter after completing trampoline/graph selftest
    
    [ Upstream commit e35c2d8e22745751cf304ec3fe39616643db2e0a ]
    
    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@xxxxxxxxxx
    Link: https://lore.kernel.org/all/20220418073958.104029-1-lihuafei1@xxxxxxxxxx/
    
    Fixes: 130c08065848 ("tracing: Add trampoline/graph selftest")
    Signed-off-by: Li Huafei <lihuafei1@xxxxxxxxxx>
    Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
index abcadbe933bb..a2d301f58ced 100644
--- a/kernel/trace/trace_selftest.c
+++ b/kernel/trace/trace_selftest.c
@@ -895,6 +895,9 @@ trace_selftest_startup_function_graph(struct tracer *trace,
 		ret = -1;
 		goto out;
 	}
+
+	/* Enable tracing on all functions again */
+	ftrace_set_global_filter(NULL, 0, 1);
 #endif
 
 	/* Don't test dynamic tracing, the function tracer already did */



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux