Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp40240rwb; Wed, 30 Nov 2022 21:39:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wHUxgif0ke/fOxXWFfwq7wcbBrEvTi75b08ipN9xb63a6XzlRExc5LuBGksAreGc6PM4J X-Received: by 2002:a17:902:ce90:b0:186:6d34:b7b5 with SMTP id f16-20020a170902ce9000b001866d34b7b5mr50000247plg.37.1669873198703; Wed, 30 Nov 2022 21:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669873198; cv=none; d=google.com; s=arc-20160816; b=RhDMNRP8sf2h3xLMCpnP2edxkKrBGjMNayOIqXX1ERhW11VyjKxa74QmZt8IefhZ7q JFuRfOvAi8QePvAWL2tn3zhE7WW5PGk9P69KvW/Ka5VIlWOBTKosUKW1oFhJSLHBNrY1 uGjkZ1BPMvoAHXKCoF4Sq5C/JU4aUQz/Dum7z0WFOXBdTt4pa1+nRCDT5r0geZwYXDjK 6xmywlOX6mGcsh0vqnZJITL6F1iD8IMFAG+hTfvmTR4ZpBi1wBe9o/PcOn4L3OUDO8T+ TLknpy4esI27gGbmhNDiGkwtxELOLckdAk7WcelmzuNkGG77ft87ujhKDBk8TV9xH0Sp 0eUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=4+3+pqjHUyX+oWFL8g3xe+WXWeTxK/7NjKM2rYtcau4=; b=bC0wT15h3I2uOW1igVy1NVGjBpqgBHmx9VQ54t0tOBKHCkuXxwwGKuzV8g81AElxcr NlKfnDkiPPGfpYVonUeZu0tXw3Qv/LJRCitJql7IhamNJlmckH3hiNu7j57n/qFHvVJ+ U2Rg/rKsDZBcjiOqI8J4DtW07vG+LMv2STGxAJLtISlKSlaXYjVKKGPCaYS3XB/vvuTm prZlaV1Dw1fZKnC+8h29NZcMytSqjPJzTrY9RdpcaBOLCca+zjYir4yoFnvZT9RV6G58 a3V9g0bEJI1wV93Ii9RUN76n2GRww/3EtgSeyvXqh/mivIaU30CoH8tKJC/6GvE4NI86 g9Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a056a0023d300b0056d64402a60si4215283pfc.94.2022.11.30.21.39.48; Wed, 30 Nov 2022 21:39:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229538AbiLAERD (ORCPT + 83 others); Wed, 30 Nov 2022 23:17:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiLAERB (ORCPT ); Wed, 30 Nov 2022 23:17:01 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C14269490F; Wed, 30 Nov 2022 20:17:00 -0800 (PST) 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 D960FD6E; Wed, 30 Nov 2022 20:17:06 -0800 (PST) Received: from [10.162.43.8] (unknown [10.162.43.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AA94D3F73D; Wed, 30 Nov 2022 20:16:56 -0800 (PST) Message-ID: <8b7606a4-63e4-6d0c-6b83-5ef51c83385c@arm.com> Date: Thu, 1 Dec 2022 09:46:53 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] perf: Fix interpretation of branch records To: James Clark , linux-perf-users@vger.kernel.org, acme@kernel.org, sandipan.das@amd.com Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim References: <20221130165158.517385-1-james.clark@arm.com> Content-Language: en-US From: Anshuman Khandual In-Reply-To: <20221130165158.517385-1-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/30/22 22:21, James Clark wrote: > Commit 93315e46b000 ("perf/core: Add speculation info to branch > entries") added a new field in between type and new_type. Perf has > its own copy of this struct so update it to match the kernel side. > > This doesn't currently cause any issues because new_type is only used > by the Arm BRBE driver which isn't merged yet. > > Fixes: 93315e46b000 ("perf/core: Add speculation info to branch entries") > Signed-off-by: James Clark Again, problem from having the same structure in two different places Reviewed-by: Anshuman Khandual > --- > tools/perf/util/branch.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/util/branch.h b/tools/perf/util/branch.h > index d6017c9b1872..3ed792db1125 100644 > --- a/tools/perf/util/branch.h > +++ b/tools/perf/util/branch.h > @@ -22,9 +22,10 @@ struct branch_flags { > u64 abort:1; > u64 cycles:16; > u64 type:4; > + u64 spec:2; > u64 new_type:4; > u64 priv:3; > - u64 reserved:33; > + u64 reserved:31; > }; > }; > };