[PATCH 0/5] tracing: Fix selftests softlockup issues

From: Steven Rostedt
Date: Sun May 28 2023 - 01:26:52 EST


From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx>

Starting with v6.4-rc releases, the debugging of the kernel has slowed down
text_poke and friends so much that it is triggering the softlockup detector in
the ftrace selftests. There are two issues that I found.

1. The selftests run one after the other without a schedule.
2. text_poke_bp_batch can take up a lot of time itself without a schedule.

This addresses the first part. The second part is a x86 issue and I will be
addressing that with a separate patch.

As I'm currently in an Taiwan airport lounge with horrible internet connection,
and ssh'd to my home machine. I'm sending this patchset with hand typed git sendemail
If it goes bad, that's the reason!

Steven Rostedt (Google) (5):
tracing: Move setting of tracing_selftest_running out of
register_tracer()
tracing: Have tracer selftests call cond_resched() before running
tracing: Make tracing_selftest_running/delete nops when not used
tracing: Only make selftest conditionals affect the global_trace
tracing: Have function_graph selftest call cond_resched()

kernel/trace/trace.c | 42 +++++++++++++++++++++++++++++------
kernel/trace/trace_selftest.c | 10 +++++++++
2 files changed, 45 insertions(+), 7 deletions(-)

--
2.39.2