Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp238832ybz; Wed, 15 Apr 2020 07:53:48 -0700 (PDT) X-Google-Smtp-Source: APiQypJR4cUmqWsO6ihJWLdo0riF8OU04FzLe/3skrAlzbsRP+YwJLwd9Y5hJ5vjX7rcSPELA6fC X-Received: by 2002:a50:b966:: with SMTP id m93mr25086042ede.346.1586962428679; Wed, 15 Apr 2020 07:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586962428; cv=none; d=google.com; s=arc-20160816; b=wwvVL3owJ0l37ne8noFxK9/IiTK8xy36ZSwVnkOlbm/sRrBDvfniZlDzFhoOlXPz77 QWK1F15jEwhjYC2/uuykTtuYxglK2rbxwA4gcbnHdZ6e7iHl1BzctHz2V3mxXjovR4Up +Q6Jifkmi4pHgE5rXcFYh5GORaPGkJ8vswvoBvPhHFx7TCArCPWjZrezRQRb2gezzRZg i+VLl6kv3Vae03iz+wH8xBWA+45Lfo49dM1speo62H6cbyBlWqQdeVKhduQEbjo6aKB1 p7mX0EhiW7upovVUSIOqAa5JEYKzcd0lAg46qV2EYeVbJblpEEjnS9NKp5oyK5lSxKFn RG6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=YgPSbyNGvVAoCuqxUNRN4NpvxLHfZUZwSYt/tFcW1eg=; b=rUOGUtCMo0WLgOstx3cp87lt14m73DyRl+0Uo9Kmb1/QVzYczOHUn1G+bnt5KWVch7 0cIJkq78jzQh4jXu6GSN88MBCVgGrfzts32zJ9xg7FfA9SMxZd5gbhkDgYVBXkQK4Q/8 wwvP2b0En0UBsKeMzY9cHudXaTqP4NIzB/4qqnKAj5lfy9sfR6AzFdVfWtRr+tA07h4S H0aanEkQs9YwRxG1vYhTwZwgn1Xm/XWtCS02TRPjKvLRTFMHqr+8hy375jx+r224gpKH cmy/MR8ThrhszAosUFAxk7k8VyMvyud5Q/D3Xp0DauPNXZzBxvtmJew9nHq2GKR4qak9 u9gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ev9CSshm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi10si12027985edb.465.2020.04.15.07.53.24; Wed, 15 Apr 2020 07:53:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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; dkim=pass header.i=@linaro.org header.s=google header.b=ev9CSshm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407891AbgDOCUT (ORCPT + 99 others); Tue, 14 Apr 2020 22:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392934AbgDOCUM (ORCPT ); Tue, 14 Apr 2020 22:20:12 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC8B1C061A0C for ; Tue, 14 Apr 2020 19:20:12 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id i22so1863197otp.12 for ; Tue, 14 Apr 2020 19:20:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=YgPSbyNGvVAoCuqxUNRN4NpvxLHfZUZwSYt/tFcW1eg=; b=ev9CSshmpd288OI2RySLh2q2mgmSffhzS/LnOCL38PGI3ZsMqiL0rPSGgnbtmlw5EL NhkILugezD7xMSKBJ+PJPlDo3aYyXF1RieA0dXPDz7eQd/KzXyd30KRray7Zvb2NCK03 YoHqTRD4A8BV+iPiReVBaXpzabySWyCuWb+NOm6ywm1NO39EFOFp9ePDBmwI8J7MkQow ZyIPIoai6Jm2JypvCm9HBfBehqlu/kmhUqH5YN8S6c5CRTjE9R3STlMNFCJNCbs8XE8g JQ2TSRlQtEWSTd1bnG0ttffyDPzTyXvqw+mqwJ9J9hZqgU53tLybMP7oJHn46lZaj5FB dIKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=YgPSbyNGvVAoCuqxUNRN4NpvxLHfZUZwSYt/tFcW1eg=; b=Jrfs68OAYbd672gl/X439RhAPX47pTDejHrs70aIRBF859n1NSnOIRbb0kFdp/fjfk DoW4o34k6F8Szyc09W3Sq+XbdBOG3WRvfbBsvstDe0GZUCn3lITd3GwMquHxgpnJRFOg hbw9PBKugL7KKC7qpO9EEnBtgfCp9qJHD+H95s78P7QgAd1+qZQV2wJ4g4efiQtJVhh+ LHmZ7r2tbo3oEYzsGDvMwR/AjEOi7vH5j412L84ZPS9eUYB5VC/2Q7DiGhJcF3UFt/wp HHyJbHWfWvzwN7st8Li/JEZLYJUA4lrXZGRB1v24b2mGCwkDX1o1HELzKxtf67kUY2oC svjg== X-Gm-Message-State: AGi0PuYRv5Ebzqunj7jvgErNQKT0HKz2kQQCmjmy0RAGNGwoXW0c0SBa ZUJhBmOcM3I2kE217cLGXkdcjYMxcxaZPW8S35qA3w== X-Received: by 2002:a9d:3988:: with SMTP id y8mr11164280otb.352.1586917212201; Tue, 14 Apr 2020 19:20:12 -0700 (PDT) MIME-Version: 1.0 From: John Stultz Date: Tue, 14 Apr 2020 19:20:01 -0700 Message-ID: Subject: On trace_*_rcuidle functions in modules To: paulmck@kernel.org, Josh Triplett , Steven Rostedt Cc: lkml , Bjorn Andersson , Saravana Kannan , Todd Kjos , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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