Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5582680pxb; Wed, 19 Jan 2022 23:42:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKVPabuj9tV5cuZyp4ziDosAWz5b5GeaHs4rY0ajNVXwJZYKI6LXVthghBGEH1CA77sUuZ X-Received: by 2002:a17:903:41cf:b0:14a:f1af:15cc with SMTP id u15-20020a17090341cf00b0014af1af15ccmr6678038ple.122.1642664521901; Wed, 19 Jan 2022 23:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642664521; cv=none; d=google.com; s=arc-20160816; b=S9NYT3d1+9/LXsd9VUs6OGHD3vA71OrxeCYka5Mq99EFDES6NIP3ZvGNu7+DPUiK2a xRnJAmKMeVt07Bq9THn3kjQrQAk37CYzW1wntYiAMg9ha1g4doflGbkUirwb2NvecOFi MhtIeL5/ZyXn9Lc5hmvZsJro6t/b9PtaiBmjLTrIOHs3pqPDJu4G23gerPB1Gp02TV2f NArO6Y3BnaOvE/AcIIR/qyZLp5VKmNC0KufcXXUCuywc+yd4AsO5frAI8Nlyr3NtsGcC zwMMZKtYNT7W1EPUa9W8EEoa8x1SyBKiIfI7T8OtW2QSuEU4dUJJV/MBW4yGPQXNaBtx Vz9w== 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=dXkKY9TV5jKPRQS8npjT2kmqtGeprtOApiCdkfgYiBA=; b=kLJmVWA19joGT0gt6MeWYjDXX10Yg9+xXQjMKBkOdG2bi/lou/+9EYKi5iAOJqZ2gf Q246RSRF3eCtor6iqseZgQ02aEqXMsYHlwyI9H+jmd8J8Hyr93NlRsrRH9eJVBUGw2LZ 1a3iqTAtW7ndXKgqV8f99eScl21m5ZJFmNBK2GpnRAgadMLA5ORI96DNnTRycP01sAqU WWIpyi8HU0ZXsPqoPvwEYD46TJULqpn9YrvXnRSz5brCAxb9LU6uV85C+aJdk11ajadB c03/LLy+t4ALF7pmqYGGRVsl+/RRaII2GQyX2EMFxVUB8hNp/VTojiN1bUnxlIAlFk7o 08xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RaqI3KHq; 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 n13si2383441plf.401.2022.01.19.23.41.48; Wed, 19 Jan 2022 23:42:01 -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=RaqI3KHq; 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 S240210AbiARLTx (ORCPT + 99 others); Tue, 18 Jan 2022 06:19:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240716AbiARLS6 (ORCPT ); Tue, 18 Jan 2022 06:18:58 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FB8CC06176C for ; Tue, 18 Jan 2022 03:18:58 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 15so44653806edx.9 for ; Tue, 18 Jan 2022 03:18:58 -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=dXkKY9TV5jKPRQS8npjT2kmqtGeprtOApiCdkfgYiBA=; b=RaqI3KHqXcZqT1HWbCc0QERICwhfSItlAf6p615a9aV9FK4gtZloTjvE/aMk0xre// QG5neM7zOxKc0gFZcPnY6KDQ8EnpFbkN+BymjejeISvbcCjp+OMzu+vWfNkL9lEx8z09 oMZNi53pbX0GAE2fgZ7eyihjD/lWTJBEvLyyuSs3ysA/HXTU3r16HTa13jXPTcxM+kq+ 5NjdSp5PP8U7O7pepfz+7rS0WGGyRbZpsYF4B1KDlzQ8Do/UgWjbcIKn2lXu+tCDNBoC U/tIm2ZqfKw5WmJ1K7IwJTCMydISJXfcRSBlv/r2mxpLy2Tv2yjiOxmqX4/TMP8LfzVJ t/dQ== 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=dXkKY9TV5jKPRQS8npjT2kmqtGeprtOApiCdkfgYiBA=; b=iZ7le50e7MOJlRAVj5Cp0wL1R7IIlC8kIvfC+raPDh1qCcsamVWJoZ+juBS/2gipAy DMTFy3BvRbsRrPc1ShEf6A89l6+zPBnpB/i6r8S1GWgYOo+Q+Vh4FngypIdX+FKT047c 2mPCzBNappEqVT9XwXPwzKCMfDVAr/BF5YyZUZ9O8CqRMG6ZrXYY+oSZBCtGvs5YsfFl ucqD2tKpEbb/WDB6bg9RUscrT33CYWxH2uWUgReGIXxZ9iTv9nkPCNsXb1n6/AC/oyjI X4ZLwmfXc5B2q/GGDmrKYYUgyXe1AN/TklUmYgCWsFJHVW0cdYY2jWhQyiOrMxRA4AYI RSyg== X-Gm-Message-State: AOAM530ZKUaGnoPPVz7COPYg7fxyKVTm/END2e2cHZ9GbDXfYJXd0lzx kmDsOAgFS+IuUVGGS93VrglIqg== X-Received: by 2002:a17:907:160c:: with SMTP id hb12mr9439119ejc.652.1642504736785; Tue, 18 Jan 2022 03:18:56 -0800 (PST) Received: from leoy-ThinkPad-X240s ([104.245.96.239]) by smtp.gmail.com with ESMTPSA id h2sm5267548ejo.169.2022.01.18.03.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 03:18:56 -0800 (PST) Date: Tue, 18 Jan 2022 19:18:49 +0800 From: Leo Yan To: John Garry Cc: 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, Will Deacon , Mark Rutland , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH] perf test: Test 73 Sig_trap fails on s390 Message-ID: <20220118111849.GB98966@leoy-ThinkPad-X240s> References: <20211216151454.752066-1-tmricht@linux.ibm.com> <90efb5a9-612a-919e-cf2f-c528692d61e2@huawei.com> <20220118091827.GA98966@leoy-ThinkPad-X240s> <46d27f58-7732-3359-e0aa-090468a1cb22@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46d27f58-7732-3359-e0aa-090468a1cb22@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, On Tue, Jan 18, 2022 at 10:20:37AM +0000, John Garry wrote: [...] > > 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. > > > Do you know any other architectures which would have this issue? Or a > generic way to check for support? > > It's better to not have to add to this list arch-by-arch.. Yeah, it's ugly to add archs one by one. But I don't find an ABI can be used to make decision if an arch supports signal handler for breakpoint. Usually, it's architecture specific operations for signal handling, see the code [1]; simply to say, architecture needs to disable single step when call signal handler and restore single step after return from signal handler. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/x86/kernel/signal.c#n830 > > > And fails on my x86 broadwell machine: > > > > > > john@localhost:~/kernel-dev2/tools/perf> sudo ./perf test -v 73 > > > 73: Sigtrap : > > > --- start --- > > > test child forked, pid 22255 > > > FAILED sys_perf_event_open(): Argument list too long > > > test child finished with -1 > > > ---- end ---- > > > Sigtrap: FAILED! > > > john@localhost:~/kernel-dev2/tools/perf> > > It is a bit suprise for the failure on x86, as I remembered x86 platform > > can support signal handler with hw breakpoint. And from the error > > "Argument list too long", it should be a different issue from other > > archs. > > Yeah, I don't know what's going on here. Seems to there have incompatible issue. Maybe you could cleanup with "make clean" and then rebuild perf. Thanks, Leo