From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C100C433F5 for ; Fri, 18 Feb 2022 10:47:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bw9i1MtE6gRhFOadkOTCOHRfJddG6L4bOSKdbQCc4ng=; b=EYRrvi1UNi3wyF II5saBE30cOOvNpz9XTCyddU5Oz9lbq+DLuWwDoDIDDjZhzDkmXbw6CBejvVqYoR6WIBUpikClJaW PQpQCf+HQetdGwpeNpEkbCWGrAPe+PGlTcjR+7TPG3tC5AqiUgdY/e73aXd5zWKkkTT3xgriACxH9 Am3ey7ZKwvP0YiJHkMefyKNyv/huTRj0jUqOVH2C2/MPmohZCGYdU6KVifm/H3k5/w86dLTNA6sEj g4o40flUx0kzBaCZlPyapfJuXd5v93wW5KyQd03voS6Qe9CdSleumyrRABZEO6LkgnXpQo6D0GCq8 oT2m1Q5e5Z14QnEAtWHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nL0mN-00DtTd-8A; Fri, 18 Feb 2022 10:46:23 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nL0mJ-00DtS0-AC for linux-arm-kernel@lists.infradead.org; Fri, 18 Feb 2022 10:46:21 +0000 Received: by mail-pg1-x52b.google.com with SMTP id h125so7492999pgc.3 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=bTjYLvfOom7+LF5c0DpWoPWKw02WL2cgdgS/bHIrD2Fa6g5gtrFja1Bcb1KjaNygfO 39qKnN600cHa8f1ZbZWLnA617bpcOTLIMtjNb844I2XBFXf9ZGXICXZgebWJvGtEj0gy VJVnOLxQtZUpjjWXElbFXbUNqAHTPuc3XRsVx2fsKKoTET2jZBn2O4mJOSHcLSJaaPtT SvRC/BgHy5jHgJ/+zGBsKuVr7bfUb+6zisjI6DkuVCTLxcq5nEnxEFdDqCYti+DpesLX lVXJ2jhk/80aIO0nrO6fKOBskfCWGF4gYPADo487qf6SaMSO54HsCcP0FxgojppyRFFy /VFA== X-Gm-Message-State: AOAM532IjIhUOcGBTPLmz0v3mxYqTJDSQ208mBpphKWLTjPx+2Qg359c vXEjUSapwvTMkcx6PjdW9VEStg== X-Google-Smtp-Source: ABdhPJwGtw4sZz0qpalh7OWQa3lBdQSvJkO1h9NOHuXGe8fFyRc9X4o4BQsE0THQpb5h03AeDkUGUQ== 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-Disposition: inline In-Reply-To: <1645176813-202756-1-git-send-email-john.garry@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220218_024619_393877_1679DE19 X-CRM114-Status: GOOD ( 15.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel