Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1494892ybh; Thu, 23 Jul 2020 10:12:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/339OAe9vPV4sEfxX8CP3XiwyKllTjg7soSRBQE/S2H1qP3cVuIb35ZsT6msYN2XUIgNr X-Received: by 2002:a05:6402:b4c:: with SMTP id bx12mr4950162edb.157.1595524374067; Thu, 23 Jul 2020 10:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595524374; cv=none; d=google.com; s=arc-20160816; b=xt/DPjxCpYqukcJLnnPXKkdnrcCBY6AqD9oRdLaBZWwoWYU2SAqGfC82UOpUyW4sEY zQqLdfWlv3jm4IdyggOq+yENQgtQToNIOls5SA7hhQUZXR6pWC7ids9Sq9fTtfPuK5CO fjPF2IbtoC4o4S7EJTrHzbL+uL2qXWi09Ex5VxqF26LBtJAWEBT5GgtbOrCBZfDn8tXi 98ybLagMUldpmJT7c7e5KL1USVR116bALBSie4t7YUa8E11RquHFQ++xXK9KxB54kCzp y9huN9k8cw1GyzBQfohB+VNmvNKLAPz9CjgR1l0xX/7SXl5a/bNoaTNnCuusi4se73oO VAjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr; bh=N2Jok6hkYRnv/dGZQems6iaMRFXkrWhhUY0XG6BzExk=; b=bHdWOyAjxFZFXFJYmXdv0pFBAWOX78CHbasJQSn0fZpDlATiv/a1GpnejpDDH7UTDp +xNjV1p0t+QuLFMsHBQUaDIJQ39MYuMENSxeG2tGcG2Lgayu4JYGzZh5RC4St/lX/wAH SL2MoGNzriHjwRyomVTZ4fkIezPSbrfWftz0h2TNZcmTBLaqRT9dDdznUFYb5rYtfesl 3znNuzaOjWm4NtnebDuMmS/0KilMWnKcbUjBVzKMUzmwwX2OiPYBDGX5nXj65Joi8BOq kxFQDEezh1QsVsc3KfwW9W6W8gE1gFYpltTGDVGxYzJ0reLlSKZMY4N+bpwsFdTbWBzr 38BA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qp24si2660625ejb.270.2020.07.23.10.12.31; Thu, 23 Jul 2020 10:12:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730098AbgGWRLz (ORCPT + 99 others); Thu, 23 Jul 2020 13:11:55 -0400 Received: from mga05.intel.com ([192.55.52.43]:6574 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730050AbgGWRLo (ORCPT ); Thu, 23 Jul 2020 13:11:44 -0400 IronPort-SDR: F1kQxuNhtp3go6R02yWdhdxdcX3sVoMsErAMIkrkljacqT98w5/ZOFOaePAZ72Z0ooL9whqP7H 9gA6Mtr6G9eg== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="235456724" X-IronPort-AV: E=Sophos;i="5.75,387,1589266800"; d="scan'208";a="235456724" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 10:11:43 -0700 IronPort-SDR: IV4ZqdwLeoS3rJd18OTVjYEn3oOIlJ9Jg9iUifeU1xsKH+lk5Lg+HZ7D5s7p3b3irICIuGWJch ZbI5vVmaDpqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,387,1589266800"; d="scan'208";a="488904260" Received: from labuser-ice-lake-client-platform.jf.intel.com ([10.54.55.65]) by fmsmga005.fm.intel.com with ESMTP; 23 Jul 2020 10:11:43 -0700 From: kan.liang@linux.intel.com To: peterz@infradead.org, acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: jolsa@kernel.org, eranian@google.com, alexander.shishkin@linux.intel.com, ak@linux.intel.com, like.xu@linux.intel.com, Kan Liang Subject: [PATCH V7 04/14] perf/x86/intel: Move BTS index to 47 Date: Thu, 23 Jul 2020 10:11:07 -0700 Message-Id: <20200723171117.9918-5-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200723171117.9918-1-kan.liang@linux.intel.com> References: <20200723171117.9918-1-kan.liang@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kan Liang The bit 48 in the PERF_GLOBAL_STATUS is used to indicate the overflow status of the PERF_METRICS counters. Move the BTS index to the bit 47. Signed-off-by: Kan Liang --- arch/x86/include/asm/perf_event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h index fe8110a8c75b..58419e50ff98 100644 --- a/arch/x86/include/asm/perf_event.h +++ b/arch/x86/include/asm/perf_event.h @@ -238,11 +238,11 @@ struct x86_pmu_capability { /* * We model BTS tracing as another fixed-mode PMC. * - * We choose a value in the middle of the fixed event range, since lower + * We choose the value 47 for the fixed index of BTS, since lower * values are used by actual fixed events and higher values are used * to indicate other overflow conditions in the PERF_GLOBAL_STATUS msr. */ -#define INTEL_PMC_IDX_FIXED_BTS (INTEL_PMC_IDX_FIXED + 16) +#define INTEL_PMC_IDX_FIXED_BTS (INTEL_PMC_IDX_FIXED + 15) #define GLOBAL_STATUS_COND_CHG BIT_ULL(63) #define GLOBAL_STATUS_BUFFER_OVF_BIT 62 -- 2.17.1