Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1141419ybg; Wed, 29 Jul 2020 06:56:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCABspZSUR976yapcOOCwRSbvX696/KtwemDoo6ABr1e2S8pfiiI2DwrRMOWv+FESuTQ3V X-Received: by 2002:a17:906:381b:: with SMTP id v27mr1868970ejc.88.1596030997720; Wed, 29 Jul 2020 06:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596030997; cv=none; d=google.com; s=arc-20160816; b=0NZshadggqhHWxxdh8n+2Z7oWXnXMy9tuiZ2jGRYucPNIUC+FGdtSnyYv2Q9H7jXCs phHkniGtru1YRTts/pfAP0MHIeJ6nkNw/O/FXOC8zZhC3NmptVhKoyzn61ytSq4C21Oq b6xtE/2jfkyUksfO1w2CNhizXpxqgmQtB78zYxdlKWdZaXRza1f967C4At1R+qyk9cxj v8jenPieBZ06fMgDYqlCk7PWf+T/Rp0QWh82jNQAgfD854f7wg4YYX0FNnu4zK0TvHYE P2FNqI1js/MsOFrRNbRM6uIb2y6ruPL/paH8IyNeESyvthJaIhqYl2+ZmwY2IcbVJ2J2 zd3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=tB+azEFwJ8IZUah20T5hDwwSGiJN2nlaZK0sqGbJk2c=; b=sBwP0TD6bqFH8/ARD04VckSks4zbEf+XaQsrbQ6KpSy5B7uTPJElc9YMFsMZVg2iOb ntXgUB8JLRJ+cgS6Z23vU5N+78Ymt7Nqt28Zmiza8fgGBQTMouE49cCS62MZWTct6LMb LKKK5gh+Vkg7z6iE8kzNqYSeJ7P1bOLk59GQotcRgJ16LTcHZZXdzK9yivFN7dL3T/eV hmFRGY12W56RTZ60coFq0nx+WLaLc6usLU4HBjxhwxT8Dr0Ah0rlbFyVMFf7vpi3tRQC AWwjiQR64ExEhx7DNezeaCG4lQ5hdS/iH43WUwrnbhy3lsjhepAkOQAltcImq8cmpguk cfZw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si1294689edt.52.2020.07.29.06.56.14; Wed, 29 Jul 2020 06:56:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726790AbgG2Nx1 (ORCPT + 99 others); Wed, 29 Jul 2020 09:53:27 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40454 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgG2Nx1 (ORCPT ); Wed, 29 Jul 2020 09:53:27 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06TDWXnQ044942; Wed, 29 Jul 2020 09:53:24 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 32jqrt03hb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jul 2020 09:53:24 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06TDpuZn031806; Wed, 29 Jul 2020 13:53:22 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma03ams.nl.ibm.com with ESMTP id 32gcpx556c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jul 2020 13:53:22 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06TDrKVM27656604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Jul 2020 13:53:20 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E0590AE051; Wed, 29 Jul 2020 13:53:19 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 96F51AE045; Wed, 29 Jul 2020 13:53:19 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 29 Jul 2020 13:53:19 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, heiko.carstens@de.ibm.com, Thomas Richter Subject: [PATCH] perf tests: Fix test 68 zstd compression for s390 Date: Wed, 29 Jul 2020 15:53:14 +0200 Message-Id: <20200729135314.91281-1-tmricht@linux.ibm.com> X-Mailer: git-send-email 2.17.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-29_07:2020-07-29,2020-07-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=999 bulkscore=0 spamscore=0 adultscore=0 impostorscore=0 suspectscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007290087 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 5aa98879efe7 ("s390/cpum_sf: prohibit callchain data collection") prohibits call graph sampling for hardware events on s390. The information recorded is out of context and does not match. On s390 this commit now breaks test case 68 Zstd perf.data compression/decompression. Therefore omit call graph sampling on s390 in this test. Output before: [root@t35lp46 perf]# ./perf test -Fv 68 68: Zstd perf.data compression/decompression : --- start --- Collecting compressed record file: Error: cycles: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat' ---- end ---- Zstd perf.data compression/decompression: FAILED! [root@t35lp46 perf]# Output after: [root@t35lp46 perf]# ./perf test -Fv 68 68: Zstd perf.data compression/decompression : --- start --- Collecting compressed record file: 500+0 records in 500+0 records out 256000 bytes (256 kB, 250 KiB) copied, 0.00615638 s, 41.6 MB/s [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.004 MB /tmp/perf.data.X3M, compressed (original 0.002 MB, ratio is 3.609) ] Checking compressed events stats: # compressed : Zstd, level = 1, ratio = 4 COMPRESSED events: 1 2ELIFREPh---- end ---- Zstd perf.data compression/decompression: Ok [root@t35lp46 perf]# Signed-off-by: Thomas Richter Reviewed-by: Sumanth Korikkar --- tools/perf/tests/shell/record+zstd_comp_decomp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/record+zstd_comp_decomp.sh b/tools/perf/tests/shell/record+zstd_comp_decomp.sh index 63a91ec473bb..045723b3d992 100755 --- a/tools/perf/tests/shell/record+zstd_comp_decomp.sh +++ b/tools/perf/tests/shell/record+zstd_comp_decomp.sh @@ -12,7 +12,8 @@ skip_if_no_z_record() { collect_z_record() { echo "Collecting compressed record file:" - $perf_tool record -o $trace_file -g -z -F 5000 -- \ + [[ "$(uname -m)" != s390x ]] && gflag='-g' + $perf_tool record -o $trace_file $gflag -z -F 5000 -- \ dd count=500 if=/dev/urandom of=/dev/null } -- 2.26.2