Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp940014iob; Thu, 28 Apr 2022 14:24:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx442HSq85dfA7+PDe2xXw/11Rk/YXXHofZh2OBAvgPaHSF1M9XAy8tY+NXiSYc+Mscqe1F X-Received: by 2002:a05:6512:22d6:b0:472:335b:4df3 with SMTP id g22-20020a05651222d600b00472335b4df3mr5403678lfu.227.1651181097576; Thu, 28 Apr 2022 14:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651181097; cv=none; d=google.com; s=arc-20160816; b=KjE53vFzOzTr0PzUNrAgIZxBLupHtf8qMDzU1ayj9D/J77nlfyOZNoctat7au6BIaT LL6brOBn749UxBUF7blYpk2PwDiwm7JFrjN4OFLcXhDRaLHImbCSYV5Ag5PytBOQOlSe aYX7fLxLCJupviqy9qwF0Lwg7r59wMcu1QwW+T9dvbVHBQXXOT1biAGu8m9xuamuUjt4 9dz2lbgLvkB0pOqyD0++vyxr0ps771LdqtCXKYMwEUgTQuJCrASmMImBI8Ii/mJBQj4X kkmY8QwksDoOqg9YVQ3lNL4paDMCv1YkrcDHwNwD+ldbAr7QLI/SjKbK+suNJY9QleGO uCRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Af9Uf34RzCHIR0X/YenvxGq9D+e0+pf3XSp55GdHyyQ=; b=q9PuzQGTE91LEuKeoi7Uzj1ReXp0Gn0xPq9aPMGeRt6qhPi0ldxXjrlN9SpGeeZxrD ljJn0gIGamZFOtnQm5WjfDJCSvpbsAaUtlVlNpZpOAjA0MDPweiD8Go8xgrVhm0GMyJ3 Rkxadv6Vw5C3vgQktHPSMoJCLs4JP1e/51oP4ZwuTeUdnVUb2fiLnBux24yhFLNREzZO wcvA9F1WLDAhWXJ0+wyrcxaRFMsBdIdQq+AAp2CQubHQEtyrmIeN6jy/Svx1BbXZnQso wBq3b+U7GoQhOml6x8BWQkhVOtzz7MgR3qFG2VA8IkfvgtVT6dCU3xGSyDbqHEWaL2lP TEQw== 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 u7-20020a196007000000b0046d77b21b0bsi5183102lfb.386.2022.04.28.14.24.29; Thu, 28 Apr 2022 14:24: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 S1347590AbiD1Nq5 (ORCPT + 99 others); Thu, 28 Apr 2022 09:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347571AbiD1Nqz (ORCPT ); Thu, 28 Apr 2022 09:46:55 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0AA51B3DCC; Thu, 28 Apr 2022 06:43:39 -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 B51541477; Thu, 28 Apr 2022 06:43:39 -0700 (PDT) Received: from [10.1.30.157] (e127744.cambridge.arm.com [10.1.30.157]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BD4CE3F5A1; Thu, 28 Apr 2022 06:43:37 -0700 (PDT) Subject: Re: [PATCH] perf test: Fix test case 81 on s390x To: Thomas Richter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, irogers@google.com Cc: svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com References: <20220428122821.3652015-1-tmricht@linux.ibm.com> From: German Gomez Message-ID: <768de4e7-7bf1-62b5-4446-28420c3a82d5@arm.com> Date: Thu, 28 Apr 2022 14:43:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220428122821.3652015-1-tmricht@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 28/04/2022 13:28, Thomas Richter wrote: > perf test -F 81 -v fails on s390x on the linux-next branch. > The test case is x86 specific can not be executed on s390x. > The test case depends on x86 register names such as > > ... | egrep -q 'available registers: AX BX CX DX ....' > > Skip this test case on s390x. > > Output before: > # perf test -F 81 > 81: perf record tests : FAILED! > # > > Output after: > # perf test -F 81 > 81: perf record tests : Skip > # > > Fixes: 24f378e66021 ("perf test: Add basic perf record tests") > Cc: Ian Rogers > Signed-off-by: Thomas Richter > --- > tools/perf/tests/shell/record.sh | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/perf/tests/shell/record.sh b/tools/perf/tests/shell/record.sh > index cd1cf14259b8..d98f4d4a00e1 100755 > --- a/tools/perf/tests/shell/record.sh > +++ b/tools/perf/tests/shell/record.sh > @@ -37,6 +37,8 @@ test_register_capture() { > echo "Register capture test [Success]" > } > > +# Test for platform support and return TEST_SKIP > +[ $(uname -m) = s390x ] && exit 2 > test_per_thread The "test_per_thread" might still be valid though, right? In my case, the register test skips gracefully (arm64). $ ./perf test 82 -v  82: perf record tests                                               : --- start --- test child forked, pid 54345 Basic --per-thread mode test Basic --per-thread mode test [Success] Register capture test Register capture test [Skipped missing instruction] test child finished with 0 ---- end ---- perf record tests: Ok > test_register_capture > exit $err