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 2D9D5C76196 for ; Fri, 31 Mar 2023 11:53:12 +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=g5kpt+EcTOy+SvCNo2fQmmfgwfks7IP48+bKFQDsXi8=; b=vda7NSfUIYwCwT D0Aae1rVfHWnGD9tB25bKpnePeKqiqT/Sny6eXX1VRK+LoEsW+nk503eMuFEVC/E0QPbS9uPd74Q1 3Y8Ii4FQIypm86SJ/6JbpnwXQQfn8uV3wLL7vT7NNIerEDHUiqVvOPXQ7LLxI01XKon/68s9IHzss pm3t8uduUjmOzf5zWEV2CxygsT6GKeRoXhvacQzhDnVIrqqM3DN+10kfDrJrIxynIuWdy3+ULYFfP 9Eix32uVx0oTrio8xs1WpBh7LI3GYzGkydsgbqLNguvAd8hBNaWWbHDuJP6Fnbqlhb4Z8dPQ1ymsQ /6evFiQfGvDI03W+4H4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1piDIW-007Ava-0a; Fri, 31 Mar 2023 11:52:00 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1piDIQ-007Aug-1U for linux-arm-kernel@bombadil.infradead.org; Fri, 31 Mar 2023 11:51:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Y+L7uA3yCeYxn2V5NMkIndpDTV6A9Tyl9F8Img5B2XQ=; b=L4XHf260vFFrQGJVzkAoPmHIGu /P0hbxtsCq58WmKvZWuufcMzi5wyMEO9zpsZdoBAv1c/fSeEt7irwtIhKOJjzUsaWfJyR5Tr+byYa mDZBU5N6JTWr1aQvvxL83MYRd5t+C1TQ0PCNRlV0UuADKwcWBRrgNfrIBzXPYRUmhFu0D20DYPf55 7Ri09Aio8A1P1ni1nR5NHEmemDGnDTlbkeiaaoFKA/0qAoCJPHq5cP0i2PflFJpwD3DtEBBnyLysh NkSL8fcngprEz9SaFHmcLz1TuJ4N/snCPVZj4Rfe+19ckb2n7sfE2iFIUdCeEHntfKHXbQgtQdKMi 7cFUDT/w==; Received: from [187.19.238.117] (helo=quaco.ghostprotocols.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1piDIL-007e3v-0t; Fri, 31 Mar 2023 11:51:49 +0000 Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 747764052D; Fri, 31 Mar 2023 08:51:45 -0300 (-03) Date: Fri, 31 Mar 2023 08:51:45 -0300 From: Arnaldo Carvalho de Melo To: Mike Leach Cc: linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, suzuki.poulose@arm.com, leo.yan@linaro.org, peterz@infradead.org, mingo@redhat.com, will@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, gankulkarni@os.amperecomputing.com, darren@os.amperecomputing.com Subject: Re: [PATCH v9 0/3] perf: cs-etm: Update perf to handle new Coresight Trace ID Message-ID: References: <20230331055645.26918-1-mike.leach@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230331055645.26918-1-mike.leach@linaro.org> X-Url: http://acmel.wordpress.com 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 Em Fri, Mar 31, 2023 at 06:56:42AM +0100, Mike Leach escreveu: > The original method for allocating trace source ID values to sources was > to use a fixed algorithm for CPU based sources of (cpu_num * 2 + 0x10). > The STM was allocated ID 0x1. > > This mechanism is broken for systems with more than 47 cores. > > The kernel related patches the provide a fixed Trace ID allocation mechanism > are now upstreamed. > > This patchset updates the perf code to handle the changes to the trace ID > notification mechanism that now uses the PERF_RECORD_AUX_OUTPUT_HW_ID > packet to set Trace ID in the perf ETM decoders. > > Applies and test oo perf/core I'm keeping perf/core with the same contents as perf-tools-next, please use perf-tools-next as in the future I'll stop using the old perf/core name. Applied, testing. - Arnaldo > Changes since v8: > 1. Fix build issues > 2. Fix implicit function problem > > Changes since v7: > Split from original patchset [1] to be sent separately as kernel related > patches are now upstream. > > [1] https://lore.kernel.org/linux-arm-kernel/20230116124928.5440-1-mike.leach@linaro.org/ > > Mike Leach (3): > perf: cs-etm: Move mapping of Trace ID and cpu into helper function > perf: cs-etm: Update record event to use new Trace ID protocol > perf: cs-etm: Handle PERF_RECORD_AUX_OUTPUT_HW_ID packet > > tools/include/linux/coresight-pmu.h | 47 ++- > tools/perf/arch/arm/util/cs-etm.c | 27 +- > tools/perf/util/cs-etm-base.c | 3 +- > .../perf/util/cs-etm-decoder/cs-etm-decoder.c | 7 + > tools/perf/util/cs-etm.c | 326 +++++++++++++++--- > tools/perf/util/cs-etm.h | 14 +- > 6 files changed, 356 insertions(+), 68 deletions(-) > > -- > 2.17.1 > -- - Arnaldo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel