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 94D9EC6FD1C for ; Mon, 20 Mar 2023 22:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229758AbjCTW3U (ORCPT ); Mon, 20 Mar 2023 18:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjCTW3S (ORCPT ); Mon, 20 Mar 2023 18:29:18 -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 8D2DC619C; Mon, 20 Mar 2023 15:29:15 -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 753BEB810F6; Mon, 20 Mar 2023 22:29:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04FCDC433EF; Mon, 20 Mar 2023 22:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679351352; bh=scf65u0jBdg4sE2X6WhlnAwDa/Qn0mokAtjRKzVKTBk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aZUC//1LZhzPYZGH5UOU4TgPC/YD48hCJ+XuVz6zUEw2Ap+w59sv+K+pRiSKuK7qH b1QX3JSgetAwDNbXlXreAosBbAs7Qlc3nmxNOkgfoawYYn+oNbGTXZpTxaemcM0b0L oxDL5zO2I40RkzwuIEMYIWcAkCHrwrdFPZt5+1RlrXW5mQ81rVIdlkT6so0ihzQM05 BPkZ/mhJqNy7jaXB/T5AKeRFAroBlQxWi87V/sk4wONAh4uv/PE+kkM21ujCSZvErg CcELv5sT+SLNdzgVeA6GTdsTTDebiCyohXOXmunqoi+YC8dD5ZbgZ75o5V4WbTXabR xp+D1oMZIkppw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id EC8E04052D; Mon, 20 Mar 2023 19:29:09 -0300 (-03) Date: Mon, 20 Mar 2023 19:29:09 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: James Clark , linux-perf-users@vger.kernel.org, Anshuman.Khandual@arm.com, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , John Garry , Will Deacon , Mike Leach , Leo Yan , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 0/4] Enable display of partial and empty SVE predicates from Arm SPE data Message-ID: References: <20230320151509.1137462-1-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Mar 20, 2023 at 10:50:59AM -0700, Ian Rogers escreveu: > On Mon, Mar 20, 2023 at 8:15 AM James Clark wrote: > > > > Changes since v1: > > * Rebase onto perf/core because it no longer applied cleanly > > > > ------------ > > > > Hi, > > > > I'm submitting this on behalf of German who moved on to work on other > > things in Arm before he could finish it off. > > > > The predicate information is available on SPE samples from > > Armv8.3 (FEAT_SPEv1p1), this could be useful info for profiling SVE > > code as partial and empty predicates indicate that the full vector > > width isn't being used. There is a good example in the last commit > > message. > > > > Though currently, there isn't a suitable field to store the info > > on Perf samples, so this change also adds a new SIMD field. > > This field could be used by other architectures, but currently there > > is only one bit reserved to identify SVE. It's only added to > > struct perf_sample on the userspace side, and isn't part of the kernel > > ABI, so it doesn't survive a perf inject. Although this is the > > same behavior for some other fields like branch flags, so I don't > > think it should be an issue to do something similar here. Perhaps in > > the future we could make sure everything that is synthesised from > > auxtrace data also makes it back into the new Perf inject file without > > being lost. > > Series: > Acked-by: Ian Rogers Thanks, applied. - Arnaldo > Thanks, > Ian > > > German Gomez (4): > > perf event: Add simd_flags field to perf_sample > > perf arm-spe: Refactor arm-spe to support operation packet type > > perf arm-spe: Add SVE flags to the SPE samples > > perf report: Add 'simd' sort field > > > > tools/perf/Documentation/perf-report.txt | 1 + > > .../util/arm-spe-decoder/arm-spe-decoder.c | 30 ++++++++++-- > > .../util/arm-spe-decoder/arm-spe-decoder.h | 47 +++++++++++++++---- > > tools/perf/util/arm-spe.c | 28 +++++++++-- > > tools/perf/util/hist.c | 1 + > > tools/perf/util/hist.h | 1 + > > tools/perf/util/sample.h | 13 +++++ > > tools/perf/util/sort.c | 47 +++++++++++++++++++ > > tools/perf/util/sort.h | 2 + > > 9 files changed, 152 insertions(+), 18 deletions(-) > > > > > > base-commit: 96d541699e5c50b1bc2d50c83cd7145994d5f071 > > -- > > 2.34.1 > > -- - Arnaldo