Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1217585pxb; Fri, 18 Feb 2022 03:13:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwla7035pxS5O3qsNZJ8Qf16ZgYB/uKv1U7iVhkhs5hvcAaUVklY6yPLhsEXKMBnR5EtSbZ X-Received: by 2002:aa7:d74d:0:b0:410:b60a:c37e with SMTP id a13-20020aa7d74d000000b00410b60ac37emr7464006eds.330.1645182801801; Fri, 18 Feb 2022 03:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645182801; cv=none; d=google.com; s=arc-20160816; b=llBmDcrT2aRd6bqz1ITOp+5uHh0485j1Whqr2CbvmC7v8bAfovKyo6QVMua1SU5Ask AavUmxN7Ogm9F60WJ8ZmatVpeVvo2tbT7OnZF/HFUUNah2wQhBzicRubEJspc3ATAhQX JWGLAkL7rif5SHTPwhoCvjLJ2HUaK9F6guaTJSk/gwBB9/SkMAwfbxUD2wmGbhfeEkvo f7Lp32darCwmxnx3GYpPcnG8Xgg68cK/aIqbi0Dbf3PX02LeRa39bBlwojBQjskBvOPM 2lO0+1NCWiIWQ9Fhi7KuMU5jFWIzH5rA4+hIdul8FTctgEqd9cc8B0Yvi6o/RKEIpV0V 8m+w== 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=LAy9H/l1KWh4fEiWJeqleJ0QHDEZvecxPJTGx+dOoeQ=; b=S130w8lSxfYTLvnEYLamBtLtrQuipNY6kIXxKuNvq1e3WmKxqI8YLhxgg1f6J4FuxD 2QHEHANzYprJmyKojKVJCE+k6mNH6NgMlwojRfb6LVbiIDbpB4JkrGdrC54IbRgvoD4D M4GmzSQtr63jbGKFT8/6Hn5aFiGeyf+mzkqqNAxKXIPX86/Fy7thB8+7F1lY+s87Uzbk zS/45aeBnNqVOOgWBCD6+ipdpuizh4WVZxj8xUrQEiF0oGZjdcxmMP+hrUIoZbDcC4cL maOF7sf5bjKy0qjA7lAU+M/DWNqJY2PlNvBJ7zqibD/IvsI4yQugnKr0M7ph81eHUKu0 oB2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zQP2DkmS; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s26si5381189edx.522.2022.02.18.03.12.58; Fri, 18 Feb 2022 03:13:21 -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=@linaro.org header.s=google header.b=zQP2DkmS; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234134AbiBRKqi (ORCPT + 99 others); Fri, 18 Feb 2022 05:46:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234141AbiBRKqg (ORCPT ); Fri, 18 Feb 2022 05:46:36 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B471E2B3AEA for ; Fri, 18 Feb 2022 02:46:18 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id l19so2034069pfu.2 for ; Fri, 18 Feb 2022 02:46:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LAy9H/l1KWh4fEiWJeqleJ0QHDEZvecxPJTGx+dOoeQ=; b=zQP2DkmSP1w7wdCEkRYZL2SWr0Uiz5YUoO4L3J7HwGpQwYrcKDP63GwwH/Gsj6yuZ1 pIHm70tjJtva+sTQdqzGCOmW4jwYLxAo0zg6kR2v/fC946ru/zrSYEvqOeUU4LkXY5WJ zKlZQM78u+OGQwISssqDFOqK1or0PGBvJW0W0/7ievNql9gZ7DHcPoVGwMJoU/oNZQDJ 5aeeJ1VIVZRvp6D+dMbkfCtQDPUJqokovXvViqUVo9s8DITwT4MUbobl8D/Y9MIpha/6 4f55G83fZpO0Q281Vw24tnz1PBW3InBaFE24y+s79Y/l4JDK7TMLNaSDfHg8QTNnEpPB qUHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LAy9H/l1KWh4fEiWJeqleJ0QHDEZvecxPJTGx+dOoeQ=; b=VwmuMyYuoazhLmvtZoyGe8/gQZ4c5R1PgDuX5wAiHyspjit09a5R686mwMnIQukNMD vIPT9V2c3C4UU7bL5/eDSHEXMRMjOjVRFPDz2jOQcwUTzvWWPYM2cahbwkFHhfFdnsJi MmcOrtO+Eog9EgYgJN/uFa6nKgHBTuM2cm7B3pfRhnDQEmioTiy7NiYwoxbYFBHG5CrM K0F+wjPw6scAy/0cZ2Px18nVkBRTzDllz7VtbR3FyvJoLkG7VQnkvB2LORRU+HXJP2LN ab8cDvGY8KcXuN+caqwpeEse/CLDdqITpfNOWWYF582AUZFvNo0F7LfRYMbbBLjUI9rx XIgA== X-Gm-Message-State: AOAM533qfo32j+2IUXooZo+XNoECAjQzcs2CqbmZ08fNJyzRqwdi2dnK ayEe8Gqqo5wgMd2zDDwJs514Uw== X-Received: by 2002:a62:7554:0:b0:4e1:5898:4fbb with SMTP id q81-20020a627554000000b004e158984fbbmr7102723pfc.2.1645181177951; Fri, 18 Feb 2022 02:46:17 -0800 (PST) Received: from leoy-ThinkPad-X240s (216.24.179.146.16clouds.com. [216.24.179.146]) by smtp.gmail.com with ESMTPSA id np15sm4919722pjb.44.2022.02.18.02.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 02:46:17 -0800 (PST) Date: Fri, 18 Feb 2022 18:46:11 +0800 From: Leo Yan To: John Garry Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, 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: <20220218104611.GD56419@leoy-ThinkPad-X240s> References: <1645176813-202756-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1645176813-202756-1-git-send-email-john.garry@huawei.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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