Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp829529pxb; Wed, 16 Feb 2022 05:26:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2iUTHkyYx2DFJjTRNwnp6OymEvgiEPfxa3hZpDlVa+vYG3Fh2y0SVfWgFdHbKtb2zvDwX X-Received: by 2002:a17:907:918b:b0:6cd:7605:4799 with SMTP id bp11-20020a170907918b00b006cd76054799mr2207383ejb.568.1645018011760; Wed, 16 Feb 2022 05:26:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645018011; cv=none; d=google.com; s=arc-20160816; b=0az54LVnJHEzXvEyorRGQfOyiGWGzqRP9exHp46FCltL+foxCpeb6GXzqNHuX+kmFO 5kjNEYmzOvZzS8QfRPfJq6LoR2dHekE+PM37CfaTYs1o/qqOvdRXyWgbLUrOVAS4fHkI cB2X6K6p5rCJXKqeYsVklg9Csty13q8lN4R3RESRrwOgmWdLq3pqIopBe6S2pMXuK5Zs PfLXcWtzhS9B78y8FLM4hexSx9516F1lrgPHj5mKXa4PmbETLjFE8g2LHilbI/eyIXhT YBHbMjDnlOTWS1zAhGrp4Aj8AuroG5vXF7OpV3m0V8JRGrirbsagQ+l2ZLTc/kgGJ7Nc NtHg== 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=C2p4IUdETvsJDn4La4k2PCI07l5Bxa5zsybCeAbirFE=; b=nnQZ0XD11w99JeSVb/3SFQiC4mIrdb8Wcq8ArFuhkpwGyEcb5l9RG10vrJNrcNZyoN ZjzpTnWthQNbEcoO6frjCY8CMXSCuBhlAn08IoLL3HnGC+WxUDeLAJwQ3Tbj5qd/SOI4 IkhJkY93BjedI293XhIP3WCJF/H5njOuDVFNuVTKfuvKlWlE6uzVy5tt5JJIZbaxX+hq NQdy3xi22v3KgTgG3ewkiOfx/O7zdOe7QAz17eSgUhHU9Y4jp3QiLmlYUg4zZe6yvcsI 9q+k2Ugu1M3WTx8JH/EBJRtwDOOFnT5qtFSXd2FIC8vNiA6b8PqXy3bkwPLTKYNUA4hb oByA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cgTmNT+l; 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 ec28si1768286edb.495.2022.02.16.05.26.29; Wed, 16 Feb 2022 05:26:51 -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=cgTmNT+l; 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 S233716AbiBPNN2 (ORCPT + 99 others); Wed, 16 Feb 2022 08:13:28 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:47480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233551AbiBPNN1 (ORCPT ); Wed, 16 Feb 2022 08:13:27 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7DC026A2D2 for ; Wed, 16 Feb 2022 05:13:14 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id x5so3802203edd.11 for ; Wed, 16 Feb 2022 05:13:14 -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=C2p4IUdETvsJDn4La4k2PCI07l5Bxa5zsybCeAbirFE=; b=cgTmNT+lR7bIEtc+0RAP+11VPLYqnh/5AYxJB7yMRpBjQ4E7jT1GDIbYfOvueK0OGj ezlXhWvCIyOfOIoK9wPgSJW5Qvz/Tq6u5h2BHhHxA3/M9FjYgCtvpraidt0TcJvapxBP PSGEHjx8CPFzhxjV/xFtu0YKK3FRIyafADQKj33KP8ehSq3QyLbQ80nv3lfGkGZy9f/e 8kQ7cTK1XsTlQXalf/x5+5L17ozGIHBzyLvlGsemDJy2T8DzllilABCyKj6Q53kFjDb3 RQSuQSmRXKPAT2IGMBr2NO6prlzGpfdzqmcWk3/hpqV03GHQ07FnrM1zwgr+L9AvVUxb x2+g== 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=C2p4IUdETvsJDn4La4k2PCI07l5Bxa5zsybCeAbirFE=; b=QSCxPikc5qYf0MQDzQrffwlg+WSuMiUBp6IxSDS4Tyf+aHBsXbQcTrOflpjwyiKDC/ SVTCHP5K3B8rn7oK5oprxDm7Nx8hqEDF57TEjrQgCYbQg58jNLTqAOjr3nTQnD7zhW5y xTzSWbtSzB3bq1ZclR0APeqFcwP/dF4GS4d6JP7CUTo89a7d82mhv/lsj8D4ht2usyZ5 I/IrgnufHEkMUDh5tzDMGdXzCwBKZv/VIgy7oDfkxM44JU9JjyhU/Ni96n3pUUs1r5dd QSkD4YwaqMofknZ66D4RgJ3R/kRhCrpcbjjWU2UoJK/MJrV5AmZ0a82NqJRBKYkhCdeM XDGw== X-Gm-Message-State: AOAM532Nql+rJRyPO0n2gmZoNn/+23e64XXVFb6z1hbYoZnc/3ne/4pr rYoZzXvlCr3o4sL4pmsUfPRgUA== X-Received: by 2002:a05:6402:742:b0:410:a427:3634 with SMTP id p2-20020a056402074200b00410a4273634mr2941621edy.304.1645017193316; Wed, 16 Feb 2022 05:13:13 -0800 (PST) Received: from leoy-ThinkPad-X240s ([104.245.96.223]) by smtp.gmail.com with ESMTPSA id h5sm4817787ejo.124.2022.02.16.05.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 05:13:12 -0800 (PST) Date: Wed, 16 Feb 2022 21:13:06 +0800 From: Leo Yan To: Dmitry Vyukov Cc: John Garry , Will Deacon , Marco Elver , 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, Mark Rutland , "linux-arm-kernel@lists.infradead.org" Subject: Re: Test 73 Sig_trap fails on arm64 (was Re: [PATCH] perf test: Test 73 Sig_trap fails on s390) Message-ID: <20220216131306.GA56419@leoy-ThinkPad-X240s> References: <90efb5a9-612a-919e-cf2f-c528692d61e2@huawei.com> <20220118091827.GA98966@leoy-ThinkPad-X240s> <20220118124343.GC98966@leoy-ThinkPad-X240s> <06412caf-42e4-5c4b-c9b3-9691075405bd@huawei.com> <20220215143459.GB7592@willie-the-truck> <8c582e45-0954-a2ea-764a-4dd78a464988@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Feb 16, 2022 at 12:54:16PM +0100, Dmitry Vyukov wrote: > On Wed, 16 Feb 2022 at 12:47, John Garry wrote: [...] > > > Signals make this messy, as the step logic will step_into_ the signal > > > handler -- we have to do this, otherwise we would miss break/watchpoints > > > triggered by the signal handler if we had disabled them for the step. > > > However, it means that when we return back from the signal handler we will > > > run back into the break/watchpoint which we initially stepped over. When > > > perf uses SIGTRAP to notify userspace that we hit a break/watchpoint, > > > then we'll get stuck because we'll step into the handler every time. > > > > > > Hopefully that clears things up a bit. Ideally, the kernel wouldn't > > > pretend to handle this stepping at all for arm64 as it adds a bunch of > > > complexity, overhead to our context-switch and I don't think the current > > > behaviour is particularly useful. > > > > > > > Right, so what I am hearing altogether is that for now we should just > > skip this test. > > > > And since the kernel does not seem to advertise this capability we need > > to disable for specific architectures. > > It does and fwiw I am just trying to use it. Things work only on x86 so far. So here we have agreement to disable the cases for Arm64/Arm. John, since you put much efforts to follow up the issue, I'd like to leave decision to you if you want to proceed for patches? Otherwise, I will send patches to disable cases in perf. Thanks, Leo