Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp822711pxb; Thu, 17 Feb 2022 15:49:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuLEg9jw6Cls1PwpAl7RvhOpYQzTKkcKOShwu0GIVJCJrn1TwMyM4OrDo8bYop4PaJOJgu X-Received: by 2002:a63:a66:0:b0:373:c36b:e500 with SMTP id z38-20020a630a66000000b00373c36be500mr2259381pgk.419.1645141793906; Thu, 17 Feb 2022 15:49:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645141793; cv=none; d=google.com; s=arc-20160816; b=Sxbll9Fhzh4UWuHsEB3CNKnrZHFquegim3+CKWFBEm1BP6yeq9yyUnOUtebAsEfkAe IaHYK4J8clOkFqjblIR75GcjUs9rMb3kegsdkWhDokwlzM0fYBuuLfH+xvF6DwNU8n5H CUPrQYH2S6bWuZuHbOvpjQoMkIyD2hZRWLwibn026hZZ0rfSUgBiUU093g7amYelQ9MA ArGzPDtJgalKkIHCsFZBJjv/GIOWoW5jC2hYworpTVGSRl2rRJ60xZLcskCtukdXg5Eq O5UJbFgTTNDbjkk6fRL3lcWQH80xOBbq90XVmexhnyZE841/Qgiz349AtjRw8Ue7Exfs KzpA== 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=OvKqWhJbuYn7K4vYMkHXQxMmw9JhH+uichc7Z8UNuWM=; b=jTSqd+Szhkh4UxKwzCkmeX2J/xBFMcmQ8JwL/naBgJ/RQ7XDoU5MSgLu/wa/Ud9VOM SflcuudocHh4M7Zw5PwVWX1T2H1+/uImqrZVO1xP+P4ijuS/aAIFfTY6KOJ/nxOpNVX9 04B9Sd/bSwuuT+iDtCXFQ2D/ZkoVqCYYTO1gJT0AHtTQ34mZl0bSb2Ma9OIKL8ObMg/b ZU5Z3SpBfD5kfYWQc1brvrH30pOkLHfowa9CIq7e+1RhKj91IQANTo7YKZWtclApbJ+G zqklAHTI6lG1bUElDkH1tMmdrfOaKJbOR1qWBOc9WvX9y2zYj0e7gTUaGWZxZAMoKp7P Dl+A== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d10si2048982pjx.28.2022.02.17.15.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:49:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6CEB3DDF2; Thu, 17 Feb 2022 15:22:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243762AbiBQRep (ORCPT + 99 others); Thu, 17 Feb 2022 12:34:45 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232125AbiBQReo (ORCPT ); Thu, 17 Feb 2022 12:34:44 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2337F16040B; Thu, 17 Feb 2022 09:34:29 -0800 (PST) Received: from fraeml734-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4K01zl5F86z67Z2N; Fri, 18 Feb 2022 01:29:55 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml734-chm.china.huawei.com (10.206.15.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 17 Feb 2022 18:34:26 +0100 Received: from [10.47.86.67] (10.47.86.67) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 17 Feb 2022 17:34:25 +0000 Message-ID: Date: Thu, 17 Feb 2022 17:34:23 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH] perf test: Skip Sigtrap test for arm+aarch64 To: Marco Elver CC: , , , , , , , , , , , , , , Thomas Richter References: <1645114959-119064-1-git-send-email-john.garry@huawei.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.86.67] X-ClientProxiedBy: lhreml714-chm.china.huawei.com (10.201.108.65) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 17/02/2022 16:45, Marco Elver wrote: > On Thu, 17 Feb 2022 at 17:28, John Garry wrote: + Ian, Thomas >> >> Skip the Sigtrap test for arm + arm64, same as was done for s390 in >> commit a840974e96fd ("perf test: Test 73 Sig_trap fails on s390"). >> >> As described by Will at [0], in the test we get stuck in a loop of handling >> the HW breakpoint exception and never making progress. GDB handles this >> by stepping over the faulting instruction, but with perf the kernel is >> expected to handle the step (which it doesn't for arm). >> >> Dmitry made an attempt to get this work, also mentioned in the same thread >> as [0], which was appreciated. But the best thing to do is skip the test >> for now. >> >> [0] https://lore.kernel.org/linux-perf-users/20220118124343.GC98966@leoy-ThinkPad-X240s/T/#m13b06c39d2a5100d340f009435df6f4d8ee57b5a >> >> Fixes: Fixes: 5504f67944484 ("perf test sigtrap: Add basic stress test for sigtrap handling") >> Signed-off-by: John Garry >> >> diff --git a/tools/perf/tests/sigtrap.c b/tools/perf/tests/sigtrap.c >> index 1f147fe6595f..3f0b5c1398b5 100644 >> --- a/tools/perf/tests/sigtrap.c >> +++ b/tools/perf/tests/sigtrap.c >> @@ -29,7 +29,8 @@ >> * Just disable the test for these architectures until these issues are >> * resolved. >> */ >> -#if defined(__powerpc__) || defined(__s390x__) >> +#if defined(__powerpc__) || defined(__s390x__) || \ >> + defined(__arm__) || defined(__aarch64__) >> #define BP_ACCOUNT_IS_SUPPORTED 0 >> #else >> #define BP_ACCOUNT_IS_SUPPORTED 1 > > This is now equivalent to BP_SIGNAL_IS_SUPPORTED > tools/perf/tests/tests.h -- and different from the original > BP_ACCOUNT_IS_SUPPORTED (and makes me wonder why > BP_SIGNAL_IS_SUPPORTED wasn't just used from the beginning). Perhaps > just use BP_SIGNAL_IS_SUPPORTED. > We currently have BP_ACCOUNT_IS_SUPPORTED defined now in 2x locations: tests/sigtrap.c tests/bp_account.c bp_account works for arm64, and we don't want to skip that test. So, as long as the macro meaning is appropriate, we can reuse BP_SIGNAL_IS_SUPPORTED for sigtrap.c Thanks, John