Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3003779pxy; Mon, 3 May 2021 12:48:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR1Bn5ieNqblwrPP17hlGt7Xc4WCmR7mP0QjBn9Z0xv2MDy2gIgktsmcoa0by7Ewojojis X-Received: by 2002:aa7:d0c9:: with SMTP id u9mr21886269edo.43.1620071280135; Mon, 03 May 2021 12:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620071280; cv=none; d=google.com; s=arc-20160816; b=dnlnnwjK01iKa6gTFDnuJgGQLUHFSoJOEmfzuNENM1+ep8e1l2ZAK6VUNIcm+PkqyE T1oOXeXwCUYOunRnSck3aQeSIOlZL7SPN/wTUOsG/F9sECisnt3nu1Bxt4y+IiCZ6S+m qs9L0IvRuAFjg4dHTYPOzp8RiSYA67s5v6ERSFQKKaK7/G1djhg81sAGxncQHEcGnJRl VyWcdBXdQTN0Cr4j3wf+X61LXABgTrDYHXQHG8Z+acLGQDSa5Ekr8A6DBmQW6Zd0/wsv MQleSzEzx0z0wbSg7c6sMU2VuKxxQuX9k3s63g+aFOewgUJiEsXeB/6k0FtxgEpr1Iq3 ufow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=eHo0/dbu5krWRcuyHJQMSjd6F7AXefWg+8SLFMMDFkI=; b=nrfS5jcD6ou3Rozqjf2z0KuKtldSJ1qxp7b/rgYF5pSFmuxA/4jQ02UKcRuUgTAoP/ L8VR2ZlwLdDjJFqWHpKXMOYsaX7m/IwsW4qS0Svg5Ged7UIuBp56DZZEXDJRgFQCOD3O kfXTq/touE1NiXk9v0Iia0LjmCfEkd1gevCGZa3T4B4RhOuKe4FWtqrlmtB0w2QyH4rn ohuz+nbmA+k6/mWewgWaIGbnKfG8H3PcLnd/S2ZDkj/UfGfXuReL8MTkciOlyXRe0s3J OXogEtu9laFUgIn3UAyMzVHoiqtHq6SbwxiSdZq5gfrvFhIH7Z2iMOuNmbiyDcq+jWaZ SV2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ggrgcJ8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm15si9590285edb.233.2021.05.03.12.47.35; Mon, 03 May 2021 12:48:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ggrgcJ8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbhECTrf (ORCPT + 99 others); Mon, 3 May 2021 15:47:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:61000 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbhECTrc (ORCPT ); Mon, 3 May 2021 15:47:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620071198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=eHo0/dbu5krWRcuyHJQMSjd6F7AXefWg+8SLFMMDFkI=; b=ggrgcJ8wW5Vb2N4rg3XFobsKXgE46x5C/ZPwrqkMfVxK0q6qAEYVrEVYK3ERz0yYPdILWj Q7rp9btoS94hNLYQ7uvmziGOHwvarWQAuLG2YPLx3coSl46hwXUf+3yExAzxu0+mv76vwN ATQEXtNuJqHoucEenkx+GI4M0daR+3s= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-149-5Ce4T9HpOn2dSpl4ADT5IQ-1; Mon, 03 May 2021 15:46:36 -0400 X-MC-Unique: 5Ce4T9HpOn2dSpl4ADT5IQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3DC3A801106; Mon, 3 May 2021 19:46:35 +0000 (UTC) Received: from quaco.ghostprotocols.net (unknown [10.3.128.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E5A6110190AA; Mon, 3 May 2021 19:46:34 +0000 (UTC) Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id B91BA4034C; Mon, 3 May 2021 12:00:01 -0300 (-03) Date: Mon, 3 May 2021 12:00:01 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa , Namhyung Kim Cc: Kan Liang , Peter Zijlstra , Linux Kernel Mailing List Subject: [FYI][PATCH 1/1] tools arch x86: Sync the msr-index.h copy with the kernel sources Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To pick up the changes from these csets: d0946a882e622022 ("perf/x86/intel: Hybrid PMU support for perf capabilities") That cause no changes to tooling as it isn't adding any new MSR, just some capabilities for a pre-existing one: $ tools/perf/trace/beauty/tracepoints/x86_msr.sh > before $ cp arch/x86/include/asm/msr-index.h tools/arch/x86/include/asm/msr-index.h $ tools/perf/trace/beauty/tracepoints/x86_msr.sh > after $ diff -u before after $ Just silences this perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/asm/msr-index.h' differs from latest version at 'arch/x86/include/asm/msr-index.h' diff -u tools/arch/x86/include/asm/msr-index.h arch/x86/include/asm/msr-index.h Cc: Kan Liang Cc: Peter Zijlstra Signed-off-by: Arnaldo Carvalho de Melo --- tools/arch/x86/include/asm/msr-index.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/arch/x86/include/asm/msr-index.h b/tools/arch/x86/include/asm/msr-index.h index 45029354e0a8b42f..742d89a00721dce1 100644 --- a/tools/arch/x86/include/asm/msr-index.h +++ b/tools/arch/x86/include/asm/msr-index.h @@ -185,6 +185,9 @@ #define MSR_PEBS_DATA_CFG 0x000003f2 #define MSR_IA32_DS_AREA 0x00000600 #define MSR_IA32_PERF_CAPABILITIES 0x00000345 +#define PERF_CAP_METRICS_IDX 15 +#define PERF_CAP_PT_IDX 16 + #define MSR_PEBS_LD_LAT_THRESHOLD 0x000003f6 #define MSR_IA32_RTIT_CTL 0x00000570 @@ -265,6 +268,7 @@ #define DEBUGCTLMSR_LBR (1UL << 0) /* last branch recording */ #define DEBUGCTLMSR_BTF_SHIFT 1 #define DEBUGCTLMSR_BTF (1UL << 1) /* single-step on branches */ +#define DEBUGCTLMSR_BUS_LOCK_DETECT (1UL << 2) #define DEBUGCTLMSR_TR (1UL << 6) #define DEBUGCTLMSR_BTS (1UL << 7) #define DEBUGCTLMSR_BTINT (1UL << 8) -- 2.26.3