Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp482471pxb; Wed, 11 Nov 2020 08:25:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMFxylWO4kjZQhiKO1upcd2ecYWOgGp9N8ThGdMjHOXdLwUZubSvwyjSCWytcyI2Vn7ju2 X-Received: by 2002:a2e:8119:: with SMTP id d25mr3196743ljg.45.1605111922922; Wed, 11 Nov 2020 08:25:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605111922; cv=none; d=google.com; s=arc-20160816; b=mkPW17F0VUbdTHKfmgaD8x1aSW6pgtdZxt+vH655UI7BnUqj9u53t0KDHSNXkIGMGR I5++k2TCtQ/0eeYlM96zG90Fpm7TQkgGLXfYIcDFrXceR6u6XTb59+ZmlE7uKoFOhg26 a4qtXde8h7deq/cD4CtGs6WatKq+RYAyN2YQOlyF7A9XvqidJ6bcS//NCPk7JIjcA2bE Lc3PJr1SHVPWIZk+jA0DU8IJqPZkWCKItfIEhI/KqmuANEuKQRwP9T1zGJ3jvGM85GwW 01Ij/1HP8ufdqdQiUYibn13Pnc94OfvcqFJY5rL48prRgT6ArBPYRnr7K6EJj+qodgcI xqjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=OXoYoBDH2gaWGWc38Yl2tEN4GUrZFehZkWWBfQtxEYo=; b=biszUfQcqSECEJLqJDk0iRAW61MBXoC4znHEp1opBXIDo8jQPuSs2yPsgbIMrKZ98l +eDv36Q2mb00NjoQaqArM4QLPJO2Ui2BN7D9DarH1uI+hiGWr9w4KMzZRUR5++rWLBjb 1+28uhvHmlaovgkMyGgSiI+a62AiGLu0drwLADY4MnqRUM7kFoqBWczWAY3YAyVjyKXd 52ccHec48Qe8PV8AJ50+D5L4tRY+Dubla6ZVQHz3dEoMllFep7iXcAJPQjCcDuYTJ91z JQmq0QUSjVjEwcW0Lx57Aff2GhCVJ0zijc2fpVzAvfHetJB3u8ip3/40L8u8wy7ExOME uQ8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si1257171ljo.320.2020.11.11.08.24.54; Wed, 11 Nov 2020 08:25:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726523AbgKKQUn (ORCPT + 99 others); Wed, 11 Nov 2020 11:20:43 -0500 Received: from foss.arm.com ([217.140.110.172]:57468 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgKKQUm (ORCPT ); Wed, 11 Nov 2020 11:20:42 -0500 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 84580101E; Wed, 11 Nov 2020 08:20:41 -0800 (PST) Received: from [192.168.2.22] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 12FBA3F6CF; Wed, 11 Nov 2020 08:20:38 -0800 (PST) Subject: Re: [PATCH v8 00/22] perf arm-spe: Refactor decoding & dumping flow To: Arnaldo Carvalho de Melo , Leo Yan Cc: Dave Martin , James Clark , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Al Grant , Wei Li , John Garry , Will Deacon , Mathieu Poirier , linux-kernel@vger.kernel.org References: <20201111071149.815-1-leo.yan@linaro.org> <20201111161051.GH355344@kernel.org> <20201111161535.GI355344@kernel.org> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Organization: ARM Ltd. Message-ID: Date: Wed, 11 Nov 2020 16:20:26 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201111161535.GI355344@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/11/2020 16:15, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 11, 2020 at 01:10:51PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Wed, Nov 11, 2020 at 03:11:27PM +0800, Leo Yan escreveu: >>> This is patch set v8 for refactoring Arm SPE trace decoding and dumping. >>> >>> This version addresses Andre's comment to pass parameter '&buf_len' at >>> the last call arm_spe_pkt_snprintf() in the function arm_spe_pkt_desc(). >>> >>> This patch set is cleanly applied on the top of perf/core branch >>> with commit 644bf4b0f7ac ("perf jevents: Add test for arch std events"). >>> >>> I retested this patch set on Hisilicon D06 platform with commands >>> "perf report -D" and "perf script", compared the decoding results >>> between with this patch set and without this patch set, "diff" tool >>> shows the result as expected. >> >> With the patches I applied I'm getting: >> >> util/arm-spe-decoder/arm-spe-pkt-decoder.c: In function 'arm_spe_pkt_desc': >> util/arm-spe-decoder/arm-spe-pkt-decoder.c:410:3: error: left shift count >= width of type [-Werror] >> case 1: ns = !!(packet->payload & NS_FLAG); >> ^ >> util/arm-spe-decoder/arm-spe-pkt-decoder.c:411:4: error: left shift count >= width of type [-Werror] >> el = (packet->payload & EL_FLAG) >> 61; >> ^ >> util/arm-spe-decoder/arm-spe-pkt-decoder.c:411:4: error: left shift count >= width of type [-Werror] >> util/arm-spe-decoder/arm-spe-pkt-decoder.c:416:3: error: left shift count >= width of type [-Werror] >> case 3: ns = !!(packet->payload & NS_FLAG); >> ^ >> CC /tmp/build/perf/util/arm-spe-decoder/arm-spe-decoder.o >> >> >> On: >> >> 16 11.70 android-ndk:r12b-arm : FAIL arm-linux-androideabi-gcc (GCC) 4.9.x 20150123 (prerelease) >> 17 11.32 android-ndk:r15c-arm : FAIL arm-linux-androideabi-gcc (GCC) 4.9.x 20150123 (prerelease) >> >> That were building ok before, builds still under way, perhaps its just >> on these old systems... > > [acme@five perf]$ git bisect good > cc6fa07fb1458cca3741919774eb050976471000 is the first bad commit > commit cc6fa07fb1458cca3741919774eb050976471000 > Author: Leo Yan > Date: Wed Nov 11 15:11:28 2020 +0800 > > perf arm-spe: Include bitops.h for BIT() macro > > Include header linux/bitops.h, directly use its BIT() macro and remove > the self defined macros. > > Signed-off-by: Leo Yan > Reviewed-by: Andre Przywara > Link: https://lore.kernel.org/r/20201111071149.815-2-leo.yan@linaro.org > Signed-off-by: Arnaldo Carvalho de Melo > > tools/perf/util/arm-spe-decoder/arm-spe-decoder.c | 5 +---- > tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c | 3 +-- > 2 files changed, 2 insertions(+), 6 deletions(-) Ah, thanks! I think I mentioned the missing usage of BIT_ULL() in an earlier review, and thought this was fixed. Possibly this gets fixed in a later patch in this series, and is a temporary regression? How do you want to handle this? Shall Leo resend, amending this patch (and merging 06 and 07 on the way ;-)? Cheers, Andre