Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1215794imm; Wed, 25 Jul 2018 13:45:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdyo/b9y49NCVjbyHE+xvVEqF7el2Y0xW79cQvvHn8MMGwWfGonGoPXk3s+Yvfag4EhvGjs X-Received: by 2002:a63:ad07:: with SMTP id g7-v6mr21686176pgf.19.1532551518658; Wed, 25 Jul 2018 13:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532551518; cv=none; d=google.com; s=arc-20160816; b=X9JlMlPZfA0VaK2CILH2WDWoxEB1Z81yWwFrn6MvGdEH3UbDub6qhhEXHxXucFR37F FlNYs+GMzSSXwEbS61P2MTI2xCX4fP1W9i3Oj0VRm+FZRhVVCvqL5rl7T1/EprZdGko8 NWc3c/qwotOFfHPrOnHW3+Hk1NWSDoZ5v77PZ/HXenncX6QbDtAHvS4es3/4d9qusgKq EqPpXydzdy9CKx5o+c+XEtYU/sNAeQNT+5Em5bhj7R1uvYv5F7wjrZOU4fiuABoJa101 EPAlgrOHmjsVxSO4gwvn9hOpPHVq1GYnluHZ8imi4zUvZxynqQhSrOyJe3XgX69bFnQu pTyg== 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:arc-authentication-results; bh=T+1wcaY4to1ZNhaUrGnro2/bkzFOh84IMeKsRZ76Dyo=; b=ZxbiEYkbkmemUUdBd/KM+p1OqBDB4MPsEcbLCiKXl6Pxalpo52M3vZUNs1OJgY+sjY Sa8FOsPn0RocauVok/wbQDu5ratq9oCh9Yotqnl8+isT4CQqbjyhlhKqRnRD1SADOICL +bzB32wPBaczs5vz9WBfRXqjNRY1tsv6fpsSh1L2p0tgepmf+deVSnAHnqYTuhTmyxeC eNruzSZp5Ter50isRp8b6ehrSnAYo4tQpzSkGi3116kyDQw+xpcBlzkJgyV8QiYe1IyC Z0BYHyecrCxuZ3VkfvTMtzmj3d1Oy/fDy5U8NGVPQxVGfbG7JecxKSNblsVGygnM1ruA la2A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23-v6si15435800plj.494.2018.07.25.13.45.03; Wed, 25 Jul 2018 13:45:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731459AbeGYV4e (ORCPT + 99 others); Wed, 25 Jul 2018 17:56:34 -0400 Received: from terminus.zytor.com ([198.137.202.136]:56361 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730623AbeGYV4e (ORCPT ); Wed, 25 Jul 2018 17:56:34 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6PKh1JC498853 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Jul 2018 13:43:01 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6PKh1SJ498849; Wed, 25 Jul 2018 13:43:01 -0700 Date: Wed, 25 Jul 2018 13:43:01 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Thomas Richter Message-ID: Cc: schwidefsky@de.ibm.com, acme@redhat.com, mingo@kernel.org, brueckner@linux.ibm.com, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, hpa@zytor.com, ak@linux.intel.com, tglx@linutronix.de, tmricht@linux.ibm.com Reply-To: schwidefsky@de.ibm.com, acme@redhat.com, mingo@kernel.org, brueckner@linux.ibm.com, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, hpa@zytor.com, ak@linux.intel.com, tglx@linutronix.de, tmricht@linux.ibm.com In-Reply-To: <20180621080452.61012-3-tmricht@linux.ibm.com> References: <20180621080452.61012-3-tmricht@linux.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf json: Add s390 transaction counter definition Git-Commit-ID: 83eb383e942bba7aab465a334d2c365d3f47a0ae 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=-0.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_48_96 autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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: 83eb383e942bba7aab465a334d2c365d3f47a0ae Gitweb: https://git.kernel.org/tip/83eb383e942bba7aab465a334d2c365d3f47a0ae Author: Thomas Richter AuthorDate: Thu, 21 Jun 2018 10:04:51 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:49:30 -0300 perf json: Add s390 transaction counter definition 'perf stat' displays transactional counters using flag -T on x86. On s390 use a JSON file defined metric named transaction to achieve the same result. Output before: none Output after: [root@s35lp76 perf]# ./perf stat -M transaction -- \ ~/mytesttx 1 >/tmp/111 Performance counter stats for '/root/mytesttx 1': 1 tx_c_tend # 13.0 transaction 1 tx_nc_tend 11 tx_nc_tabort 0 tx_c_tabort_special 0 tx_c_tabort_no_special 0.001061232 seconds time elapsed [root@s35lp76 perf]# Suggested-by: Andi Kleen Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Heiko Carstens Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20180621080452.61012-3-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/pmu-events/arch/s390/cf_z13/transaction.json | 7 +++++++ tools/perf/pmu-events/arch/s390/cf_z14/transaction.json | 7 +++++++ tools/perf/pmu-events/arch/s390/cf_zec12/transaction.json | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/tools/perf/pmu-events/arch/s390/cf_z13/transaction.json b/tools/perf/pmu-events/arch/s390/cf_z13/transaction.json new file mode 100644 index 000000000000..1a0034f79f73 --- /dev/null +++ b/tools/perf/pmu-events/arch/s390/cf_z13/transaction.json @@ -0,0 +1,7 @@ +[ + { + "BriefDescription": "Transaction count", + "MetricName": "transaction", + "MetricExpr": "TX_C_TEND + TX_NC_TEND + TX_NC_TABORT + TX_C_TABORT_SPECIAL + TX_C_TABORT_NO_SPECIAL" + } +] diff --git a/tools/perf/pmu-events/arch/s390/cf_z14/transaction.json b/tools/perf/pmu-events/arch/s390/cf_z14/transaction.json new file mode 100644 index 000000000000..1a0034f79f73 --- /dev/null +++ b/tools/perf/pmu-events/arch/s390/cf_z14/transaction.json @@ -0,0 +1,7 @@ +[ + { + "BriefDescription": "Transaction count", + "MetricName": "transaction", + "MetricExpr": "TX_C_TEND + TX_NC_TEND + TX_NC_TABORT + TX_C_TABORT_SPECIAL + TX_C_TABORT_NO_SPECIAL" + } +] diff --git a/tools/perf/pmu-events/arch/s390/cf_zec12/transaction.json b/tools/perf/pmu-events/arch/s390/cf_zec12/transaction.json new file mode 100644 index 000000000000..1a0034f79f73 --- /dev/null +++ b/tools/perf/pmu-events/arch/s390/cf_zec12/transaction.json @@ -0,0 +1,7 @@ +[ + { + "BriefDescription": "Transaction count", + "MetricName": "transaction", + "MetricExpr": "TX_C_TEND + TX_NC_TEND + TX_NC_TABORT + TX_C_TABORT_SPECIAL + TX_C_TABORT_NO_SPECIAL" + } +]