Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp695869ybz; Wed, 15 Apr 2020 16:56:40 -0700 (PDT) X-Google-Smtp-Source: APiQypKmkpZA7uH0FDayS9r1ILqoX1eicqca2xGnkmzPlQENzKnVkejemwv6q0mSGKGI8aawTnRw X-Received: by 2002:a17:906:b253:: with SMTP id ce19mr7655466ejb.341.1586995000446; Wed, 15 Apr 2020 16:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586995000; cv=none; d=google.com; s=arc-20160816; b=JQ4jv23Aj3lAGsmi8+qHiwcqD1ZtVOvl5gPSTz5PpdL67vsrsDWKgxpGxlFko0ELae yfczT5HXyt4LYMN0NgpqOp6L8p6tzZ/V0FEM1fGml/mlB3jDVVC/cgrk8JO+u4E2M/Je VEFajC/kRj6A0t7wn2iDOTxjXshpj6/F00zK+i8enK0ue/JLM8U554j9Z4edzTR6YE6y 9S6jG2Th5PB4mQMdKsy4NE2kzygN8uUgwa/lrMx3B26wmsqQ7DVhQx9rOuFHtQkNLyDV LrRR1CO8fEYnECZmtAySoxEqiJg7TGWpCmdJ9dkPfs7vFnUG+dgSRmp0sVXBQHkUsjGv Mcjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=j9Kociov3ZWsEjjQEk+d5Ogk450IyJc+ytPN3nwmTZE=; b=G62k0oqi82uUxs31t1wnTtlgPf7QLZpF06sixbrJ6OQ9ZLD1fMoQodo4OJRMSOBGPv r5Hz2HF4DTP12E4tjs/QzySd1i+RpzOh+8iVfxlfW2qIZJl4v+ALzUHp6120lhoIA04a 87O8hxzNsg6+d76vwd4VawZEf7UFq4hz7WvYvkI9A12jLIS9gUGmAxGL8zIUbAzCu+04 IDSw7UMVjH0Y7e4VSK+hbyOC81DsyjJfWGY3jrC3JRirwewFHNs8duGGuLUKrYkCczuo zgU+kNNYR/EZxXmotnPHdXfP3I95BAB7CWCIpVDs6C1Goq8zc7lIUTm8395m79Ou6mnr sg3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu23si4695416ejb.200.2020.04.15.16.56.17; Wed, 15 Apr 2020 16:56:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898257AbgDOMyH (ORCPT + 99 others); Wed, 15 Apr 2020 08:54:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:36140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2898252AbgDOMxv (ORCPT ); Wed, 15 Apr 2020 08:53:51 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6408E20737; Wed, 15 Apr 2020 12:53:50 +0000 (UTC) Date: Wed, 15 Apr 2020 08:53:48 -0400 From: Steven Rostedt To: John Stultz Cc: paulmck@kernel.org, Josh Triplett , lkml , Bjorn Andersson , Saravana Kannan , Todd Kjos , Stephen Boyd , Peter Zijlstra , Thomas Gleixner Subject: Re: On trace_*_rcuidle functions in modules Message-ID: <20200415085348.5511a5fe@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ +Peter +Thomas ] On Tue, 14 Apr 2020 19:20:01 -0700 John Stultz wrote: > Hey folks, > So recently I was looking at converting some drivers to be loadable > modules instead of built-in only, and one of my patches just landed in > -next and started getting build error reports. > > It ends up, recently in the merge window, the driver I was converting > to module switched a trace_*() function to trace_*_rcuidle() to fix a > bug. Now when building as a module, if tracing is configured on, it > can't seem to find the trace_*_rcuidle() symbol. Which modules need this. Currently, Thomas and Peter are working on removing trace events from places that don't have RCU enabled, or at least cleaning up the context switches from user to kernel to interrupt. -- Steve > > This is because, as you are aware, we don't declare trace_*_rcuidle > functions in modules - and haven't for quite some time: > https://lore.kernel.org/lkml/20120905062306.GA14756@leaf/ > > I wanted to better understand the background rationale for that patch, > to understand if not exporting the rcu_idle_exit and rcu_idle_enter, > calls was because they weren't used or if it was a more intentional > decision to avoid allowing modules to use them. > > Would it be reasonable to revisit that patch? Or is there some > recommended alternative solution? > > thanks > -john