Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21848846ybl; Mon, 6 Jan 2020 12:32:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwNbuRuXjhatnk5rMO3k/8JY9bvJaYgCoDdEJTowPK3doZ4tusjMFit0FhN4e23q6a+GNE/ X-Received: by 2002:a9d:7f16:: with SMTP id j22mr114788781otq.256.1578342750687; Mon, 06 Jan 2020 12:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578342750; cv=none; d=google.com; s=arc-20160816; b=PLskL/rQ3GU+ie9Q9QCr1iN+3OXb4LT0N1KBTocSkCfv1shV8BPsT60E0LiHqHkbsF 4gfJuR7cKRd4guaKsB30A7n1LNWvVUXHOgbBOh+A9gx5FeN1hQMicPMsgRnKvGNgnpyg e4BhFpSTUqQyndQe82iLwj3pVedgE9W+VDOGQftsmTy9bWBbJdQERRp5WCcDj2ELqePj 4MlSj7BncB++Jx4Ner2nwvKx+YbWvCNAy7mbGboloWaH0byn8birCoqMyv+344HC9J7o mjoPBgwPppgmnHdy1ITRiEKMbyHia72wOm4vEFvvir8mTQm4iUQBzKchHCSiejz1e7b0 lGfQ== 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; bh=f1MMEo/AlfaPCyIyTjVaYcnduj6Ue6dmW6qNYRYLbuY=; b=XazSIEkbHpqzGl7HumSGXxYPCfhiGa/eqnSMR2aPuYPIYf7+MMT5cdUx6dh6Xhoj01 GZncq2zZZWdwknWMYfUGzI3ABd/yC0EIfGIUTfNJZLd8FHbRmQolXDvL5f2VaoZw0s+r RWOfCeNPY/hUngQA1cQS3Jm3IERTkWKiqYMcP1jaHzBD5OISBkyKsYxQLFCe5bxmHevj sL5g1jBYotr9n3TGQTc2GlojScJMshezwhQ2rkDtQXPlTvypi/kXAL30YZAoll4fWHSP ROYo6pMSVHSA2KX0pxYHJUHu6a8DTlEqFYuc/ySKTExo0+mX1rcGOVbBCUwTX3q1z4f4 i+rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v18si37460843otn.202.2020.01.06.12.32.19; Mon, 06 Jan 2020 12:32:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727077AbgAFUaX (ORCPT + 99 others); Mon, 6 Jan 2020 15:30:23 -0500 Received: from mga03.intel.com ([134.134.136.65]:10708 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbgAFUaU (ORCPT ); Mon, 6 Jan 2020 15:30:20 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jan 2020 12:30:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,403,1571727600"; d="scan'208";a="245699436" Received: from labuser-ice-lake-client-platform.jf.intel.com ([10.54.55.50]) by fmsmga004.fm.intel.com with ESMTP; 06 Jan 2020 12:30:19 -0800 From: kan.liang@linux.intel.com To: peterz@infradead.org, acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, jolsa@kernel.org, eranian@google.com, alexander.shishkin@linux.intel.com, ak@linux.intel.com, Kan Liang Subject: [PATCH V5 RESEND 03/14] perf/x86/intel: Move BTS index to 47 Date: Mon, 6 Jan 2020 12:29:08 -0800 Message-Id: <20200106202919.2943-4-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200106202919.2943-1-kan.liang@linux.intel.com> References: <20200106202919.2943-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 PERF_METRICS counters now. Move BTS index to 47. Signed-off-by: Kan Liang --- No changes since V4 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 55a4d05ba6ec..7df1d5b78aa8 100644 --- a/arch/x86/include/asm/perf_event.h +++ b/arch/x86/include/asm/perf_event.h @@ -185,11 +185,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 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_ULL(62) -- 2.17.1