From patchwork Wed Jul 22 17:10:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sultan Alsawaf X-Patchwork-Id: 1334048 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BBhnW3BJBz9sSt; Thu, 23 Jul 2020 03:11:11 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jyIGl-0004aN-W2; Wed, 22 Jul 2020 17:11:03 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jyIGj-0004Zi-6F for kernel-team@lists.ubuntu.com; Wed, 22 Jul 2020 17:11:01 +0000 Received: from mail-pg1-f198.google.com ([209.85.215.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jyIGi-0004Vn-QV for kernel-team@lists.ubuntu.com; Wed, 22 Jul 2020 17:11:01 +0000 Received: by mail-pg1-f198.google.com with SMTP id 72so2121607pgb.1 for ; Wed, 22 Jul 2020 10:11:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rsAjCOMq0aGeuGuB9+lHj54hKhAXlH97JA9V09DDGrk=; b=W/81gp+4xRlKN5LjTyTHXwzv5uH/S0v0X53T4xPUouHEPDtCTGxITTDCblF7XnNcBI ulgPMOPZx39JO/+bpSGje7p4/UmBVCRGmHWDpdIAgk8fPqT2wlHHvTkP40LEqP6t13B1 YpO8tRCTrQHTC/bX7zw5lf1MCjY7WQUKdo9A/hOtcHtIZx0ZTAfwC+NM+lbwY6yA/PI+ 1Y8nMhUv0wWwSDrWBi1fPWaOMxd6ovEwuDSB6z5FDicmpYIH1IjT3V4G4Iy6JGvdO+84 YAmJGgKprs9KiPqIz5LDp2etsyIufA3CPabNv4GmpUWkjpznOeVY6/w7VTcbwXnr60wF O5nw== X-Gm-Message-State: AOAM530zmgiWvg2C21Xq4wwGCRdY6xrmX8kWGAWRz0xCJDYkSXqa9tXS BdqTBicGqKRFhY6K2c2RSH8gKEipYKvVbBiJsQr+5PSt3rfFO7Rw64vzTK2e+BUKPg+p/6UtW1d pmLmu+WDDaG7bBIhBV6eQDUAV60KPPzFp7tcdrUepHQ== X-Received: by 2002:aa7:8f30:: with SMTP id y16mr613127pfr.46.1595437858920; Wed, 22 Jul 2020 10:10:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztT3+gbrhk43iFboalirhtMkCZkAqiXN9a1A+dX0b0GL61pwqepEpANbg+sLD4H7wX6mEeRg== X-Received: by 2002:aa7:8f30:: with SMTP id y16mr613109pfr.46.1595437858534; Wed, 22 Jul 2020 10:10:58 -0700 (PDT) Received: from sultan-box.conference ([104.200.129.62]) by smtp.gmail.com with ESMTPSA id u66sm139230pfb.191.2020.07.22.10.10.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 10:10:57 -0700 (PDT) From: Sultan Alsawaf To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/1] perf vendor events s390: Add new deflate counters for IBM z15 Date: Wed, 22 Jul 2020 10:10:55 -0700 Message-Id: <20200722171055.15296-2-sultan.alsawaf@canonical.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200722171055.15296-1-sultan.alsawaf@canonical.com> References: <20200722171055.15296-1-sultan.alsawaf@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Thomas Richter BugLink: https://bugs.launchpad.net/bugs/1888551 Add support for new deflate counters: - Counter 247: cycles CPU spent obtaining access to Deflate unit - Counter 252: cycles CPU is using Deflate unit - Counter 264: Increments by one for every DEFLATE CONVERSION CALL instruction executed. - Counter 265: Increments by one for every DEFLATE CONVERSION CALL instruction executed that ended in Condition Codes 0, 1 or 2. Also adjust the some crypto counter description to latest documentation. Signed-off-by: Thomas Richter Reviewed-by: Sumanth Korikkar Cc: Heiko Carstens Cc: Vasily Gorbik Link: http://lore.kernel.org/lkml/20200310142937.32045-1-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo (cherry picked from commit e7950166e40271c025e0eec348cdf5c63ac734fa) Signed-off-by: Sultan Alsawaf --- .../pmu-events/arch/s390/cf_z15/crypto6.json | 8 ++--- .../pmu-events/arch/s390/cf_z15/extended.json | 30 ++++++++++++++++++- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/tools/perf/pmu-events/arch/s390/cf_z15/crypto6.json b/tools/perf/pmu-events/arch/s390/cf_z15/crypto6.json index 5e36bc2468d0..c998e4f1d1d2 100644 --- a/tools/perf/pmu-events/arch/s390/cf_z15/crypto6.json +++ b/tools/perf/pmu-events/arch/s390/cf_z15/crypto6.json @@ -4,27 +4,27 @@ "EventCode": "80", "EventName": "ECC_FUNCTION_COUNT", "BriefDescription": "ECC Function Count", - "PublicDescription": "Long ECC function Count" + "PublicDescription": "This counter counts the total number of the elliptic-curve cryptography (ECC) functions issued by the CPU." }, { "Unit": "CPU-M-CF", "EventCode": "81", "EventName": "ECC_CYCLES_COUNT", "BriefDescription": "ECC Cycles Count", - "PublicDescription": "Long ECC Function cycles count" + "PublicDescription": "This counter counts the total number of CPU cycles when the ECC coprocessor is busy performing the elliptic-curve cryptography (ECC) functions issued by the CPU." }, { "Unit": "CPU-M-CF", "EventCode": "82", "EventName": "ECC_BLOCKED_FUNCTION_COUNT", "BriefDescription": "Ecc Blocked Function Count", - "PublicDescription": "Long ECC blocked function count" + "PublicDescription": "This counter counts the total number of the elliptic-curve cryptography (ECC) functions that are issued by the CPU and are blocked because the ECC coprocessor is busy performing a function issued by another CPU." }, { "Unit": "CPU-M-CF", "EventCode": "83", "EventName": "ECC_BLOCKED_CYCLES_COUNT", "BriefDescription": "ECC Blocked Cycles Count", - "PublicDescription": "Long ECC blocked cycles count" + "PublicDescription": "This counter counts the total number of CPU cycles blocked for the elliptic-curve cryptography (ECC) functions issued by the CPU because the ECC coprocessor is busy performing a function issued by another CPU." }, ] diff --git a/tools/perf/pmu-events/arch/s390/cf_z15/extended.json b/tools/perf/pmu-events/arch/s390/cf_z15/extended.json index 89e070727e1b..2df2e231e9ee 100644 --- a/tools/perf/pmu-events/arch/s390/cf_z15/extended.json +++ b/tools/perf/pmu-events/arch/s390/cf_z15/extended.json @@ -25,7 +25,7 @@ "EventCode": "131", "EventName": "DTLB2_HPAGE_WRITES", "BriefDescription": "DTLB2 One-Megabyte Page Writes", - "PublicDescription": "A translation entry was written into the Combined Region and Segment Table Entry array in the Level-2 TLB for a one-megabyte page or a Last Host Translation was done" + "PublicDescription": "A translation entry was written into the Combined Region and Segment Table Entry array in the Level-2 TLB for a one-megabyte page" }, { "Unit": "CPU-M-CF", @@ -356,6 +356,34 @@ "BriefDescription": "Aborted transactions in constrained TX mode using special completion logic", "PublicDescription": "A transaction abort has occurred in a constrained transactional-execution mode and the CPU is using special logic to allow the transaction to complete" }, + { + "Unit": "CPU-M-CF", + "EventCode": "247", + "EventName": "DFLT_ACCESS", + "BriefDescription": "Cycles CPU spent obtaining access to Deflate unit", + "PublicDescription": "Cycles CPU spent obtaining access to Deflate unit" + }, + { + "Unit": "CPU-M-CF", + "EventCode": "252", + "EventName": "DFLT_CYCLES", + "BriefDescription": "Cycles CPU is using Deflate unit", + "PublicDescription": "Cycles CPU is using Deflate unit" + }, + { + "Unit": "CPU-M-CF", + "EventCode": "264", + "EventName": "DFLT_CC", + "BriefDescription": "Increments by one for every DEFLATE CONVERSION CALL instruction executed", + "PublicDescription": "Increments by one for every DEFLATE CONVERSION CALL instruction executed" + }, + { + "Unit": "CPU-M-CF", + "EventCode": "265", + "EventName": "DFLT_CCERROR", + "BriefDescription": "Increments by one for every DEFLATE CONVERSION CALL instruction executed that ended in Condition Codes 0, 1 or 2", + "PublicDescription": "Increments by one for every DEFLATE CONVERSION CALL instruction executed that ended in Condition Codes 0, 1 or 2" + }, { "Unit": "CPU-M-CF", "EventCode": "448",