From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22C2DC54E76 for ; Fri, 6 Jan 2023 09:54:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232034AbjAFJyc (ORCPT ); Fri, 6 Jan 2023 04:54:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjAFJy2 (ORCPT ); Fri, 6 Jan 2023 04:54:28 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B7A8645641; Fri, 6 Jan 2023 01:54:27 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2AFEF11FB; Fri, 6 Jan 2023 01:55:09 -0800 (PST) Received: from [10.57.45.115] (unknown [10.57.45.115]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4688B3F23F; Fri, 6 Jan 2023 01:54:25 -0800 (PST) Message-ID: <44e87647-d64e-ee24-0046-06bb15f5a1f4@arm.com> Date: Fri, 6 Jan 2023 09:54:23 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v6 11/14] kernel: events: Export perf_report_aux_output_id() From: Suzuki K Poulose To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org, Mark Rutland , Alexander Shishkin Cc: mathieu.poirier@linaro.org, leo.yan@linaro.org, quic_jinlmao@quicinc.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, Mike Leach , Adrian Hunter References: <20221123195010.6859-1-mike.leach@linaro.org> <20221123195010.6859-12-mike.leach@linaro.org> <9ea2a0d8-b025-bb56-3a04-1a88e340da2d@arm.com> In-Reply-To: <9ea2a0d8-b025-bb56-3a04-1a88e340da2d@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Peter, Ingo, Arnaldo On 13/12/2022 10:08, Suzuki K Poulose wrote: > Peter, > > On 24/11/2022 11:04, Suzuki Kuruppassery Poulose wrote: >> Peter >> >> >> On 23/11/2022 19:50, Mike Leach wrote: >>> CoreSight trace being updated to use the perf_report_aux_output_id() >>> in a similar way to intel-pt. >>> >>> This function in needs export visibility to allow it to be called from >>> kernel loadable modules, which CoreSight may configured to be built as. >>> >>> Signed-off-by: Mike Leach >>> Acked-by: Suzuki K Poulose >>> --- >>>   kernel/events/core.c | 1 + >>>   1 file changed, 1 insertion(+) >>> >>> diff --git a/kernel/events/core.c b/kernel/events/core.c >>> index 4ec3717003d5..ad388552f1d5 100644 >>> --- a/kernel/events/core.c >>> +++ b/kernel/events/core.c >>> @@ -9231,6 +9231,7 @@ void perf_report_aux_output_id(struct >>> perf_event *event, u64 hw_id) >>>       perf_output_end(&handle); >>>   } >>> +EXPORT_SYMBOL_GPL(perf_report_aux_output_id); >> >> Are you happy with me picking up this change through the coresight >> tree ? >> >> Suzuki >> > > Please could you let me know your thoughts on this ? Coresight PMU would > use this to inform the dynamically allocated trace id for a CPU to the > perf via this HWID packet. > > If you are happy with the above change, I could pick it up via the > coresight tree with your Ack. Otherwise, please could you pick it > up ? > Please could you let us know if this is acceptable and if so, how can this be pushed ? CoreSight PMU (which can be built as a module) is using these packets to advertise the traceID allocated for a given CPU bound ETM (which is made dynamic due to the limited number of ids available). The perf tool can use these packets to then decode and separate the trace data from shared buffer. As of now, the series to enable the dynamic trace id allocation is blocked on this change. Kind regards Suzuki > Suzuki >