Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5635780pxb; Thu, 20 Jan 2022 01:10:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOHKLKtXOPCJcL8oqGwgRZKQfCntuZTttdBJ1KJBqvLHa3UecaQ7izMvKyCt/rMOzIr0H9 X-Received: by 2002:a17:90b:1b0b:: with SMTP id nu11mr9642915pjb.105.1642669822348; Thu, 20 Jan 2022 01:10:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642669822; cv=none; d=google.com; s=arc-20160816; b=Wkmf730Winf82LwbCrrOEVuVy9leTqgVgWmEL8XeFlY5Y1YQ+9s2jGVhRLgvrnqLuG Q/0HilZ2GdXQSYogaenZ/Gg8PyA0YXRKnpRgR+ZZ3X8VAx1+7NPRRpcBZr67+0WD53xd XxCN/XYd5FKdzBA93ILF4u6aXnsHEEtArDK/vHE/LornaIRwqYEOTcsZljNhbnMjpyPU 7ArKU4A6XESKNjzHmdlqOAgioxiClS6s6ESWzt4Jhtow5P4hdne4Rm+DHawl/2K2WDj5 iWVeRAHY9M/HuZG6zd5l579pVAugY85HNjV1RApNQGd0c9KOn5NiwRdx3i169oVZaaHR 06fA== 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=rTGN2etA9k5qiSP7ZrVqfOL8gvgrJ9M1T4KKkJp0QWM=; b=Y01ca6/XpswTtTNPGblJ7L/62SjeOKdoYJvsilhM6+kkREAeZRZSqrOVCY9BZOQYuO UbdMmuf+5hRr8V/llzDgkDqYwiuuDnP11LR+3qy+di4ZQkY0/1AN/ksY2wTgzYfupawp sSU+zuazkxZ2zxLTLwqn/Awocl5YZoq/MNBPNoqiZIKVziBQP5HqyuwzH1UiKTZhzPfr pmv4WzVWVAm41t0ANb5qTWp2bAuBRiBP8KZh9xagDo2iS1vcs5BXHRlkvVKWNCNz5uuv 2e+PBXxbLV8X2pQw2YI2AXBXOh1I5SARY+b+ybFihw7nJTiIhZ5HNGv9o3zF9/sIyc0B Fyyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GgxT31tF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si2424891pfo.299.2022.01.20.01.10.09; Thu, 20 Jan 2022 01:10:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GgxT31tF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237190AbiARMny (ORCPT + 99 others); Tue, 18 Jan 2022 07:43:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234111AbiARMnw (ORCPT ); Tue, 18 Jan 2022 07:43:52 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7833C061574 for ; Tue, 18 Jan 2022 04:43:51 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id m4so78735641edb.10 for ; Tue, 18 Jan 2022 04:43:51 -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=rTGN2etA9k5qiSP7ZrVqfOL8gvgrJ9M1T4KKkJp0QWM=; b=GgxT31tFLd4a+OUKWDBAd70k8Yeeis6kDp5b2gHUS0rGPxK22UFqKkvQHm0U5/YGny WAI5UQZMbjfqyfhFAt3GUf5SW/PEDJsiYw9N45rxF6tP6Nh4J+6RNR/2alpDopSkfSN5 RcCdPiKochKA+ids16pdZwSQcj+xwNyCSwtpYaGzUTt7zdlLTEcvMm+itvOKBadIBs1C SN3Gf7iQ9Hcld3vlEWzY64gJGltq3voMpToPLBCArLOUrq4cgEzzjVDZvnFrgRvmwASO fY40TU7it9R2XzyyGOKm4uZft57FbbxvdnfMULLZTfa4jjfoJoBfeGtJAbQtw1czcSDM PsdQ== 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=rTGN2etA9k5qiSP7ZrVqfOL8gvgrJ9M1T4KKkJp0QWM=; b=d6guCgo330gJXK0sI2+ukSz/MVuvrgIxHBzGF6Fnu4GKExlAipPMff3Oo10voPOThC 4dB8fGhRUgOrGgORC3u4p/+TccN4A/+G0qkMvfqipjF2gwWoRRo0prBDusMKYFAOuMe4 M7hznjlQsfJAXQlzxRNt234pa42HXz8yQzIOgW2gDybYJqBmETD/+DthYYsLyvjYa5eX FtBCnONQ2VKGz6glkX1CC6kvqOGCRVqas/Iq/cVKBMQQVO51F8e3HAaLH368ZOx6JT0d gZglQbQGqJl7M14nbL4b3TDwkU4C/xrDU2gKAlUXpkNhWMEKYedXdOoDjaxqrk4tfP+o 512Q== X-Gm-Message-State: AOAM530Qow9JTRuKoyxsFddHwtlJbCGfbqym8WwUn099g/ybi+oAUGig RUvjh2VuOd8ImpqQ0VXf+xsLsg== X-Received: by 2002:a17:906:9b87:: with SMTP id dd7mr19839112ejc.178.1642509830140; Tue, 18 Jan 2022 04:43:50 -0800 (PST) Received: from leoy-ThinkPad-X240s ([104.245.96.239]) by smtp.gmail.com with ESMTPSA id r27sm2379066ejc.42.2022.01.18.04.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 04:43:49 -0800 (PST) Date: Tue, 18 Jan 2022 20:43:43 +0800 From: Leo Yan To: Marco Elver Cc: John Garry , Thomas Richter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com, Will Deacon , Mark Rutland , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH] perf test: Test 73 Sig_trap fails on s390 Message-ID: <20220118124343.GC98966@leoy-ThinkPad-X240s> References: <20211216151454.752066-1-tmricht@linux.ibm.com> <90efb5a9-612a-919e-cf2f-c528692d61e2@huawei.com> <20220118091827.GA98966@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 18, 2022 at 12:40:04PM +0100, Marco Elver wrote: [...] > > Both Arm and Arm64 platforms cannot support signal handler with > > breakpoint, please see the details in [1]. So I think we need > > something like below: > > > > static int test__sigtrap(struct test_suite *test __maybe_unused, int subtest __maybe_unused) > > { > > ... > > > > if (!BP_SIGNAL_IS_SUPPORTED) { > > pr_debug("Test not supported on this architecture"); > > return TEST_SKIP; > > } > > > > ... > > } > > > > Since we have defined BP_SIGNAL_IS_SUPPORTED, I think we can reuse it at > > here. > > > > [1] https://lore.kernel.org/lkml/157169993406.29376.12473771029179755767.tip-bot2@tip-bot2/ > > Does this limitation also exist for address watchpoints? The sigtrap > test does not make use of instruction breakpoints, but instead just > sets up a watchpoint on access to a data address. Yes, after reading the code, the flow for either instrution breakpoint or watchpoint both use the single step [1], thus the signal handler will take the single step execution and lead to the infinite loop. I am not the best person to answer this question; @Will, could you confirm for this? Thanks! Leo [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/kernel/hw_breakpoint.c