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 2B39EC433F5 for ; Tue, 18 Jan 2022 10:22:35 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:References: CC:To:Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nM20eQfMWAxt6+PcXHNIBnwooH0nWXWjZ1pa+yN7QT8=; b=YaE5qwJ4FdPITLw8PR8YIuX81E eh/FnQHwlEOvSLXuKaN+DaYhdM5Mv3x5s8lsvrd29DP+WrG5Iiv5+MkTF25LS3wPcAfo6IqEpY85S /DQ7d7xXJOcTqHiafwFHcOY7Jbj7xwhPgLsoJCJFQ8piZfWiAH7bqOgeD2JPvkBruNdvDFsLiiB2B r8OfHgAsvFZAkHO1IZrRIfxhHHLON98y6CcAB3rFK/KIeveNcceRT6f3x5Rnf6at4QPRSEYNlNM1V Av0vwtHghOEEEQSxVUkzS8oPAzdvE0nI77cxCsL23o923NJMm2RyktztwLvsqFr0I6uUcL9GrnCst XV04mv8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9lc4-0019lM-Ak; Tue, 18 Jan 2022 10:21:16 +0000 Received: from frasgout.his.huawei.com ([185.176.79.56]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9lc0-0019k2-17 for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 10:21:14 +0000 Received: from fraeml742-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4JdPqG3ZTPz67PwS; Tue, 18 Jan 2022 18:18:02 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml742-chm.china.huawei.com (10.206.15.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 18 Jan 2022 11:21:07 +0100 Received: from [10.47.94.101] (10.47.94.101) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 18 Jan 2022 10:21:06 +0000 From: John Garry Subject: Re: [PATCH] perf test: Test 73 Sig_trap fails on s390 To: Leo Yan CC: Marco Elver , Thomas Richter , , , , , , , , Will Deacon , Mark Rutland , "linux-arm-kernel@lists.infradead.org" References: <20211216151454.752066-1-tmricht@linux.ibm.com> <90efb5a9-612a-919e-cf2f-c528692d61e2@huawei.com> <20220118091827.GA98966@leoy-ThinkPad-X240s> Message-ID: <46d27f58-7732-3359-e0aa-090468a1cb22@huawei.com> Date: Tue, 18 Jan 2022 10:20:37 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20220118091827.GA98966@leoy-ThinkPad-X240s> Content-Language: en-US X-Originating-IP: [10.47.94.101] X-ClientProxiedBy: lhreml736-chm.china.huawei.com (10.201.108.87) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_022112_259715_D4B015B6 X-CRM114-Status: GOOD ( 17.20 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Leo, >> test child forked, pid 45193 > Both Arm and Arm64 platforms cannot support signal handler with > breakpoint, please see the details in [1]. Thanks for the info. >So I think we need > something like below: > ok > 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.. > > [1]https://lore.kernel.org/lkml/157169993406.29376.12473771029179755767.tip-bot2@tip-bot2/ > >> 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. Thanks, John _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel