Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1666576pxp; Thu, 17 Mar 2022 14:02:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSoiHf79ffvPxoorus8vCKtC2a/VtIziuQAyRzJUqZjYBS6ZjHGlCOVAZHPC5vT7XJmj3i X-Received: by 2002:a63:4f62:0:b0:382:b51:a4ac with SMTP id p34-20020a634f62000000b003820b51a4acmr3288218pgl.577.1647550936152; Thu, 17 Mar 2022 14:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647550936; cv=none; d=google.com; s=arc-20160816; b=maYWAxGg2tn0Df2R9FxyUMiYi59j6SpJcjz1/vQ369ol8IZ9FWmSS1vglEyXaI9wpY HsF/dO02hHadtwzX5Q1sT2vJOzxZB+WhcGZAf4sTxNx0d9AF441PyuSMXbbN1P7TcCXh Xg4uiJ1/s8TlMoUI9Pp13R4Nozzc8OopAvA8MClSpcRqJat0rlEI6HldGndv7CPaIJeA r/7538cHqq0e90+ESE7TRXE7kT5eD65fX/gat89oISLCHI4Fx+5lbnmj4u9HKJIWy551 pxxmKoOsvN3rk9vXAKUcecd53ssqEdSgyGCGFzw+ZPNycOd7J35ALUD8DbVlElIuIi7V 6YeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CaX5yy3TZIf6ZcOJgehghX6eKrQgtOSQM4u9oZsJHzA=; b=m7zMOFhYnYXOo/x6fPrjc7OMo5CHwJAVXCyaMqYIT1TItpnfmGNp1PaC6EFzmh5wZ2 aE82pdd2S+/yFeKewuzopiYehxIfyBBEQoi0XYDL8lCFaU+nEDEW0KQSE4py+rR01QvS OvPY90AdpKrFFt4QuHhBO5QQwVLeeKW5EakK7smrsOHc0NaFO2kxySZXWKj+svEf38IV zTaVbG58tn3egBOe97yfuzG5w7fivU6+/bx8aZxxTUpQEGJLZyv0B5Az9rpM+wOMgCf8 JjeZ0Hrh5mqRI2XPGBl9YjIr9HA1hoUbwdl52/G2St25polIjitJDNK+4TDBzXsWfCXs DIfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S1JuBb5Q; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d33-20020a630e21000000b003816043f0c1si3123838pgl.694.2022.03.17.14.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 14:02:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S1JuBb5Q; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C431186FAF; Thu, 17 Mar 2022 13:29:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbiCQUau (ORCPT + 99 others); Thu, 17 Mar 2022 16:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbiCQUap (ORCPT ); Thu, 17 Mar 2022 16:30:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B15B5117C89; Thu, 17 Mar 2022 13:29:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 725AEB81FA4; Thu, 17 Mar 2022 20:29:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33F3BC340E9; Thu, 17 Mar 2022 20:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647548966; bh=nHZwFcPsHoZVPZiFNEOBkiOiqLLgmQsX4Mrh69nQA1o=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=S1JuBb5QQZ0+q3D9jXHa386W5uyo9LclhrJH6QDKxTEVzJ2a6waIoh+e/2qmYrgCR DBhU9cynAiz29nIKGGrVOHsC8rI6qIgENYndg1MnThvtR8tvlTUOGHE8ZZ0p8u0iQ3 UDmOlxF/CNhR02I/Ga39fnM1o/r/2Zpe7JS0Fxf/pxEmGl/a0Natqf7D6d+RmIkbss wcOikc9COeNL5xWU2ii9PFmXCQobr5GuzYb/maef3SnuPOcQnKDwo3tIpgIFz5XPl/ G+l+3QYcSQH2GQl1Obh/jntHuTECNaTf+E6Y7yY1OK7NDULKtJuEZ78JJHitA1K+f9 rwIW+5nr0GeLg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id CA98E5C08A0; Thu, 17 Mar 2022 13:29:25 -0700 (PDT) Date: Thu, 17 Mar 2022 13:29:25 -0700 From: "Paul E. McKenney" To: Randy Dunlap Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, rcu@vger.kernel.org, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Joel Fernandes , linux-kernel@vger.kernel.org Subject: Re: RCU: undefined reference to irq_work_queue Message-ID: <20220317202925.GS4285@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220317140000.GO4285@paulmck-ThinkPad-P17-Gen-1> <20220317162033.GP4285@paulmck-ThinkPad-P17-Gen-1> <20220317173621.GQ4285@paulmck-ThinkPad-P17-Gen-1> <48d30a49-541f-ac67-aa2a-bef8b182dcd9@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48d30a49-541f-ac67-aa2a-bef8b182dcd9@infradead.org> X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 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 On Thu, Mar 17, 2022 at 01:26:45PM -0700, Randy Dunlap wrote: > > > On 3/17/22 10:36, Paul E. McKenney wrote: > > On Thu, Mar 17, 2022 at 04:45:11PM +0000, Hyeonggon Yoo wrote: > >> On Thu, Mar 17, 2022 at 09:20:33AM -0700, Paul E. McKenney wrote: > >>> On Thu, Mar 17, 2022 at 03:24:42PM +0000, Hyeonggon Yoo wrote: > >>>> On Thu, Mar 17, 2022 at 07:00:00AM -0700, Paul E. McKenney wrote: > >>>>> On Thu, Mar 17, 2022 at 11:32:53AM +0000, Hyeonggon Yoo wrote: > >>>>>> Hello RCU folks, > >>>>>> > > > ------------------------------------------------------------------------ > > > > diff --git a/arch/Kconfig b/arch/Kconfig > > index 678a80713b21..66c5b5543511 100644 > > --- a/arch/Kconfig > > +++ b/arch/Kconfig > > @@ -38,6 +38,7 @@ config KPROBES > > depends on MODULES > > depends on HAVE_KPROBES > > select KALLSYMS > > + select TASKS_RCU if PREEMPTION > > help > > Kprobes allows you to trap at almost any kernel address and > > execute a callback function. register_kprobe() establishes > > diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig > > index f559870fbf8b..4f665ae0cf55 100644 > > --- a/kernel/rcu/Kconfig > > +++ b/kernel/rcu/Kconfig > > @@ -78,7 +78,8 @@ config TASKS_RCU_GENERIC > > task-based RCU implementations. Not for manual selection. > > > > config TASKS_RCU > > - def_bool PREEMPTION > > + def_bool 0 > > preferably > def_bool n > > but the 0 probably works... :) In a later commit, it ends up like this: config TASKS_TRACE_RCU bool "Enable Tasks Trace RCU" depends on RCU_EXPERT default n select IRQ_WORK help This option enables a task-based RCU implementation that uses explicit rcu_read_lock_trace() read-side markers, and allows these readers to appear in the idle loop as well as on the CPU hotplug code paths. It can force IPIs on online CPUs, including idle ones, so use with caution. The reason being to allow people to use rcutorture without having to have TASKS_TRACE_RCU enabled. So you got your wish! I think... ;-) Thanx, Paul > > + select IRQ_WORK > > help > > This option enables a task-based RCU implementation that uses > > only voluntary context switch (not preemption!), idle, and > > diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig > > index 752ed89a293b..a7aaf150b704 100644 > > --- a/kernel/trace/Kconfig > > +++ b/kernel/trace/Kconfig > > @@ -127,6 +127,7 @@ config TRACING > > select BINARY_PRINTF > > select EVENT_TRACING > > select TRACE_CLOCK > > + select TASKS_RCU if PREEMPTION > > > > config GENERIC_TRACER > > bool > > -- > ~Randy