Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1488890rwb; Fri, 12 Aug 2022 01:34:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR45t4uizQuDXXszA4cfZgL1y3xqajBs4Fn0lNbw1x2C1zcOGdlKVH1gzkqNbi6tdYYaBQZz X-Received: by 2002:a05:6402:90d:b0:43b:9ee5:f7eb with SMTP id g13-20020a056402090d00b0043b9ee5f7ebmr2602583edz.71.1660293293955; Fri, 12 Aug 2022 01:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660293293; cv=none; d=google.com; s=arc-20160816; b=rPGBS53vTfS5hP6rxLRuG8nTBMj95ncSCGKRLV33mBdCr7gk0UQ93H7CGGoHp2pvlE Ki32/sAJX1AD8FSFImcmvoZCDZPMoH8D8LYlZp/KdBkeA2IswvVtOfkPHLrBiMkVmwEZ xmy1SaoQ3VZ0aA3sDxRHRT6/KqRtAaoSt/Ne/2RumjzkSlPgQGd6LTtVbaYH767/dFwu 5EGNqlNR1FyCe3lvFZgJ+KSAFyM9rnCaDExWnMEbMcRi0CSUUodOvmF4XZRWG2K+bXez Is/VUISXbokWIF2pNeqAbj8B0n03UfkyT30Zb9GQqI9a+HlpQB5xND9LfXnQ7Zze8oZ3 l0+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=0mFuBwdVPqFlV7N56fSA5adSdmVH4jP4hL7xdmNu1TE=; b=Z7xvz8oEKjEraMyWA8P0FlaD4AqFB/NumTtQB5ETaSYc7OpVv1oiwpi5LHazPotU8C WfgbjAZB69VgaeMfDRF5rXsQ+rxarboAsXzzDOYIoROq7QqiVH6DlYy2L1EN0Qdg2MeY dJJiElojKk7Lu2VDsm7AIY9jcA4h9+Go+B5XN5NEcZ57rnIh5gm5gQ09RELThlxRAm9U vZf6fnejTbiG7wE3pl19oXtoJwsvynVXcpxCYDOeIZ6hXX/SvbG0E1bM2KpnYK5G8WFl JjcJQ4f2LNmudd7U4G5kItwIzfLGoH1qsAqOi3VE0Pf2UtFY0aKdt0wsUl0dLixXKgcr C2Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pS5SodMo; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go35-20020a1709070da300b0072f5fa16193si1643090ejc.254.2022.08.12.01.34.27; Fri, 12 Aug 2022 01:34:53 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=pS5SodMo; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233404AbiHLIdN (ORCPT + 99 others); Fri, 12 Aug 2022 04:33:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiHLIdM (ORCPT ); Fri, 12 Aug 2022 04:33:12 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 743629DB55; Fri, 12 Aug 2022 01:33:11 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id fy5so838932ejc.3; Fri, 12 Aug 2022 01:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc; bh=0mFuBwdVPqFlV7N56fSA5adSdmVH4jP4hL7xdmNu1TE=; b=pS5SodMoU4hQS4XknHVjinNRjg577EauBYA6bS5qrDsjfMvBJvYU21NvSHcjUOBVPS 612iHeuvowrJW9LiJ5jXaZPZC5MJ4jchKgXxq6vJte8QSlI/Xi2dLNoQd3WqefxWLCJN BxdF6/o0jab2c2P2IVGxMcXlpYeCm4gRjhZTkr9HRhgGz8Ez2IW1lBOgDUTdl6FU+kBD Ox6vBglTUlQvT5PxIlvHBbqRWzmXYuStvL7U6Br1F9wcRz7+y22Yxs7PwRk7X/1lPVm2 P3BtctD056FcgzakKCLlvZOmKHkOvH1fD61L4SL+ECnH1qq/8MAaXE+wtYdzrKSPVhjt 5Z4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc; bh=0mFuBwdVPqFlV7N56fSA5adSdmVH4jP4hL7xdmNu1TE=; b=TIdeTdx333GWTm6kFut3AG8CpXu5+vkVSIlsdB6TrR/uNCdWcQe5KwxUuK/wCkQFxl aiijykmatuALeSkdA5CllmoV/L4IThUGs+y37xh9odIhSads97BnD+DE0aNViKX0QN74 KH+9PUhRWEScLtliTy9taLtRjmauymgTn0ayJBm/yIxV0HPLvWLkoP8kZnsG+U+d0qKa 9D1bWcENTvsJ8HLdaXBuOQjMugYWG8M1AaYUKUyzvv1ABrp7APQaUp5h4Sa35uRDKfmI vs41MmG4HB0H6x4saHbNjmmJ0yRKlfqZMzRHUG55cJ6iwKDDDeqf+wQDDLCFTMdRSjBV zgRw== X-Gm-Message-State: ACgBeo1zWBC1xadl1tJLc4u3EzZZZ9H9MiYN5idJH86eKwVNmJahxz6X aRpQQi3/ARPYfmfCbCxbV4M= X-Received: by 2002:a17:907:6e08:b0:731:83a3:58b6 with SMTP id sd8-20020a1709076e0800b0073183a358b6mr2027569ejc.12.1660293189500; Fri, 12 Aug 2022 01:33:09 -0700 (PDT) Received: from krava ([193.85.244.190]) by smtp.gmail.com with ESMTPSA id m17-20020a1709066d1100b007305b8aa36bsm538022ejr.157.2022.08.12.01.33.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 01:33:08 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Fri, 12 Aug 2022 10:33:06 +0200 To: Sandipan Das Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, x86@kernel.org, peterz@infradead.org, bp@alien8.de, acme@kernel.org, namhyung@kernel.org, tglx@linutronix.de, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, dave.hansen@linux.intel.com, like.xu.linux@gmail.com, eranian@google.com, ananth.narayan@amd.com, ravi.bangoria@amd.com, santosh.shukla@amd.com Subject: Re: [PATCH 2/4] tools headers x86: Sync msr-index.h with kernel sources Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, Aug 11, 2022 at 06:16:47PM +0530, Sandipan Das wrote: > Sync msr-index.h with the kernel sources by adding the new AMD Last Branch > Record Extension Version 2 (LbrExtV2) MSRs. > > Signed-off-by: Sandipan Das > --- > tools/arch/x86/include/asm/msr-index.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/tools/arch/x86/include/asm/msr-index.h b/tools/arch/x86/include/asm/msr-index.h > index cc615be27a54..7f9eaf497947 100644 > --- a/tools/arch/x86/include/asm/msr-index.h > +++ b/tools/arch/x86/include/asm/msr-index.h > @@ -574,6 +574,9 @@ > #define MSR_AMD64_PERF_CNTR_GLOBAL_CTL 0xc0000301 > #define MSR_AMD64_PERF_CNTR_GLOBAL_STATUS_CLR 0xc0000302 > > +/* AMD Last Branch Record MSRs */ > +#define MSR_AMD64_LBR_SELECT 0xc000010e curious do we actualy use this in tools somewhere? jirka > + > /* Fam 17h MSRs */ > #define MSR_F17H_IRPERF 0xc00000e9 > > @@ -745,6 +748,8 @@ > #define MSR_AMD_DBG_EXTN_CFG 0xc000010f > #define MSR_AMD_SAMP_BR_FROM 0xc0010300 > > +#define DBG_EXTN_CFG_LBRV2EN BIT_ULL(6) > + > #define MSR_IA32_MPERF 0x000000e7 > #define MSR_IA32_APERF 0x000000e8 > > -- > 2.34.1 >