Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp44629ybj; Fri, 8 May 2020 06:12:09 -0700 (PDT) X-Google-Smtp-Source: APiQypLmzvkSD26so+Qu0OMFsmLN8ueQOvRBYgs6cWQKktSp/m0KH/gxNf4vlSX/w3J/4xC6IokW X-Received: by 2002:aa7:d155:: with SMTP id r21mr2119852edo.85.1588943528887; Fri, 08 May 2020 06:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943528; cv=none; d=google.com; s=arc-20160816; b=Z/c2S5w8mGnqig4mToJDaWAjEgQDYhhoYa9MzIw9hrb7g6L89U/10ZrJH2c8sqF+BQ OWBlDqIqt58fwYVLK/7DiSwVhH/6/qAPFJC8LEQ5W4e7Hl+iPCAF51xLs+eRWF4JbdSy pPbivU8avXRuU367v5yUWysACbUacbdf46W3fAGDZ9spZfg8vQuSbZ+aNMBJIXv+6hn5 hc/I89jhcqvDlev5mG8jiqbrh487sbZJgHP0jOgEwVotgEzSaoIUAOk5oH1cCjTr9XmH 0LSKs2MspQPDMF8b2zZHTT1xkEVfP5lDC7gejshgoeZNgixOhdmeFbkt79KrWD9Orq6V isHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=gygP3qYgD1BucqzGqm4uQ2y8J/0KTqceGw812AyLA8E=; b=UfO7vinOvw9EW8Kcp/UvY8DJPs0kaq9nOMYWUCctK435JEFNeQLysGqjKxw6ezR24P 8PBY56aqCh/MiuJbhGtd++Sv7WgpghlIMpBOrVGrVadQWSGcOXWyE3482YsQHk12j7q3 YF3NTrE8cDO+eTSoCPgeWmGG403OwhTsVqrbFmCH+L+iowOuWMDj3no2w5n00StGaGTG 1PsPnYuhcoUs5MaufXZ5qCSA48BtYHiKKxXY2vau93bVGpOZ0x8qG5jJchgkYcXvFZWt o1pzWYFxNHcmyC24mB+AiqTNZxIjdgZKmtS24/5eJZ4Ev5tyJ2m0tLaDZz3sVIThAe0K GL8g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si864493edo.320.2020.05.08.06.11.44; Fri, 08 May 2020 06:12:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730318AbgEHNIR convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 May 2020 09:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730220AbgEHNFk (ORCPT ); Fri, 8 May 2020 09:05:40 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B35A9C05BD43; Fri, 8 May 2020 06:05:40 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jX2gw-0007kZ-7D; Fri, 08 May 2020 15:05:26 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 878B01C04CF; Fri, 8 May 2020 15:05:07 +0200 (CEST) Date: Fri, 08 May 2020 13:05:07 -0000 From: "tip-bot2 for Kajol Jain" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf vendor events power9: Add hv_24x7 socket/chip level metric events Cc: Kajol Jain , Jiri Olsa , Alexander Shishkin , Andi Kleen , Anju T Sudhakar , Benjamin Herrenschmidt , "Greg Kroah-Hartman" , Jin Yao , Joe Mario , Kan Liang , Madhavan Srinivasan , Mamatha Inamdar , Mark Rutland , Michael Ellerman , Michael Petlan , Namhyung Kim , Paul Mackerras , Peter Zijlstra , Ravi Bangoria , Sukadev Bhattiprolu , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20200401203340.31402-8-kjain@linux.ibm.com> References: <20200401203340.31402-8-kjain@linux.ibm.com> MIME-Version: 1.0 Message-ID: <158894310749.8414.11283761812599365513.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 354575c00d61c174e0ff070f56cf3cdbe6d23f9e Gitweb: https://git.kernel.org/tip/354575c00d61c174e0ff070f56cf3cdbe6d23f9e Author: Kajol Jain AuthorDate: Thu, 02 Apr 2020 02:03:40 +05:30 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 30 Apr 2020 10:48:33 -03:00 perf vendor events power9: Add hv_24x7 socket/chip level metric events The hv_24×7 feature in IBM® POWER9™ processor-based servers provide the facility to continuously collect large numbers of hardware performance metrics efficiently and accurately. This patch adds hv_24x7 metric file for different Socket/chip resources. Result: power9 platform: command:# ./perf stat --metric-only -M Memory_RD_BW_Chip -C 0 -I 1000 1.000096188 0.9 0.3 2.000285720 0.5 0.1 3.000424990 0.4 0.1 command:# ./perf stat --metric-only -M PowerBUS_Frequency -C 0 -I 1000 1.000097981 2.3 2.3 2.000291713 2.3 2.3 3.000421719 2.3 2.3 4.000550912 2.3 2.3 Signed-off-by: Kajol Jain Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Anju T Sudhakar Cc: Benjamin Herrenschmidt Cc: Greg Kroah-Hartman Cc: Jin Yao Cc: Joe Mario Cc: Kan Liang Cc: Madhavan Srinivasan Cc: Mamatha Inamdar Cc: Mark Rutland Cc: Michael Ellerman Cc: Michael Petlan Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Ravi Bangoria Cc: Sukadev Bhattiprolu Cc: Thomas Gleixner Cc: linuxppc-dev@lists.ozlabs.org Link: http://lore.kernel.org/lkml/20200401203340.31402-8-kjain@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/pmu-events/arch/powerpc/power9/nest_metrics.json | 19 +++++++- 1 file changed, 19 insertions(+) create mode 100644 tools/perf/pmu-events/arch/powerpc/power9/nest_metrics.json diff --git a/tools/perf/pmu-events/arch/powerpc/power9/nest_metrics.json b/tools/perf/pmu-events/arch/powerpc/power9/nest_metrics.json new file mode 100644 index 0000000..c121e52 --- /dev/null +++ b/tools/perf/pmu-events/arch/powerpc/power9/nest_metrics.json @@ -0,0 +1,19 @@ +[ + { + "MetricExpr": "(hv_24x7@PM_MCS01_128B_RD_DISP_PORT01\\,chip\\=?@ + hv_24x7@PM_MCS01_128B_RD_DISP_PORT23\\,chip\\=?@ + hv_24x7@PM_MCS23_128B_RD_DISP_PORT01\\,chip\\=?@ + hv_24x7@PM_MCS23_128B_RD_DISP_PORT23\\,chip\\=?@)", + "MetricName": "Memory_RD_BW_Chip", + "MetricGroup": "Memory_BW", + "ScaleUnit": "1.6e-2MB" + }, + { + "MetricExpr": "(hv_24x7@PM_MCS01_128B_WR_DISP_PORT01\\,chip\\=?@ + hv_24x7@PM_MCS01_128B_WR_DISP_PORT23\\,chip\\=?@ + hv_24x7@PM_MCS23_128B_WR_DISP_PORT01\\,chip\\=?@ + hv_24x7@PM_MCS23_128B_WR_DISP_PORT23\\,chip\\=?@ )", + "MetricName": "Memory_WR_BW_Chip", + "MetricGroup": "Memory_BW", + "ScaleUnit": "1.6e-2MB" + }, + { + "MetricExpr": "(hv_24x7@PM_PB_CYC\\,chip\\=?@ )", + "MetricName": "PowerBUS_Frequency", + "ScaleUnit": "2.5e-7GHz" + } +]