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 200E4C433F5 for ; Wed, 13 Apr 2022 09:14:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbiDMJQi (ORCPT ); Wed, 13 Apr 2022 05:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbiDMJQ3 (ORCPT ); Wed, 13 Apr 2022 05:16:29 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C027A286D5; Wed, 13 Apr 2022 02:14:08 -0700 (PDT) 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 8783F13D5; Wed, 13 Apr 2022 02:14:08 -0700 (PDT) Received: from [10.1.33.136] (e127744.cambridge.arm.com [10.1.33.136]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5BFE93F5A1; Wed, 13 Apr 2022 02:14:06 -0700 (PDT) Subject: Re: [PATCH] perf report: Set PERF_SAMPLE_DATA_SRC bit for Arm SPE event To: Leo Yan Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ravi Bangoria , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220413075124.635589-1-leo.yan@linaro.org> <20220413084941.GB521036@leoy-ThinkPad-X240s> From: German Gomez Message-ID: <38078438-dbce-690b-ba79-5c3713f97816@arm.com> Date: Wed, 13 Apr 2022 10:14:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220413084941.GB521036@leoy-ThinkPad-X240s> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/04/2022 09:49, Leo Yan wrote: > On Wed, Apr 13, 2022 at 09:15:40AM +0100, German Gomez wrote: > > [...] > >>> if (sort__mode == SORT_MODE__MEMORY) { >>> + /* >>> + * FIXUP: prior to kernel 5.18, Arm SPE missed to set >>> + * PERF_SAMPLE_DATA_SRC bit in sample type. For backward >>> + * compatibility, set the bit if it's an old perf data file. >>> + */ >>> + evlist__for_each_entry(session->evlist, evsel) { >>> + if (strstr(evsel->name, "arm_spe_") && >> This didn't work for me when the file recorded "-e arm_spe//" instead of >> "-e arm_spe_0//". Could you remove the trailing _? With that: > Sure, will change to "arm_spe". Just curious, if there any local > change at your side so we have the different event name? No local changes. I've always used "arm_spe//" and it always defaults to "arm_spe_0//". But it's still stored as the former in the data file. I haven't checked where this default happens though. Isn't it the same for you? Thanks, German > >> Tested-by: German Gomez > Thanks a lot, German! > > Leo