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: 9943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp764752vqr; Sat, 27 May 2023 22:48:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lcfF6tTsc+ZKFUDrISoiK734aVibELOid5t3ugABzI69kHlM9CoCw++Vp/nsVQaOzXfhm X-Received: by 2002:a17:902:dad2:b0:1ab:28b4:6d5 with SMTP id q18-20020a170902dad200b001ab28b406d5mr5083863plx.5.1685252920149; Sat, 27 May 2023 22:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685252920; cv=none; d=google.com; s=arc-20160816; b=lySrwRem7dBKqSN2RYtBwMZgF8NagonWGoyUfNw8x6ik1fc+aZhKzZPqxrFepD+rMZ B5RvIB8IFnH9sIZIOQAgBZ6EUvonZHIlT7WBHSUBHQOOo4s0wBdYxOy7gYrW7FdpMKFa i5TfGlADDAoNx9KFyogB3a0EdgBwKmyVm5xO9ZCoR58nBCwTRcLswZh+nWlHgaSYxBXl x92ncGcYJ5bKQu23ERZMDJPrvr6Iy77UodXUH8qmSAU0b0VFDX1HuV+cDt7JlkX8ypQk 5sjbmMQg1sJ6qFT7oDFM7J0D3QIl9Yz95j1g18oKCuPrCBqS3n7PY/28a4+JsLZbkKwU VfvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MFV/WIml10G5RsGNDBdcsWGIk9qHtnm8qkPdLMhGhEU=; b=lRpz0QbboiEmJFAVEPRJE1HLI2vc9iWHKPBvCOTcV54LAf7Q7Ga1YfJYWyT7GFngLz eXLH5qfAtZb71ft2UUUrOo2Qi7qymhr1X4o80/P3NjsRNV465E7/d4YdCXQqYZT5Lzjd jhzs3CU7eSGIk/XxlBG4Fh10OKBjLGdJUKlxmOr6DIKFlM8bquJL/0aRVGRNqdD72vbE 1ePmlcTRpXwRHtej6pG+AC3Fs/PsTDMNRv/s0ywS+5K9K2wnaEcvaEYU+RIJRJMzQ8rN TILH+RZzmmBPdK/qpuDMwTWKMN+BRLXNMSWpqPS2j2wJHsJp4gVf1gvG5ga4vxIZtGWM AU8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a170902b58f00b001ab0acfc1edsi4111460pls.262.2023.05.27.22.48.24; Sat, 27 May 2023 22:48:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229482AbjE1F0t (ORCPT + 99 others); Sun, 28 May 2023 01:26:49 -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 X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, PDS_RDNS_DYNAMIC_FP,RCVD_IN_PBL,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767115765733393079?= X-GMAIL-MSGID: =?utf-8?q?1767115765733393079?= 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(-)