Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp353732imn; Wed, 27 Jul 2022 08:04:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uUP0o3l7cBkK865oBhS8VsPlDladhk0oWJkZiZnHdE/LrzsqorGOF6aztlFLey9a4zN7Eb X-Received: by 2002:a1f:2bc8:0:b0:375:21ea:25ca with SMTP id r191-20020a1f2bc8000000b0037521ea25camr6897996vkr.37.1658934276700; Wed, 27 Jul 2022 08:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658934276; cv=none; d=google.com; s=arc-20160816; b=WjaoqzenEA+wIi/kJIWqej7TbgVzxo7j9WYf/slMRIp6jcbrecZFvjT4uXkS92NT7v LLdJxNtIYjc5IWWqqpehFaHB3CEosVFvEd8ZsQvBGlaNZE8V2QmYukkLapYRSQdFLG5Z M3dGsDQzTixhh02Y/Nv6hI/FawGnwgGsS9aHUffDf7zkQzyzC51ffcmKHU4xDaEdh7Dy Ktz3Sc3XwQ3DybnhTh5imA5w+mdhYZ58qSQcZ6sG1IL1tikv5Woz0hoU3PV7Kgxt8gi+ l423OoxyihvEntR6UWtdOXIJkI5+k+ssGN1Et/3cZLiW7X8+bVV7rdLa18sJyPFIkiLJ Fhzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9UvBoKjveAd8vWIz26CXlNFNnDhnua88gOlDU7zqGVg=; b=BkLaCIpEm1vccsJqbAkH1GYd2aWLHMKkICIqNa5cOcoBcS8BxUUl7dGG5Kp9qpLZH0 g0ouyUlMOaoCw7dY1ESPnbEti3Rk6dnYAdeNODgrFuVX0MJwKbumjmS/7HgaTsJSybGG jj1hcBxptLVRbP9F/whwa447KcW6cvZdeM8GWvKS9ewWFjvtm9IID8jC1Ds8x0IwskYO T7sVNeIGqbqiFiXZGR8Lk6L2+rMjQEsJSwhuxtShGqTog/SWmqKXSCSeif8mWcJTg0BT 3ZinZULES3nNebAi8y2l7jnATv1FKiwotKJ40TftR5hOW5vHgWULajJjw+AHyF8cafPG 0C4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=k6pzpnbq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r6-20020ab06f06000000b00384d3e0d10fsi639048uah.49.2022.07.27.08.04.15; Wed, 27 Jul 2022 08:04:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=k6pzpnbq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233540AbiG0OPH (ORCPT + 99 others); Wed, 27 Jul 2022 10:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233421AbiG0OO7 (ORCPT ); Wed, 27 Jul 2022 10:14:59 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C65C23D5A1; Wed, 27 Jul 2022 07:14:58 -0700 (PDT) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26RECiqx008649; Wed, 27 Jul 2022 14:14:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=9UvBoKjveAd8vWIz26CXlNFNnDhnua88gOlDU7zqGVg=; b=k6pzpnbqy2FUeJYFNcY/2K5Ux3LgKfOfx/KaP49k1LWAt6udyP3s5oZBmbiI/16Q9Wq3 zfFcupVsslxpGy4j4WUII4a984OEYLQi8NqnYGDPCVm4jPHpyY3YF7f6aRMbg3lsNEVG qMJpmO6ssXmPoEim+FsJLTKDg3Mz58saDVXJ4tNwJg/ADsBE+jMW5UsZKRTHhCQJpjyS lvTVbhXISABrog/iOnNOoj7nKylgdW6hGOCc9YBLutaDVlpVb5rGQukuoxXmNCVZlnDi HonGfarsEWoYrb4EB3jyGV2ZkRroaVRyKImFiqb2Z1gcs4eepykHLXyFkr7wbB6ZIBRQ Qw== Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3hk6gf1d4m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Jul 2022 14:14:53 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 26RE7RPs002840; Wed, 27 Jul 2022 14:14:49 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03ams.nl.ibm.com with ESMTP id 3hh6eukun2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Jul 2022 14:14:49 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 26REEk2C24707430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Jul 2022 14:14:46 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7FC34A4051; Wed, 27 Jul 2022 14:14:46 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2D7A8A4053; Wed, 27 Jul 2022 14:14:46 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 27 Jul 2022 14:14:46 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, james.clark@arm.com, german.gomez@arm.com Cc: svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com, Thomas Richter Subject: [PATCH] perf/tests: Fix test case 95 on s390 and use same event Date: Wed, 27 Jul 2022 16:14:39 +0200 Message-Id: <20220727141439.712582-1-tmricht@linux.ibm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: EkiA4MTTwO57ch-xc9SbOaQI9DZX2IGI X-Proofpoint-ORIG-GUID: EkiA4MTTwO57ch-xc9SbOaQI9DZX2IGI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-27_05,2022-07-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207270056 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On linux-next tree perf test 95 was added recently. s390 does not support branch sampling at all and the test case fails despite for checking branch support before hand. The check for support of branching uses the software event named dummy, as seen in the line: perf record -b -o- -e dummy -B true > /dev/null 2>&1 || exit 2 However when the branch recording is actually done, a different event is used, as seen in the line: perf record -o $TMPDIR/... --branch-filter any,save_type,u -- ... The event is omitted and for perf record the default event is cycles, which is not supported by s390 and this fails when executed on s390: # perf record --branch-filter any,save_type,u -- \ /tmp/__perf_test.program.iDSmQ/a.out Error: cycles: PMU Hardware or event type doesn't support branch stack sampling. # Therefore fix this and use the same event cycles for testing support and actually running the test. Output before: # ./perf test -Fv 95 95: Check branch stack sampling : --- start --- Testing user branch stack sampling ---- end ---- Check branch stack sampling: FAILED! # Output after: # ./perf test -Fv 95 95: Check branch stack sampling : --- start --- ---- end ---- Check branch stack sampling: Skip # Fixes: b55878c90ab9 ("perf test: Add test for branch stack sampling") Signed-off-by: Thomas Richter --- tools/perf/tests/shell/test_brstack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/test_brstack.sh b/tools/perf/tests/shell/test_brstack.sh index 113ccd17bf03..c644f94a6500 100755 --- a/tools/perf/tests/shell/test_brstack.sh +++ b/tools/perf/tests/shell/test_brstack.sh @@ -12,7 +12,7 @@ if ! [ -x "$(command -v cc)" ]; then fi # skip the test if the hardware doesn't support branch stack sampling -perf record -b -o- -e dummy -B true > /dev/null 2>&1 || exit 2 +perf record -b -o- -B true > /dev/null 2>&1 || exit 2 TMPDIR=$(mktemp -d /tmp/__perf_test.program.XXXXX) -- 2.36.1