Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5613006pxb; Thu, 20 Jan 2022 00:34:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwo65pqNwQvRC8aErqqR4OSd6n8PTJCVM6upYpPwUm3FrqJCxuiyOjwfwcdZHDw9P93rp0z X-Received: by 2002:a17:902:e749:b0:14a:5bca:7cd4 with SMTP id p9-20020a170902e74900b0014a5bca7cd4mr37200947plf.84.1642667679504; Thu, 20 Jan 2022 00:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642667679; cv=none; d=google.com; s=arc-20160816; b=DikYYo/jK24z1ZYM/2QG+avNV/Xw/r9xiAv1aI4W8PIBZXk6jsv98y/VGSBObcG1rG MQjeQJt+BiZQz0pDEme4paTmYY3x170/M0J9T61HwJVoyMR3HOWQm12LDRQGB+z3/BH4 FB81La/OfjOxHysKjVayY0S+INEDH8MWQogzbD+80fu6lGv4H916ixU4hCNdY5qp2mfs HNjgW8dQdJoNvWs+s2GZtxD0TBDa79VmbsRDQRRU7sEACqRiuAork7p6Zr9PMX39F2cK EVkJ5OkajpPrSEEq6K3CqcIvWxSz4sDGrDunappIVJcfpXmzJoHlqESsvobgo0qgA7jX ZoZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DYGWZCJtnfIL0hu+yeMxYhxnO6RLRB9uj48XOeWHa+E=; b=ATusbfARJSFrARF1wI7kSvmVXqfITLq7lp0ByK6b2FKXVj1D/24OpFWsLOS2XKSgGM m0xcisHmfDIAWQpsaxFGtY9Xf03cpuhkRubA7b3gfxFfjJ7m/3o6WJV3lp1wo5o4wwpg nusedK/SvZ3J+YdhDldo5i2Wp1xGAf2aJT0AEQ0+5LRIgN95W0mz7k7SAUnie0rq716a H7I4Nd5cLvSg6CnUt40vBFM23eoEAOi6cpIqHZPxGTgl80xW2kFVZPkKQNccKvs9qQbc eHok9ighl/+2lTsY4TpoC2ZEaKfLJzdkomW2OftE3WADtxqb8Qst/Wxi7/CUAzI4GPQi IDpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Q5fKoiAy; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l16si2469380plg.520.2022.01.20.00.34.27; Thu, 20 Jan 2022 00:34:39 -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=@google.com header.s=20210112 header.b=Q5fKoiAy; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240537AbiARLkS (ORCPT + 99 others); Tue, 18 Jan 2022 06:40:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237631AbiARLkQ (ORCPT ); Tue, 18 Jan 2022 06:40:16 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E9F4C061574 for ; Tue, 18 Jan 2022 03:40:16 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id z25-20020a0568301db900b005946f536d85so14742136oti.9 for ; Tue, 18 Jan 2022 03:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DYGWZCJtnfIL0hu+yeMxYhxnO6RLRB9uj48XOeWHa+E=; b=Q5fKoiAyjwUL1QxZfAc9NP29WkhOZF1YyACXXj9RueWaHi1dGO1SDcRVPhWHOX+uB4 Zzl98rgrLBmOmiDUIegtvVXAzoj0kSvJRAxElWdxHFsjPKHkRvqGiIr36L0h5TLs8iGG G79LUMDyEQRi16YMC2sKEFHp7PtaYkJP1UgQHZWdEjmx8SmT9X0Qem4bqV8TarcKleu+ 3O4IO9IZ5Mz8BFqCfanItjYI8K8LGOVgs08yAqtCaDjRA1sgv0N5Cwd328OOH4YS+vOa 9SjM4TPlpY+yljiyqoDppUXKc8ef0TJvhdySV0z2XXRRhhNNpJblm1GJ7xInxOCDvqE5 OHNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DYGWZCJtnfIL0hu+yeMxYhxnO6RLRB9uj48XOeWHa+E=; b=FyWrEcdBtuACxVcElIdNXFte9ZcOgQtJy/hifSipI5DkyJrCSLNRj0H94qyB30u9PQ OIuPJz/2Z6B80ZgVKFBLf3a4uJHm+g5+oTJsTcnyd0giR1EUBKU7LT451sG7W6meuuSA Cnbh5kNfH/41Bu4zGmTWfBlZgdRh/GodyCsfrX4CXvZdp9e2QNtcP8eG18StUQvfuRm7 YcVEfiuQvMfolOh5x6jG3GQkBjbETlho1S8ar6eQ5lux2DolbmbaV1B/ydGemJS42drR 3za4Ho9ZABWod/GkZszg4KTBo23hndHsjxi7+crdeaOd6X1E4ggHX7yAYzUWcHbE0+za 9k8w== X-Gm-Message-State: AOAM5328xhmc/1YGafmTg6428S6htflioJ/22ednd3av0qq6T5cvgmmB t8of8VNnUo+PU2+1P3C4DrJB+X1i4rq7ygjCBAK9Zw== X-Received: by 2002:a9d:58c7:: with SMTP id s7mr5124688oth.246.1642506015453; Tue, 18 Jan 2022 03:40:15 -0800 (PST) MIME-Version: 1.0 References: <20211216151454.752066-1-tmricht@linux.ibm.com> <90efb5a9-612a-919e-cf2f-c528692d61e2@huawei.com> <20220118091827.GA98966@leoy-ThinkPad-X240s> In-Reply-To: <20220118091827.GA98966@leoy-ThinkPad-X240s> From: Marco Elver Date: Tue, 18 Jan 2022 12:40:04 +0100 Message-ID: Subject: Re: [PATCH] perf test: Test 73 Sig_trap fails on s390 To: Leo Yan 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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Jan 2022 at 10:18, Leo Yan wrote: > > On Mon, Jan 17, 2022 at 03:39:10PM +0000, John Garry wrote: > > On 16/12/2021 15:48, Marco Elver wrote: > > > > + > > > > > On Thu, 16 Dec 2021 at 16:15, Thomas Richter wrote: > > > > In Linux next kernel > > > > Commit 5504f67944484 ("perf test sigtrap: Add basic stress test for sigtrap handling") > > > > introduced the new test which uses breakpoint events. > > > > These events are not supported on s390 and PowerPC and always fail: > > > > > > > > # perf test -F 73 > > > > 73: Sigtrap : FAILED! > > > > # > > > > > > > > Fix it the same way as in the breakpoint tests in file > > > > tests/bp_account.c where these type of tests are skipped on > > > > s390 and PowerPC platforms. > > > > > > > > With this patch skip this test on both platforms. > > > > > > > > Output after: > > > > # ./perf test -F 73 > > > > 73: Sigtrap > > > > > > > > Fixes: 5504f67944484 ("perf test sigtrap: Add basic stress test for sigtrap handling") > > > > > > > > Cc: Marco Elver > > > > Signed-off-by: Thomas Richter > > > Acked-by: Marco Elver > > > > > > Thanks, and sorry for missing this case! > > > > > > > I am finding that this test hangs on my arm64 machine: > > > > john@debian:~/kernel-dev2/tools/perf$ sudo ./perf test -vvv 73 > > 73: Sigtrap: > > --- start --- > > test child forked, pid 45193 > > 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. Thanks, -- Marco