Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1890224rwi; Thu, 20 Oct 2022 19:24:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Jq9RzkUc5SBkYJ/YA+TaEmKN2wPt1VJh6ZuFMcA7CBDmXRZFXcPdmzaRDrAf2KHxc5hHM X-Received: by 2002:a05:6402:34ce:b0:45d:14c9:c522 with SMTP id w14-20020a05640234ce00b0045d14c9c522mr14879666edc.160.1666319052404; Thu, 20 Oct 2022 19:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666319052; cv=none; d=google.com; s=arc-20160816; b=K0URnXSNWdUS5w8NmUGGMVQwfaRGTKgSeO0VC/kx2xwyeP0AgpOLxMgIM5hPK9wmor ZbVMq5dDeNYZD49b56oD+N7rpkKmB+oCyeJ5UZEy3pTuqbeT0YG5gQloiHdDjlGC1UZ+ DqtuEozTHdtjHbJkanKix17VUunHdDib6TWT2/vFVWl8acygqlh8QNlZlK5sHo27O3Q6 LVpUL4a8AwUjPgqbZgj1O/WMdjpWBy3919cBj0HVa243ABIZ7p9gJptTfO3F4ZCF/e7F oclWTSRyD5LmG8HU3ZFRdCiH81M4DzuRyKmMjM8jYcTtMKlbeqqm8yo2xH8UT4LvGWqH lkVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=92c3dpz7xSXnFXuvfnzahqMV+CBgkR4k2eYbA0Uvvj0=; b=AluhWBA2cI1l1CVULT4J4ef6M+/uz10Pm7s6/daHbaKz3UWzRX3yj2PGUiHDXFMOtE jSzywShyys2YkFE0fbleEDK+RBxO+TLjNFARftUU8jH1cKMzCs1k5Y6xvzNoChUGVOah 5YZq04NlNPZW113GrdQDdXysekY8cZ5mcpHNulu1CvzJDI//da57y6lya0REE5yUHlDe XtgJKHtP+7/XxcxdfhlKKWdaguAktMSrQ4P99DUX7NHTghKVq3eEUdpRTyhAgGq5XaY3 OMS/t334FuhBJ/OsPzx7q8Sl3wPEhMVjYybPsYNbTA1nyy5vUwU1CbuE8rDBKb/F7rly msdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne31-20020a1709077b9f00b00783e7d72fc0si12775232ejc.272.2022.10.20.19.23.47; Thu, 20 Oct 2022 19:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbiJUCM6 (ORCPT + 99 others); Thu, 20 Oct 2022 22:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiJUCM4 (ORCPT ); Thu, 20 Oct 2022 22:12:56 -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 4AFEE1F0422; Thu, 20 Oct 2022 19:12:55 -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 06599B82A1E; Fri, 21 Oct 2022 02:12:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 213C3C433C1; Fri, 21 Oct 2022 02:12:51 +0000 (UTC) Date: Thu, 20 Oct 2022 22:12:55 -0400 From: Steven Rostedt To: richard clark Cc: bristot@kernel.org, linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Question about 'for_each_kernel_tracepoint(...)' function Message-ID: <20221020221255.5b3dffe1@gandalf.local.home> In-Reply-To: References: <20221020111439.76e72230@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Fri, 21 Oct 2022 09:43:14 +0800 richard clark wrote: > Ah, as you can see that I did it, but the result is not what I > expected :-). Help? Looking at the code, I see it does indeed only look at builtin tracepoints. But if you want one module to have access to the tracepoints of another, then you can have the first one export it. EXPORT_SYMBOL_TRACEPOINT_GPL(function_event_a); And then module b should have access to it. -- Steve