Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2815825rwb; Wed, 30 Nov 2022 11:13:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf6fYGgFMZlJgRGknxzRB0ediIT6Y6gQKpptICchAN5mnbDCbPWyNW3oEb3n2nZAFPx3lL2J X-Received: by 2002:a17:906:22d0:b0:7b2:a7aa:173d with SMTP id q16-20020a17090622d000b007b2a7aa173dmr49782482eja.140.1669835599861; Wed, 30 Nov 2022 11:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669835599; cv=none; d=google.com; s=arc-20160816; b=gOt2Z3sM0bkMUuJtAf4vE31NZmhPF1m9TiazurKqT5FEwG3vCf3wqKuZcNJiNv6br5 TvQb+VwJFhI9a945xYjIpByuGrR2V7d1tiP/Gt/zkl9T8QJ7kgDWfqQ5xljvEM59GnKK Y9QpeI72WqgkzmpwQctXlsHKRpjjlhPHKF/Ehk96YGrWS3yOb7DaPlR/KTnlfJ2ALqtM nAQGYj3g1s+Cvy2iGhZiN/Bs2azD2aoL5C/AbFbUw0ValV2UAyTDWHC0Q/gBxVGg4BrE e2bRW+u1xjYJDCg0HlVu9VY2d5CHkpE7JT4h0Jd4o8duUkmiMdGB1fE+rIfDRVM9qAnZ ZppA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=vODMQMs9AFsDd392YJDnQtLYs2gL4oduDS+rooXoVmo=; b=faW4xrGio+1nGUZvTnu3tsvevwNLsC3LqpAWK9hiWCSXNXnBTr/aOv0lmtFcg4yEKW bHT1CSbSZuDVarOvIazlDMwRttiOdOoWU8nYpfweSS8Gl9k1rP3afyXa16lb2ufkQl8U HC4LtB+RHHJeaB36SWQZ5FxV8CtND0psxl6dicrzD30cZGUrio0qvLqi1f2X8BWOQN00 4DEVKdPxElHc5PgzfV3mi1Xi4F/di0KIR8qgqDpR3nVxlQbDP/Vfrolzfs6M53S9g2dU DxFOc6rR7Eu1ZJHdj56omcqMEoaBux728uDgfQJQJxXJ0f+v/JrOAQg/bySk/jL9FgPv ioiQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt15-20020a1709072d8f00b007aeef4dd9cfsi2281410ejc.908.2022.11.30.11.12.59; Wed, 30 Nov 2022 11:13:19 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbiK3Sfa (ORCPT + 83 others); Wed, 30 Nov 2022 13:35:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230420AbiK3SfT (ORCPT ); Wed, 30 Nov 2022 13:35:19 -0500 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5108094908; Wed, 30 Nov 2022 10:35:17 -0800 (PST) Received: by mail-wr1-f46.google.com with SMTP id v1so28519254wrt.11; Wed, 30 Nov 2022 10:35:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vODMQMs9AFsDd392YJDnQtLYs2gL4oduDS+rooXoVmo=; b=EPNX6trFRYCJ6o/n+eQizWT42VaUaQe5kCWPyoRsi2Ff2vr/qegTYPjBDmXLqpiKoC vUIcWQevIsppIf1oICNwxcAY+s1PxPHmyVSE+W+e/g3b1v9MuWflfsmlgJYg4Ov6t7bW ZKR9jDVmEr04UUn+l7DRvs4cvIzi67tEdNZTM8hLCZMHeJMmo6sw7Kw45YeBdCvTe/Qv 8kBtnQzaKrGGtmL7qqYP+aVL9EhONgy61YTKJ3QRDW/HMMmtBWI84mIfvyP3iK2vwc5C 1HkB4HJ6CPdZqy1yzd3xIawZqR7L/TrHsvvP8ZMC9BPORGLV/gqO9PHKhxm9ffUOh3kL lIcw== X-Gm-Message-State: ANoB5pkJGv4UlWVd2Bqci5MIH4HH/kkm/x61N2+q028Wlpeyei/AtI9/ TazsqQOvAd3MbhCmsED1nHKZNH0UB/VNB6afJTU= X-Received: by 2002:adf:df05:0:b0:242:1783:5316 with SMTP id y5-20020adfdf05000000b0024217835316mr10336371wrl.701.1669833315512; Wed, 30 Nov 2022 10:35:15 -0800 (PST) MIME-Version: 1.0 References: <20221130165158.517385-1-james.clark@arm.com> In-Reply-To: <20221130165158.517385-1-james.clark@arm.com> From: Namhyung Kim Date: Wed, 30 Nov 2022 10:35:03 -0800 Message-ID: Subject: Re: [PATCH] perf: Fix interpretation of branch records To: James Clark Cc: linux-perf-users@vger.kernel.org, acme@kernel.org, sandipan.das@amd.com, Anshuman.Khandual@arm.com, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Wed, Nov 30, 2022 at 8:52 AM 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 Acked-by: Namhyung Kim Thanks, Namhyung > --- > 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; > }; > }; > }; > -- > 2.25.1 >