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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 121C0C25B4F for ; Tue, 7 May 2024 14:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RmmtKbUDttbdu/LNAq+4yfOYVpQdp6OGaUHNtkIVKIE=; b=TnTLVbm7xZeZbH ZSJlDd/Of8qJivTeB/SKyp5GQBNCDF9eMLh4uQA0q4Fkp2F/udF69LZgaXiPFaG5Xm1OxLyTThriO +rh/iIljIqtcIW4addrMnhBLxbTr5WHSSF5OCC0Velm8skTAIKpTAHmNhtx0bFfbjp3Y0MOtQJRKV nZC7A+dXZOCHX9wLuX64PRYQN7JEUcRdrdKeH6VsMKu55CHI5q8uqR3SxwoaeSnGS0OWcFqw7WUPs jWE0LxRWDa45UGVnBPABuqx1iI2NaK6pOPub4w8qRkqgVg41fUiSRRdsg4ymW4RlUTsZm0fLuOVJ+ LI346+GcgmUCu547Qpmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4MDE-0000000Bbv8-1BZW; Tue, 07 May 2024 14:54:36 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4MD9-0000000Bbt7-2fwg for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2024 14:54:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 4EDA9CE119B; Tue, 7 May 2024 14:54:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F295BC2BBFC; Tue, 7 May 2024 14:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715093668; bh=Yskj674ZMF177lDIJTS3t2DCNKi8KbRLjMbjRBFCvDA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=maSV0SdSvYk9LCFNKcXLubAdxffaYIb9IBUOo8nvYgE/vbrjkokm7EXkhHi/46wbH jrQb/ujpzl8k+TDX13WUV9KSHBYjqxeSHtInzTDDQjjUwkWWWI+LB7snR8hLoGoDFf ArlNz1Nxtswsg3O23MwPQ1+TG9Pc9wg+oYxRH0rpSOnzLMlc4p/vM+7se4ojUb/PqK hgZQJY26vJkaiOlTKRJyE7iXXpXE4dw6Kr2vfGfjPLQp8dCuTyGJy74vz05Beh66ON X40v0Bpwp3eqBUIkjrIRDmOmuBIknqheXCQ4y6Ng1Rz+85tY+3YTaNWRKR33IxFFzE 4gPD9fVMOzyIw== Date: Tue, 7 May 2024 11:54:25 -0300 From: Arnaldo Carvalho de Melo To: Anshuman Khandual Cc: James Clark , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Jiri Olsa , Ian Rogers , Adrian Hunter , John Garry , Will Deacon , Leo Yan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-perf-users@vger.kernel.org, gankulkarni@os.amperecomputing.com, scclevenger@os.amperecomputing.com, coresight@lists.linaro.org, mike.leach@linaro.org Subject: Re: [PATCH 01/17] perf cs-etm: Print error for new PERF_RECORD_AUX_OUTPUT_HW_ID versions Message-ID: References: <20240429152207.479221-1-james.clark@arm.com> <20240429152207.479221-2-james.clark@arm.com> <08bcd616-5006-45df-b8cc-45cf3a1dd762@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240507_075432_063633_D8A802FC X-CRM114-Status: GOOD ( 27.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, May 07, 2024 at 04:27:25PM +0530, Anshuman Khandual wrote: > On 5/7/24 15:36, James Clark wrote: > > On 07/05/2024 04:47, Anshuman Khandual wrote: > >> On 4/29/24 20:51, James Clark wrote: > >>> The likely fix for this is to update Perf so print a helpful message. > >>> > >>> Signed-off-by: James Clark > >>> --- > >>> tools/perf/util/cs-etm.c | 5 ++++- > >>> 1 file changed, 4 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c > >>> index d65d7485886c..32818bd7cd17 100644 > >>> --- a/tools/perf/util/cs-etm.c > >>> +++ b/tools/perf/util/cs-etm.c > >>> @@ -335,8 +335,11 @@ static int cs_etm__process_aux_output_hw_id(struct perf_session *session, > >>> trace_chan_id = FIELD_GET(CS_AUX_HW_ID_TRACE_ID_MASK, hw_id); > >>> > >>> /* check that we can handle this version */ > >>> - if (version > CS_AUX_HW_ID_CURR_VERSION) > >>> + if (version > CS_AUX_HW_ID_CURR_VERSION) { > >>> + pr_err("CS ETM Trace: PERF_RECORD_AUX_OUTPUT_HW_ID version %d not supported. Please update Perf.\n", > >> > >> Is not this bit misleading ? PERF_RECORD_AUX_OUTPUT_HW_ID is just the perf record > >> format identifier. The record version here, is derived from the platform specific > >> hardware ID information embedded in this perf record. > > > > Not sure I follow what you mean here. 'version' is something that's > > output by the kernel. It's saved into a perf.data file, and if Perf > > can't handle version 2 for example, you need to update Perf. > Got it. > >> Should not this be just s/PERF_RECORD_AUX_OUTPUT_HW_ID/hardware ID/ instead ? > >> > > > > It's just a way to go from the error message to the part of the code or > > docs that you need to look at. "hardware ID" wouldn't lead you anywhere > > so I don't think it would be useful. > > Sure, fair enough. I'm taking this as an Acked-by, ok? - Arnaldo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel