Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp673306rdb; Thu, 22 Feb 2024 16:26:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXHWAa+EIoAGEBGK3lU+7NcLdPGquHx82VvTOaGIpqGv305n9FIxEC4p8kl4S+KsNs9BY4CG4SDOLL1q5CAX5bx51+N0yJPpd1gaC4nMA== X-Google-Smtp-Source: AGHT+IGMK4rIj7O19Jr8QiSuJEFjlm+UCRhmAcMeVHMS4WEuCXGiP8lO4sn5DgPTE2xbL63IRGGm X-Received: by 2002:a17:907:7704:b0:a3e:27e2:2075 with SMTP id kw4-20020a170907770400b00a3e27e22075mr186998ejc.67.1708648014595; Thu, 22 Feb 2024 16:26:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708648014; cv=pass; d=google.com; s=arc-20160816; b=EP5l5E8ewfg08946FiLoi12YvVio/qE1xEDxNdN3kTQ+dQ2APO5XPHrhFRCiS1AUec YvbUIBtvkDUX/fYdt8K87vehag3iFv5s0+n/R6l0ftCi2QBBwMsrVyZPpfhlwU6a3mDt mIkwK0mEFNkvWB/N9e0ars7Uy1VRi5tB2huCmSUBYzyxKwLBGS4kZiV61v/Fd86gFCiu mPWUdzRXsdFvUQHZcOBPuLx+A/cMAjPWMv+r9qygBPj1AFTuXT1pkwjD7tDnIwtBZCga Sn4Ker4zp6HVmvitbAmsDWYFCtrRZShc72MwvDX0eoX3VPIHAC20rWxcgnW7mkFa0sM7 a9AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=aYuPlN1WToxCy0FGJnR3LIf81uzKV2w8VLm7C/zW6Lk=; fh=5uVZsHiVLmuymoYQ8qb5OgQezxWGIhC4Ypp1VPaX9XM=; b=d+9Cfev63WE2mwwryD9ld87dac76fSzHQqBmAyxx61Xjx5Rk3UnsXjXPOOHnyreeYj muY0bOQb7ZnCs3iQfUHMSKbwZ/Y7WzTQ6RNr529+zCrhusSnZImM3/zWDoVh5CzysSPh gpvhCXjdJLoiqt0DPkPxqjum0oN8a0C+I0tLZ82Y43ewQD0czjv/F/VjG1+pTytCDqh5 HvkxToDOksGoU1ztwLpRxVHOLoxHodO3gl6Mk9sTibWDat/eBGDjfFwUzNvqjZ+aXWW2 +cGXGtBuCDt6qyEwJmvK/kHmWlsWjwZdP08WTyaTO8X7ScrfiyGstyIkYW/j9Bzwgy0+ godQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gmI/c/Mi"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t26-20020a1709064f1a00b00a3fbd102057si187122eju.368.2024.02.22.16.26.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:26:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gmI/c/Mi"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4BFC71F216C4 for ; Fri, 23 Feb 2024 00:26:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70FD15CB0; Fri, 23 Feb 2024 00:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gmI/c/Mi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D70C370; Fri, 23 Feb 2024 00:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708647989; cv=none; b=D4XwvoS07DwQCZ4eOJeuaT+IN34KSA/wgDE2Gv0HZ+NSla8ltUgbnopaqNxN9ohS9mx7d2vKVUxbz4pupUw2WnvX0s9oTBV1mpXYPjA6JoOIrtR9wuAyiZOd854wc27/Q35hf1iK7GNMBF85TH5rkHnclwVSj+gZTfOiu/dgu9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708647989; c=relaxed/simple; bh=2zq8t2w/MxvWtYHu7VdFtzRLQDoWQp7+hxBDYINDmR0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dzMuE7QhoUQlSihOXlqb+Gg+CNj+k52zpaoNSXhxVT/I+xJUm8LvDo/VLT4wTelP7n4VVs6u1zwberx1tAyL8FzjeCMwMC5vc6m7d9ZYjXezAPMXMCeiBuw4wVi+osJ5YAL2idrAsde22Yq07n+I6l7sFDu7XGx6/t+8YGFptnI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gmI/c/Mi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6720AC433B1; Fri, 23 Feb 2024 00:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708647989; bh=2zq8t2w/MxvWtYHu7VdFtzRLQDoWQp7+hxBDYINDmR0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gmI/c/Miowmr1UpqRQQQoGics2HxdOzd8fXDF8ISzUC5IjbnXBd1ZybjLuCp1iIba 4gU8Kshs121y8K7jCR7609eYif/bP7zqwCjA9oFYDsTG11FcwOyCft7EXNc3vn4paq 8ID9r2qnpCHUdfeAMHBmn/7iA3AnRVbcHDBWEaKHRFjY3EVezdeu//7oP5Gvd+PIwn NBJfvHnT8Myev0TpkaX+Dcl66MVB5JYOz7MVJwWZapPIBSenFEDzRRdloVw0Yxq2d1 nz1+q0vP3hAbBC3mRLQRSfhC/QJWOBI5pUvoWEglHQ62CkWRD5BPjwUxDJVLGHc8jJ 1j1KmkuV50YNw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0140ECE0DD4; Thu, 22 Feb 2024 16:26:28 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Masami Hiramatsu , Mathieu Desnoyers , linux-trace-kernel@vger.kernel.org, Ankur Arora , Thomas Gleixner , Mark Rutland Subject: [PATCH rcu 4/4] tracing: Select new NEED_TASKS_RCU Kconfig option Date: Thu, 22 Feb 2024 16:26:27 -0800 Message-Id: <20240223002627.1987886-4-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop> References: <8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently, if a Kconfig option depends on TASKS_RCU, it conditionally does "select TASKS_RCU if PREEMPTION". This works, but requires any change in this enablement logic to be replicated across all such "select" clauses. A new NEED_TASKS_RCU Kconfig option has been created to allow this enablement logic to be in one place in kernel/rcu/Kconfig. Therefore, select the new NEED_TASKS_RCU Kconfig option instead of the old TASKS_RCU option. Signed-off-by: Paul E. McKenney Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Cc: Cc: Ankur Arora Cc: Thomas Gleixner Cc: Mark Rutland --- kernel/trace/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 61c541c36596d..6cdc5ff919b09 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -163,7 +163,7 @@ config TRACING select BINARY_PRINTF select EVENT_TRACING select TRACE_CLOCK - select TASKS_RCU if PREEMPTION + select NEED_TASKS_RCU config GENERIC_TRACER bool @@ -204,7 +204,7 @@ config FUNCTION_TRACER select GENERIC_TRACER select CONTEXT_SWITCH_TRACER select GLOB - select TASKS_RCU if PREEMPTION + select NEED_TASKS_RCU select TASKS_RUDE_RCU help Enable the kernel to trace every kernel function. This is done -- 2.40.1