Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1354621iob; Fri, 29 Apr 2022 03:45:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziZOaptahXoskG08LgconWUcUhJtUGeLDIym7MbkdFrziBV39XIIdywvEpl49qlJXWGea2 X-Received: by 2002:a05:6512:3e28:b0:472:38c6:b023 with SMTP id i40-20020a0565123e2800b0047238c6b023mr5564572lfv.433.1651229125443; Fri, 29 Apr 2022 03:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651229125; cv=none; d=google.com; s=arc-20160816; b=aZamtAPTAkMutZXMwwCZuQu9UZTdundomD51axb1V9IcvyqrhKRretg2Bgsu7HrzgE gNdbNWl3pPkOywfhYJZwAsVceeSZ/ImYC7YnIyMvww0FM3VqtiPdMejW8ncmY8WbYiE5 dqSH0ss40XJnsHsX9vjcYSjN1RdfR6ee1SJxLa+wYBfcmA8HK8s8/R0ugFQPEVsGwmGu 8KA/Xah0K59Uu45fjMXMobm9d2txL2qXdSRDFwU2mWM4Pu6F6ml7pYNDiXfbg1GCbASM 7wqvmi6LLMuktoQjLxHSjT0b0PmZFHb/hsFNA29tSLZPlVwfMqiTzkP5WeYPKEnX1mud ML0A== 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:subject:user-agent:mime-version:date:message-id; bh=nqL/mkNpE1F1HUQMmbqq4JDnEj+X/il+wytk6W9+HHc=; b=b8OpKfirZCjOhLtPYQEv57NDEV50rR09esbqX3kk9ecZPLoXJWY0NwDexGzcJwyXr5 MGSQrsy+9Z0PKnORhynTV1MkL6sVYTdD3dFDILXIIDxjYV9kcmO5wZoPQsuGN97ABz4h BSyFL8Iw20285gJYkeJxIzggA7LmZZvfFVo9o0xeGGcJKUx3Tk53je1O53l0E8FiLZRt xLIugvtbxYGwF9I8aCA7uA0vj63b1MOXYuWDD01pdz4PyZvECeUWhesAgmOA/kvqFeM4 wB90YKkhrJpjaEhP9t6ok/34eWCl4vZrXv9bvdjQV0Purfny6C+YyOKW3AcMNlDZe8EZ 5JhA== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a0565123b8c00b0046f82b9f5e3si9241378lfv.72.2022.04.29.03.44.58; Fri, 29 Apr 2022 03:45:25 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347575AbiD1NrS (ORCPT + 99 others); Thu, 28 Apr 2022 09:47:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243244AbiD1NrQ (ORCPT ); Thu, 28 Apr 2022 09:47:16 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24CEBB3DDC; Thu, 28 Apr 2022 06:44:01 -0700 (PDT) Received: from fraeml708-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KpxbT2CTMz6800p; Thu, 28 Apr 2022 21:41:09 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml708-chm.china.huawei.com (10.206.15.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 28 Apr 2022 15:43:58 +0200 Received: from [10.47.91.78] (10.47.91.78) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.24; Thu, 28 Apr 2022 14:43:57 +0100 Message-ID: <72c6c1b4-5e83-02e3-6051-c11b3bfff452@huawei.com> Date: Thu, 28 Apr 2022 14:43:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] perf test: Fix test case 81 on s390x To: Arnaldo Carvalho de Melo , Thomas Richter CC: , , , , , , References: <20220428122821.3652015-1-tmricht@linux.ibm.com> From: John Garry In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.91.78] X-ClientProxiedBy: lhreml701-chm.china.huawei.com (10.201.108.50) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,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 14:25, Arnaldo Carvalho de Melo wrote: > Em Thu, Apr 28, 2022 at 02:28:21PM +0200, Thomas Richter escreveu: >> 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 ....' > > Thanks, > > Ian, I guess this will break on other !x86 arches as well. JFYI, arm64 gives on acme perf/core branch @ e0c1b8f9eb this: john@debian:~/acme/tools/perf$ sudo ./perf test -F 82 82: perf record tests :Basic --per-thread mode test Basic --per-thread mode test [Success] Register capture test Register capture test [Skipped missing instruction] Ok john@debian:~/acme/tools/perf$ > Can you > please take a look? > > - Arnaldo > >> 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 >> test_register_capture >> exit $err >> -- >> 2.35.1 >