Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp991245ybi; Wed, 3 Jul 2019 07:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzncRqTwb8SZA5mYAoGEYiv2hqLNi8qlq+i2OwKlz1NNbtJffEp0RQHSzl9ptlX9VEZRziC X-Received: by 2002:a17:90a:9b88:: with SMTP id g8mr13385163pjp.100.1562165042232; Wed, 03 Jul 2019 07:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562165042; cv=none; d=google.com; s=arc-20160816; b=P3aNW3N9om3Pbgzr9Y2sjV+RUc8yZe0aQlXQWn3mbue12G2P2dyIqijcD31vpk5PYJ i2OhMM7c08h2LrYR7ULJUlZAze8V48W31vuHE3CQAo8pVulm7U4uq9thasiTVJcAAmw0 05vuJPMSNtPyDYcrUzyJ7HUw0v25x/87Zu/QpmcZLmGhvbA6Vber7isHjwQizcb2vA2u vb22HcYPOyovp7WKffT1ZNTsZDrvmvqc03sTY/AwajL6k8nMuxzd7uwYtZekEk6VfIp2 Ikf0suki5RdFbXYIeAX2W04BzvwrfG6D1MPBNCWQVlmHP6WpbvCgCgpCpxuvKE3lN15C MdoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=dMt4k9DA83JQMdo4OOHSD7vs0yl1XvWwolhfO2uMpY0=; b=ikH8eBDlDr/lax8EkemrMLvt4u86c2uCdal/Uy81lHzgrH4PkYZbCdta5qOGJFuuGK rBdYNeoan7y1f/iqNpP63qkux4GuazYqaGIacj7s0Y71+B/Lh/xieVLyzCTJXTqV/FAF D6a9NH0llGXg2Jykhq6pZO6zGXRMaA+tFjpHUwdvR23xWKkH108ssyq+W0RhZMntrP5f 2FmH50A6qZCJdnpgY7lU4BXXJNRnmrzSW1lPFJdvoq0iqH67TzpJUj8VI10QNXKaBOHc Iw4kTlLaWnaPHibsRXpKBAp+/TkjryjJ7uqCmuD0yyrmYxaEcAx5wDqFtE29fYnHXHVc WDNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=nBFoL3fY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si2432294plb.205.2019.07.03.07.43.46; Wed, 03 Jul 2019 07:44:02 -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; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=nBFoL3fY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbfGCOmE (ORCPT + 99 others); Wed, 3 Jul 2019 10:42:04 -0400 Received: from terminus.zytor.com ([198.137.202.136]:57581 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfGCOmE (ORCPT ); Wed, 3 Jul 2019 10:42:04 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x63Efidj3329588 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 3 Jul 2019 07:41:45 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x63Efidj3329588 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1562164905; bh=dMt4k9DA83JQMdo4OOHSD7vs0yl1XvWwolhfO2uMpY0=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=nBFoL3fYgOATEF8ciJA9THccESLg8T6AxX7m2/1z8Z3RSQpeqaJAjlqaSVsu2vV/d Egx62R/uBFANJcqgQfdfCkouUiWrx0NjKUca0yTaF/TONNmuqhuJUbAMxgJUGO6ff4 lyL0/5ZtQzV+HIR6RY+L1CHeBKrYBYWWF36t/uNnHI+fR/oebpNK98USHKo2s39XCH y71h2RekszgHDS/uEfoZJfayLFZCQldjjp6p+vw0w9QJW/y/CKHLJki5x50UXyaP5N OVv6i/jbSYrifcadu/SwHUSrVQjVt5C6LTP5Btp/xz9jvTYBGxu7UuE1zC7i5gjaeG ExRNrAE3NlB/g== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x63Efie83329585; Wed, 3 Jul 2019 07:41:44 -0700 Date: Wed, 3 Jul 2019 07:41:44 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Andi Kleen Message-ID: Cc: acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, ak@linux.intel.com, tglx@linutronix.de, jolsa@kernel.org Reply-To: jolsa@kernel.org, tglx@linutronix.de, ak@linux.intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, acme@redhat.com In-Reply-To: <20190628220737.13259-1-andi@firstfloor.org> References: <20190628220737.13259-1-andi@firstfloor.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf vendor events intel: Metric fixes for SKX/CLX Git-Commit-ID: 4df79ba3eb1b82e2939fb984b36a0e71bbed611b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 4df79ba3eb1b82e2939fb984b36a0e71bbed611b Gitweb: https://git.kernel.org/tip/4df79ba3eb1b82e2939fb984b36a0e71bbed611b Author: Andi Kleen AuthorDate: Fri, 28 Jun 2019 15:07:35 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 2 Jul 2019 16:08:16 -0300 perf vendor events intel: Metric fixes for SKX/CLX - Add a missing filter for the DRAM_Latency / DRAM_Parallel_Reads metrics - Remove the useless PMM_* metrics from Skylake Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190628220737.13259-1-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- .../arch/x86/cascadelakex/clx-metrics.json | 4 ++-- .../pmu-events/arch/x86/skylakex/skx-metrics.json | 22 ++-------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json b/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json index 1a1a3501180a..a382b115633d 100644 --- a/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json +++ b/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json @@ -314,13 +314,13 @@ "MetricName": "DRAM_BW_Use" }, { - "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x35\\\\\\,umask\\=0x21@ ) / ( cha_0@event\\=0x0@ / duration_time )", + "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x35\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ ) / ( cha_0@event\\=0x0@ / duration_time )", "BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches", "MetricGroup": "Memory_Lat", "MetricName": "DRAM_Read_Latency" }, { - "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1@", + "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1\\\\\\,config\\=0x40433@", "BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches", "MetricGroup": "Memory_BW", "MetricName": "DRAM_Parallel_Reads" diff --git a/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json b/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json index 56e03ba771f4..35b255fa6a79 100644 --- a/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json +++ b/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json @@ -314,35 +314,17 @@ "MetricName": "DRAM_BW_Use" }, { - "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x35\\\\\\,umask\\=0x21@ ) / ( cha_0@event\\=0x0@ / duration_time )", + "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x35\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ ) / ( cha_0@event\\=0x0@ / duration_time )", "BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches", "MetricGroup": "Memory_Lat", "MetricName": "DRAM_Read_Latency" }, { - "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1@", + "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1\\\\\\,config\\=0x40433@", "BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches", "MetricGroup": "Memory_BW", "MetricName": "DRAM_Parallel_Reads" }, - { - "MetricExpr": "( 1000000000 * ( imc@event\\=0xe0\\\\\\,umask\\=0x1@ / imc@event\\=0xe3@ ) / imc_0@event\\=0x0@ ) if 1 if 0 == 1 else 0 else 0", - "BriefDescription": "Average latency of data read request to external 3D X-Point memory [in nanoseconds]. Accounts for demand loads and L1/L2 data-read prefetches", - "MetricGroup": "Memory_Lat", - "MetricName": "MEM_PMM_Read_Latency" - }, - { - "MetricExpr": "( ( 64 * imc@event\\=0xe3@ / 1000000000 ) / duration_time ) if 1 if 0 == 1 else 0 else 0", - "BriefDescription": "Average 3DXP Memory Bandwidth Use for reads [GB / sec]", - "MetricGroup": "Memory_BW", - "MetricName": "PMM_Read_BW" - }, - { - "MetricExpr": "( ( 64 * imc@event\\=0xe7@ / 1000000000 ) / duration_time ) if 1 if 0 == 1 else 0 else 0", - "BriefDescription": "Average 3DXP Memory Bandwidth Use for Writes [GB / sec]", - "MetricGroup": "Memory_BW", - "MetricName": "PMM_Write_BW" - }, { "MetricExpr": "cha_0@event\\=0x0@", "BriefDescription": "Socket actual clocks when any core is active on that socket",