mbox series

[0/5] tracing: Fix selftests softlockup issues

Message ID 20230528051742.1325503-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series tracing: Fix selftests softlockup issues | expand

Message

Steven Rostedt May 28, 2023, 5:17 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

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(-)