Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp256105rwb; Thu, 1 Dec 2022 01:42:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf5dRnSduFLQ/EKO/nE0D3l9QvnzaPO1aJcoP2MGq4V8aJj+0we/xKlZ3OG0MtTzJSsYG7wk X-Received: by 2002:aa7:9293:0:b0:56b:9bf4:c1c4 with SMTP id j19-20020aa79293000000b0056b9bf4c1c4mr57966520pfa.67.1669887733766; Thu, 01 Dec 2022 01:42:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669887733; cv=pass; d=google.com; s=arc-20160816; b=0cLwsUk6WNkmj/kGT3sD6nB7klH3i40PPB/mrd/8G04mJ0f7cj/C5pbAqzp35iZdU5 jhsg9PZ/6j9YAjna3TseK2cu3iBbui9mlOWsBPvFZXpdauQvb8BrbBKwjv9GEonWXAvE gKDQChxqvEZC2stwmKofx39/jM2Tu0J7Xz77Quz+tNS5hONrJD/wk5dIdRcE5c8ClpBY RBl5bnDxp8Ci13lkLo/M+Q8W+SM/94tTluUq4S+b63R7x+cHw7jU8gsc50AY6dBq+qum KRpqgAyMJpPdCs0Yjx9JUHj8eSR5Dj2qfvrz6wvWm5q2zk14/EEcmwsbiJRrc5IHjpV2 MVsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:content-language:references:cc:to:subject:from :user-agent:date:message-id:dkim-signature; bh=BcdFz9FkmJIxfr/+yM9rS4Kjzifb2H0xt/ry1Ew11nM=; b=OqWaWvDsgaAi6TGrLzi4CjWdY9QjZFmLl/KkxcZuXFd2NbfHskkp4bBcIS/3R2cdsN Uyo4805mWh67O2EtxampQy9ZNvdg+RazooxirV2E6l7W5bj5lDg24mohOK1+riu2BZ5V e/l1itEu4SO7YXm2Qj2C35z1/GPwl7XLNbG67/STZFPlU5VpefW9HucD5ItynypjPGjO +bbyBkz1OVgqZ60k5oMB8NpCPi2sCXZBJjjmkAWHKtuU3TzxiBKFJShXHsF03ojrEGjd I8IeOVtmg93MEOnqanOVRsS6rNAnOgokekE5uCqdZ24yOGn66TIJ5zmyb/wgHhkPYU+r y/9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kwNAwvpW; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iy3-20020a170903130300b001869ba21491si3800590plb.8.2022.12.01.01.41.58; Thu, 01 Dec 2022 01:42:13 -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; dkim=pass header.i=@amd.com header.s=selector1 header.b=kwNAwvpW; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbiLAJEH (ORCPT + 82 others); Thu, 1 Dec 2022 04:04:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbiLAJDl (ORCPT ); Thu, 1 Dec 2022 04:03:41 -0500 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2044.outbound.protection.outlook.com [40.107.244.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7F8E8DBDA; Thu, 1 Dec 2022 01:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UYaZZHCBsWRaTCM25D+wJWTfPQ5ZJYXT6VL5G3t+UWXD7s3XlbWiRiAX+AaKg0f8SR/9Sfp3HlrtfSduegJ0UpM89ID/+tqte+oMxxJYap4wJyidEgbTTByTU+h8557Gv6PkB1g0eWgueouOseVeDzU5rapHC5KTF3gJF9iJL9l17h51m8l6KXlt5JVeahiKqd24hBc/cLZ60U9eIDuLqqNUb8vvkW5e9c2yAAbcYz0IYBzRdiYFiMhBxgTOtWaBByWHPfSX0zdHvcGls5pz6NDkOG5+EDc11NHsWlYl8ib7zzLjhffQC1fGsm5ZbHs/CVyeIEFUKi/ElmJ8LqYJ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BcdFz9FkmJIxfr/+yM9rS4Kjzifb2H0xt/ry1Ew11nM=; b=h1k7JugF2rbYPE8vApGolf2aIt6bFGl+7YXTtsIZpgQXljRI26qfvp2hIkzBXUO/GIbhTteEVZ57ayJoCkuGvr0J/qzyBKJ0HiVfFMb6yArEqMnO+YeQVddZAy8rODWqT/iKjPLxJG2c7fu0yU0EQbx6ZaXN6UJjB8939Lcfk4VZvO/wdEnAUxFeJ/b3nBhOt6xRR4D2jVcmZ5qhVceke43lsPRKF9sZ08L/OruNn+zi6Nebtvg2d+UTZ+zyTceZ7QXGrEjwMtozxtqW4NrEef/biMC+EyEf6Bq0PS8FWbmyAdWpbbV9freapsq5p72rXukxbmhd8ACbd9Zei3EadQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BcdFz9FkmJIxfr/+yM9rS4Kjzifb2H0xt/ry1Ew11nM=; b=kwNAwvpWpKDjSIzVsB2Z9VNPzJlAqmP1OsAjcafB0BWajsSTQabc3qLz7YP3bGWcOM/I6yvblsxQSA2mP3ttXiiNwd2hiHgoeQCTac1/kZIqpZyJSrNrRruPd+VO7g8yJK4qB2EilFhLjMA430jC+r/C6UxeWfGzQ3UQkyVKJ/Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB5712.namprd12.prod.outlook.com (2603:10b6:510:1e3::13) by DM4PR12MB5312.namprd12.prod.outlook.com (2603:10b6:5:39d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Thu, 1 Dec 2022 09:02:28 +0000 Received: from PH7PR12MB5712.namprd12.prod.outlook.com ([fe80::5593:9517:a2e9:1b6b]) by PH7PR12MB5712.namprd12.prod.outlook.com ([fe80::5593:9517:a2e9:1b6b%3]) with mapi id 15.20.5857.023; Thu, 1 Dec 2022 09:02:28 +0000 Message-ID: <444e806b-4593-7ea9-a8aa-27d2f726a751@amd.com> Date: Thu, 1 Dec 2022 14:32:14 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 From: Sandipan Das Subject: Re: [PATCH] perf: Fix interpretation of branch records To: James Clark , linux-perf-users@vger.kernel.org, acme@kernel.org, Anshuman.Khandual@arm.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 In-Reply-To: <20221130165158.517385-1-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0183.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:e8::9) To PH7PR12MB5712.namprd12.prod.outlook.com (2603:10b6:510:1e3::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB5712:EE_|DM4PR12MB5312:EE_ X-MS-Office365-Filtering-Correlation-Id: a4a285ac-ad10-45f2-537b-08dad37ac551 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CZeaBkTtSo7hmebvBlUObssYNWjY6ySadiwuanL3YPApO9J+oVFaoVkurMddUGInI0SGkOE1yKPkX/Hf0ZDNwHnepz8keyZcmYGrH/ZwSrUA3DN57L0DkeCjQKoq3tvTiChkHZ9onpLWUbPVYhl7t12NTAPVGtL6p72f5n1mbNZGEetoxLsVWra2yCSOEtgy/FYfc8ikrvznfxbKEh1GS7/QjeKglI3OkceWIWYd7Z2e0RjpTCF6MrrH2HStvuxp9rG+AcEc0hNiYTocVHVtF7bCyDWBL1k+5oPR2Z1VHyiHPFxE5jVS5Wt3sTimzvmDs6xWkvZEFZRawiwisB8yvQ19oKgJhvWEp1RsqPBJYYVeM/xDIj3x2fBO316ydOB1oubCKibMCvvi4QbYX+18T+qKJmKHThvo5hV2k6UBV7uOz6494XGVQK7aEQHy/yTI/4ypYwKRGTC1cum+HMQKcJmHrhwJmIrXm8qMMjXuwCSbI5BVrfrPc3IrswLrX+wFWIpayDgAmcR782bj7ciuseC4eQsVrCJEE6HkcVUSs5Y/+r/Wm0Jwjl0SF3RqSpWEZ52SVuz5lbA6Ty1cKF2JSrMITqtrOd3xb82YomOVHk+NAaeU6dz+05bm0Vxp82w21YhBcjXBnr2hVgAZRfB+8q/+/HnBEl1eiQLQEKN4dQWqBEli2NxygCoqEYgFQeNeUu8Qv5xHU/XpLvkXJVN54AtBZMfIpwHPLG+KxDjEeaM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB5712.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(396003)(366004)(346002)(39860400002)(451199015)(36756003)(86362001)(31696002)(6486002)(53546011)(6512007)(6506007)(6666004)(26005)(5660300002)(7416002)(478600001)(41300700001)(54906003)(2906002)(8936002)(4326008)(316002)(66476007)(44832011)(8676002)(66946007)(66556008)(186003)(38100700002)(2616005)(83380400001)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eGdNU2JjbFRiUzBpTkNaQnJXRUY1aGZkQk1scXZscHpkZVQwMndaZlZQc2pG?= =?utf-8?B?MFk4cXpYcWN0bTgvZGhHb05rRjNNWE9jaUFwb1MxaUtPQXlEOStGY3R0a0lw?= =?utf-8?B?YXU2cnI1VXg3THVnK0NUWDJGN296L216OFRNQm9YczRKczM0VW0ycm5YelND?= =?utf-8?B?c3phVXVYdEo0dWdMZHFqV2RwdjQ0SUNSSXNTRGNQbEhpWFUvNzJSSWswNkxv?= =?utf-8?B?RU1vWFRPS3ZXTkQ5eEh1WWw0aHFuTzRiMVFSbVNtenFnaVVVeDJPOE1PV1pQ?= =?utf-8?B?NU03aDJGVXZRV2dVMjIvTXZGODdpRTBHa01nRGE2TjkvU2w3UzBQNGE2TTZO?= =?utf-8?B?QTMweWF3L2JuZkVvNy8zVVRZb2d6WjBEUGVacENzaGtZTDZDSUNFc2RvZ2xO?= =?utf-8?B?dkM1MS9Hb0xwQlVrZVZkY2UxTStGRVg2eDVJNEN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.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2022 09:02:27.9551 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MQ0bK8DE0nwWf48iWml1pPa9tK6OzShaK17JrnyldmIg9tMEXiZMquDbm4i18XQlVYuYIkvVLfqdiu+8x6nekA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5312 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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/2022 10:21 PM, 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") Technically, in the kernel sources, commit 93315e46b000 ("perf/core: Add speculation info to branch entries") landed before commit b190bc4ac9e6 ("perf: Extend branch type classification"). So I think the Fixes tag should instead have commit 0ddea8e2a0c2 ("perf branch: Extend branch type classification") which added the UAPI changes to the perf tool headers. Aside from that, the patch looks good to me. > Signed-off-by: James Clark > --- > 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; > }; > }; > };