Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp805035img; Mon, 18 Mar 2019 14:47:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpTknPonPfQfSIPgFQ+4jFRsJHFdoJs06m18YUb2MBEDhXU95uGqAbLzNcH5uZLWj9jPI2 X-Received: by 2002:a63:d015:: with SMTP id z21mr19017645pgf.215.1552945643187; Mon, 18 Mar 2019 14:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552945643; cv=none; d=google.com; s=arc-20160816; b=jO8K4qt1dlTl1kThaWUHqL4tK5DbaQgN1+pi6vujhJfwHz8w04IXmpQFnXDF99px3x o0z0duwvtZWwGYaGbFYqMn0MRV/MoQD3z29jTYdsSUjqu0kQuJhxuBEvceAC/PoYec/n yKBID6IPZsk5RDGhW3EVVHcXVuqyi1bK4ACsHJ0FQRAf8OWPP/8NQVsPMNssPsNrTWoB +4ZV4OpYxxrLhFkbXQ0UqhjcYj9jrpqVz4piIvIbop+9bFER74e5chrK1pcxdQh/BJgu Eq5Ga1srXYsbkXONDEmfGUokbj+P7JD3uW0kkC34VxZqb8lXSl2Iu8qzQeUYOZw6T0GZ dNmg== 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=J1q7IpC5gRtI92QsOr6NSdfrLCgcBpLWmx4g21BO418=; b=AmSuj0waVtZ6viZ/TYAvA0qF0JvifinP09W8kTmXd/qicVq0ZNqCUg1Tnt0PTqK/o/ phITg6omQqpsUtNgNzIhS6AF6D+7QL8MFnmNrMW8iA6u2XUee4bVERLyn3quEsjgASST B+wH3SsEUIIaZ/JDzbMtGWoKVycGuy6o2a5UYU5YDKWewPUegDOhVj4zZdvqLnzmsxyy I36Y9ZdIYzSD+fc89nqF/p/x+pChYrIfTDqPq6bOWOpfa7HgmfdBoNAQicJ3CDv4ExCR oAPa4PsLoInGvTP2dNj4Vg91wmInhoMttUtJuAvcgwmkbPHOBsK3qSKiDdo457WW2GEr hWcw== 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 h64si10660371pfd.74.2019.03.18.14.47.08; Mon, 18 Mar 2019 14:47:23 -0700 (PDT) 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 S1727879AbfCRVo2 (ORCPT + 99 others); Mon, 18 Mar 2019 17:44:28 -0400 Received: from mga04.intel.com ([192.55.52.120]:57599 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727854AbfCRVo0 (ORCPT ); Mon, 18 Mar 2019 17:44:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Mar 2019 14:44:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,495,1544515200"; d="scan'208";a="308301832" Received: from otc-icl-cdi187.jf.intel.com ([10.54.55.103]) by orsmga005.jf.intel.com with ESMTP; 18 Mar 2019 14:44:26 -0700 From: kan.liang@linux.intel.com To: peterz@infradead.org, acme@kernel.org, mingo@redhat.com, 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 16/22] perf/x86/intel: Export new top down events for Icelake Date: Mon, 18 Mar 2019 14:41:38 -0700 Message-Id: <20190318214144.4639-17-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190318214144.4639-1-kan.liang@linux.intel.com> References: <20190318214144.4639-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: Andi Kleen Export new top down events for perf that map to the sub metrics in the metrics register, and another for the new slots fixed counter. This makes the new fixed counters in Icelake visible to the perf user tools. Signed-off-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/intel/core.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index d69537b6c184..1d9570646994 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -320,6 +320,12 @@ EVENT_ATTR_STR_HT(topdown-recovery-bubbles, td_recovery_bubbles, EVENT_ATTR_STR_HT(topdown-recovery-bubbles.scale, td_recovery_bubbles_scale, "4", "2"); +EVENT_ATTR_STR(slots, slots, "event=0x00,umask=0x4"); +EVENT_ATTR_STR(topdown-retiring, td_retiring, "event=0xff,umask=0x1"); +EVENT_ATTR_STR(topdown-bad-spec, td_bad_spec, "event=0xff,umask=0x2"); +EVENT_ATTR_STR(topdown-fe-bound, td_fe_bound, "event=0xff,umask=0x3"); +EVENT_ATTR_STR(topdown-be-bound, td_be_bound, "event=0xff,umask=0x4"); + static struct attribute *snb_events_attrs[] = { EVENT_PTR(td_slots_issued), EVENT_PTR(td_slots_retired), @@ -4311,6 +4317,11 @@ EVENT_ATTR_STR(el-capacity-write, el_capacity_write, "event=0x54,umask=0x2"); static struct attribute *icl_events_attrs[] = { EVENT_PTR(mem_ld_hsw), EVENT_PTR(mem_st_hsw), + EVENT_PTR(slots), + EVENT_PTR(td_retiring), + EVENT_PTR(td_bad_spec), + EVENT_PTR(td_fe_bound), + EVENT_PTR(td_be_bound), NULL, }; -- 2.17.1