Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp154140imn; Wed, 27 Jul 2022 02:32:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ubkwwIZtiyYFTDTvUCNLt+L59cKnpEWDClrrnXr3aCo1e8sCdurQnGHRaDBznLVWhegHRQ X-Received: by 2002:aa7:ce18:0:b0:43c:935b:453 with SMTP id d24-20020aa7ce18000000b0043c935b0453mr4018187edv.401.1658914377196; Wed, 27 Jul 2022 02:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658914377; cv=none; d=google.com; s=arc-20160816; b=W/LOwMhLKE4708Sti12Ct592ETGfFucszIkmuWadHu775h9LLzyEN6pJF7ZA9hQ7AC exKV+r/i+g6YI9zbcMJON3auaDU9XR7obftcjnxf3OuA7GsH6TqJW6sLRTbFPxE8Db3/ buuSVs7aiVlVldunLSpvpaKpG1ei6MGkvFw6EuEYtuVpEw/4CymQlkWcrHZNjY/wD9gs djjmSQXzXAZDjg+FUIzjHl1J7yKihQ246HMR+/qshYFKIaycM4Lr1a7ME8ycaelaVPY1 9O540ESlshL3rfh8n1zYxx02c7STbV3qcRHVxhgQLrErE4NEP+RMdSUdE5vFuGIc0ABU hQjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6lFtmxXtv2init86L4Qf2btzqsx5QBDsFeyz9roGaqA=; b=0TVgq4e7qrsX2cpFcYoA77C3ymUt/wy/r/yZayEw5cHwuFxvKPU4Bm5wAx8LiyTIog pQiCtPI0zokijPfIFxM2idCyDfCgM2GwdpwKbTm8bHDzPnTpwfF2JZYzmFodv6dDDyKf OOcOGtU1fkPEk4Dl8flr5FK/7Y9UQ/4X7Vc/9F8/+rEYbxGY07boUQd7dS8NSa+KZuk7 AcCtfYPre2n753zn3p1fqOfal32ARHOnYQBsaLF8D56Wmp1JNAI1U6pP8SpnbJoLOv0M /NpLw94S+CzJQuBzRoXnxhflTeE7io9B6mJBPRrlEInnqC1/DQigEbsRsxC/ODo77vfK slnw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs18-20020a170906dc9200b00726ce3b24ebsi18234712ejc.832.2022.07.27.02.32.30; Wed, 27 Jul 2022 02:32:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231440AbiG0J1v (ORCPT + 99 others); Wed, 27 Jul 2022 05:27:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbiG0J1l (ORCPT ); Wed, 27 Jul 2022 05:27:41 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 885E62654D; Wed, 27 Jul 2022 02:27:40 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9A237D6E; Wed, 27 Jul 2022 02:27:40 -0700 (PDT) Received: from [10.57.42.213] (unknown [10.57.42.213]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ADD893F70D; Wed, 27 Jul 2022 02:27:38 -0700 (PDT) Message-ID: <62efe3a0-21d7-dfee-2532-cf2090359548@arm.com> Date: Wed, 27 Jul 2022 10:27:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] perf/tests: Fix test case 95 Check branch stack sampling on s390 Content-Language: en-US To: Thomas Richter Cc: svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, german.gomez@arm.com References: <20220727071159.173360-1-tmricht@linux.ibm.com> From: James Clark In-Reply-To: <20220727071159.173360-1-tmricht@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE 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 27/07/2022 08:11, Thomas Richter wrote: > On linux-next tree perf test 95 was added recently. > s390 does not support branch sampling at all. Therefore > omit this test on s390 platform. > > 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 > # > > Signed-off-by: Thomas Richter > --- > tools/perf/tests/shell/test_brstack.sh | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/perf/tests/shell/test_brstack.sh b/tools/perf/tests/shell/test_brstack.sh > index 113ccd17bf03..dedaf74164dc 100755 > --- a/tools/perf/tests/shell/test_brstack.sh > +++ b/tools/perf/tests/shell/test_brstack.sh > @@ -4,6 +4,9 @@ > # SPDX-License-Identifier: GPL-2.0 > # German Gomez , 2022 > > +# s390 does not support branch sampling, omit > +[ $(uname -m) = "s390" -o $(uname -m) = "s390x" ] && exit 2 > + Hi Thomas, Do you know why the below check doesn't cover this scenario? It seems like it would be best to check if it's available wherever it's running rather than enumerate every platform where it's not supported: # 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 Thanks James > # we need a C compiler to build the test programs > # so bail if none is found > if ! [ -x "$(command -v cc)" ]; then