Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp399498lqh; Tue, 7 May 2024 02:39:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9jc2Pv0/94/LXNwbWg/wzQWFmGCIlvggPx6VShrJHy7G7k2TQsWIhbmf4eZhcPZRWUsCN2BLtMuq2rtxnPm4JAhSPVsFrSUyxGuiq3w== X-Google-Smtp-Source: AGHT+IG6vVcHvqsXXM5GUOViokakKZidH2f0U+lmtX3f4Rk2UU6YOfZdrIFlZSJfM/jj8brJI7G9 X-Received: by 2002:a05:6512:548:b0:51d:3256:5327 with SMTP id h8-20020a056512054800b0051d32565327mr9821502lfl.35.1715074750003; Tue, 07 May 2024 02:39:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715074749; cv=pass; d=google.com; s=arc-20160816; b=lY5Szbtqguu2YHwyaFC0IYEgV55fjzS/5+x5stWovWx6upFLD2nTr2eo32K2rwlqeu 7qPEVztcafpd6dcQ4d/4ga+klezko+X4U8YnB+C3oc++EbfZfo4xaE/gANJMmOsEs89A MNRitb1stcSDwpsbkhGJUFoT0hb3J/2NogQfPQyD6E8ELG1RZcck9ruBlk/zS6sSIIEG eRVe4fl25Uc/qIQQDM19slSACWXvzZt5EZXahdj7DNcpNHCmSr8s+XfnHRFdDTQ1JGtT eV2dTPalTpvXC5DNykR7VunqrLpciB3PIWfgiwO/h8aeVPVUmGp/TpS/qQHurvwKeEfm bB6Q== 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=Yj9chs7bm2QTr68OIU1XSJLLlP4/vHDWkmUWKji8NeI=; fh=5DJaIQyQgWJg8PtSJz6CWRJpG9Go0+34A1R8amB2JM8=; b=TA+Xv4X8qCgN2W5/0+ecyailhFd5XY3pn1Hr9+I7IYq0Zad4aKG5a2aztvz3sdq/7T wtmOYxgJzU6PWZXQhE0i7x7ZvguhLabual38ki1ubrVzTWGEdQbvr26lvCSl1tVs6jiS gADuRTE7kGlPC6Ufhh4JIxxnWkJl1YcJiFDfAR7ULWGa6NV2ii7zwBKZIbX+z2nmYsup G6vSDeuUDueBbe5V4SxdwbXfm2RCW2AePMdCcZTFOPx7e+rUcLDscmRMUo+MLjN6nH6i drfXoLy5dcDKIWZn8v8obykYYVssHGKkt/D8oAujqrtxFqDjNechZy+D77W7eGeUn5sE dFPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gmPCNE3M; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-170973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qk7-20020a170906d9c700b00a59bbf2d466si3055538ejb.281.2024.05.07.02.39.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:39:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gmPCNE3M; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-170973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 B363E1F23721 for ; Tue, 7 May 2024 09:39:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD6F915CD75; Tue, 7 May 2024 09:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gmPCNE3M" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3ECFF158A37; Tue, 7 May 2024 09:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074550; cv=none; b=Ki4PX7XjMl/CMLb+M2F1PpN1qqqMRhLbI8bqKml2KF4oCNbTxEbmqgGGhrvGZdp/WgHdPaHwL5RdIss5KeSJ1Vey0jFDQzk0HhFB47oYioLdA0eaCKz6lSMoDTQxU2LISEQTDyPLO8H5RdYaMudBjkVRGWk1SNZ/41TCfxNu+uI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074550; c=relaxed/simple; bh=bHpVyST44tF4T9zshldUiiEXw2+O/L/8cC2lpkSqiIU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hnuTpwclRP+OzmSjPhkNiqeCALZIQ61M1U9Ogk6zWF6HcDyRjPXYmjJiR8ILT5nfrryaNDvYpGhAE1FIMl769uOMiXxUjfkjRVQ/ZT+kewm1ys0ev5+dLKvrbUTGiXM+lrUDrsxJ/Fpfc0lOoXVLg+EGnuYM6fsloakseT+SUSo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gmPCNE3M; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2e3f6166e4aso7188491fa.1; Tue, 07 May 2024 02:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715074546; x=1715679346; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Yj9chs7bm2QTr68OIU1XSJLLlP4/vHDWkmUWKji8NeI=; b=gmPCNE3McolKMXC5ZYfscVhmcO1TvunGl3BJ1EymyBC4MWokKfNeRJACHZGBBVcGmh XlyvZS7gY50kuHAxFNg2iCHi8+YFAar2vD8bheDU43pnSgnonLuDUHUUYhEU/JwQtZJo OvQaBUYjhEHsxViMyo2vyhzICI1aq+gsw6Ju6eqiXdRSssdSEWfU3XwgwfaDSXprkMbM Jo/RNNKeyYYMLWSLsNFdWl/m5zDFrvexbJwmLuDmSx6MmaTJSyVcTXXWh4kj1uxvISoo bK9TAA4YmAZo6ugGzP1e/jL6qLHVWJqUpIiKCpsOE5IAoY4b7zKHIZSNVwhzCpOqyVOp p7RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715074546; x=1715679346; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Yj9chs7bm2QTr68OIU1XSJLLlP4/vHDWkmUWKji8NeI=; b=d8efuk23QaekLsj49Nm0XUrq6ifLP5V3GQEwUked1ODyUCo0ZHYqFrhVXV+EPkou3i 0DhVCmTv9eMcYp5Q5rLilxeXWUuHaFH5NxkDPZZCKEB0ioLR4w2KnoIUJ2zl5pVBfSIO pi+whBhPoCK6zSCZq9iLJDLTbXf77RQQA2rKBWAhaHKT7XEMrveBVUf2E7ebx5jwxbJu zByI7kRgDeLYrS79dVjt9tlNphZ55iBg1VtLdhYyoXCRdtC2jxDbnEbSkx4Ouo+xdfN5 zpxlyTcT+h05bQsiBnbMAEgN39LH8RSlWMTdUVh59cZT5nXg+wAxaWa9RkF67YTrfNO+ WiRQ== X-Forwarded-Encrypted: i=1; AJvYcCXcIPcBTrq6rCSF+Uf59yDeY6geB9gctmgeB1FkViLChBv6uq6WX0lYjwVxo6WAymX24dpspzNSzEqBL8WVOce2PmtpLQkJOF5hoP07HcQBRfx/TrCcAGxOBWsyzxl18V4FjPxRlab6ijL9stK5Jylv X-Gm-Message-State: AOJu0YyYJ7IslmLk+YIaZGYphiE2pYl28q9lcTcBPAxt15Xz535PDdqI hBPDreo7vFBIT6S/60FV5pWW8BpCyhgdUzZ6JaVujsp3j8AQeRpT X-Received: by 2002:a2e:7a14:0:b0:2e1:c636:168a with SMTP id v20-20020a2e7a14000000b002e1c636168amr9523289ljc.24.1715074546347; Tue, 07 May 2024 02:35:46 -0700 (PDT) Received: from pc638.lan (host-185-121-47-193.sydskane.nu. [185.121.47.193]) by smtp.gmail.com with ESMTPSA id t18-20020a2e9d12000000b002e29c50c4dcsm1335473lji.27.2024.05.07.02.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:35:45 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: "Paul E . McKenney" Cc: RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Uladzislau Rezki , Oleksiy Avramchenko , Frederic Weisbecker , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-trace-kernel@vger.kernel.org, Ankur Arora , Thomas Gleixner , Mark Rutland Subject: [PATCH 14/48] tracing: Select new NEED_TASKS_RCU Kconfig option Date: Tue, 7 May 2024 11:34:56 +0200 Message-Id: <20240507093530.3043-15-urezki@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240507093530.3043-1-urezki@gmail.com> References: <20240507093530.3043-1-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Paul E. McKenney" 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 Acked-by: Mark Rutland Signed-off-by: Uladzislau Rezki (Sony) --- kernel/trace/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 61c541c36596..6cdc5ff919b0 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.39.2