Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1466541pxb; Fri, 18 Feb 2022 08:19:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYoSJO752UTDJyGTpDveDAdcSL3XlRmTfGwWOlxNd1T+mN9ZYLkWLrtH+0Y5X+am7CTyBQ X-Received: by 2002:a05:6402:d08:b0:412:a33e:24fe with SMTP id eb8-20020a0564020d0800b00412a33e24femr8840033edb.281.1645201177648; Fri, 18 Feb 2022 08:19:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645201177; cv=none; d=google.com; s=arc-20160816; b=aPvn0jql0RsPMTiCQuVP/w6Iyv2WOi5dd/bTICIYE+8PXonr7bkrwrVHTtk3lzI9zX 38EMAzVXnINRLecAcDlqyu+FEJSVRWqSQBYkSO53B709BZdh5z8Hj9me4OmuIfDQltc3 yUCueNs0zWTYBK8ZmyR7gCBKM4MZLivYoOuqMTV2mPiKpCGJtMON0KyUOOzi2zHGc7Uj F7uiWxOgOrVHcdH3UX/XHXGQdUp3WKPqAf0yJ2eXByrQ9b3uwY2n+9XEePzfuDf6GZGh mrAnAsWOaXlWyCswWHCIyF15uRlAIE7HYDZ9ahN90DTFC6i/1jdQ1sfjfOZTnsbBwjDh WpqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0VtpMcNQKWx4+MQ+1aHJEvP4/hS0hbyqzI+yedIVGqE=; b=nFoUWkxc1yOtO8VA19K2u4738dlOGqj9ZtSeLKf9vb/GxmrEn7eycgLYzGJ+Tzqoih DGnb3jlFhv8f/7C3RC+g8BVu4tBWT0zo1ZeXkZWfeg9kmx4h+ZJWGlKjRnku6UrBCYoW 5tdNY5uiaQKs2EyPnXnNNm7PvWfhyGw7VrQ6rT1vuXOQTTBh3Ugh8E8vqFlBa/ULLIhC /pgUcgErIP6ZQXoWzYbbdfouya7aZG8QsGrN5+DN48QpYpFzp853TLFZu9uZfQoIUNnI YQJx3n55pMc5oHDKW+Jl1w2bc4kJAnAmEif339yfv9C/IPOI7ATk1jIS8+FjC1vExnp4 DCfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=niE6ZUuT; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp33si4393478ejc.676.2022.02.18.08.19.14; Fri, 18 Feb 2022 08:19:37 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=niE6ZUuT; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235675AbiBRM6G (ORCPT + 99 others); Fri, 18 Feb 2022 07:58:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235686AbiBRM5l (ORCPT ); Fri, 18 Feb 2022 07:57:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C99DE33363; Fri, 18 Feb 2022 04:57:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 12A5B60AFD; Fri, 18 Feb 2022 12:57:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 465C5C340E9; Fri, 18 Feb 2022 12:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645189020; bh=rUxvNFgonoAuLA33gOMyiOrfFD2DvpL2w4FzX9GKdIo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=niE6ZUuTmbQ7TRwS9gYorjiGlxQb8rljzceGARLh7tGeLXTs9TFaUCJkWCoU1Sma7 l+nBaT/VqiXvGcYTiRGpzA4pb5QN5k+Cz5Arb8I1bMj1711KbWeLmURFw42Mdz40Ox wF9ziwHlVac83VEZzG0Q5neclS3ps67WoM3lhGa5HzgkhGsLWTSs07Y+zPzyipyp3B h7A0+VGFoNUw9IWI77Ixu4nkZpGxHHHS2CCjqScsbS+j8LEKB5/GXN9UUN7N+Ti1nY +t/RSApmUFCIcul8JFJpbmCrvuFk9Dhm7ELlh9ukrLNeF0r1YKaxSI77TCww+ht3fv vrm89y0ZMIbYQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1C7D4400FE; Fri, 18 Feb 2022 09:56:58 -0300 (-03) Date: Fri, 18 Feb 2022 09:56:58 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan Cc: John Garry , peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, jolsa@kernel.org, namhyung@kernel.org, elver@google.com, dvyukov@google.com, will@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, tmricht@linux.ibm.com, irogers@google.com Subject: Re: [PATCH v2] perf test: Skip Sigtrap test for arm+aarch64 Message-ID: References: <1645176813-202756-1-git-send-email-john.garry@huawei.com> <20220218104611.GD56419@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220218104611.GD56419@leoy-ThinkPad-X240s> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Em Fri, Feb 18, 2022 at 06:46:11PM +0800, Leo Yan escreveu: > On Fri, Feb 18, 2022 at 05:33:33PM +0800, John Garry wrote: > > 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"). For > > this, reuse BP_SIGNAL_IS_SUPPORTED - meaning that the arch can use BP to > > generate signals - instead of BP_ACCOUNT_IS_SUPPORTED, which is > > appropriate. > > > > 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 > > I tested this patch on my Juno board: > > root@Juno:# ./perf test 73 > 73: Sigtrap : Skip > > Tested-by: Leo Yan Thanks, applied. - Arnaldo