From patchwork Sun May 28 05:17:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 13257750 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1305C77B7E for ; Sun, 28 May 2023 05:26:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229476AbjE1F0s (ORCPT ); Sun, 28 May 2023 01:26:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjE1F0r (ORCPT ); Sun, 28 May 2023 01:26:47 -0400 Received: from mammoth.local.home (cpe-172-100-189-27.stny.res.rr.com [172.100.189.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E05E3DF; Sat, 27 May 2023 22:26:40 -0700 (PDT) Received: by mammoth.local.home (Postfix, from userid 5657) id B39643009DD; Sun, 28 May 2023 01:17:53 -0400 (EDT) From: Steven Rostedt To: LKML , Linux trace kernel Cc: Masami Hiramatsu , Mark Rutland , "Steven Rostedt (Google)" Subject: [PATCH 0/5] tracing: Fix selftests softlockup issues Date: Sun, 28 May 2023 01:17:37 -0400 Message-Id: <20230528051742.1325503-1-rostedt@goodmis.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-kernel@vger.kernel.org From: "Steven Rostedt (Google)" 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(-)