Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp902032pxb; Thu, 17 Feb 2022 18:01:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkle4E+eVXZR1u5jy0niTXRyjYQgmvOWeloiKEyOM7HoVBjfs/77uXXniBPeBzKCgeFqxQ X-Received: by 2002:a17:902:c651:b0:14d:bd13:6ff5 with SMTP id s17-20020a170902c65100b0014dbd136ff5mr5318496pls.170.1645149673776; Thu, 17 Feb 2022 18:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645149673; cv=none; d=google.com; s=arc-20160816; b=bXfcndaI1oIGefuAJ60NlWJAWz1HnTMvwTEjT0Y7Lt6mVbkfLodtvdH0S8JTiY3z5C Q52E1zni0fCcpRS2BW4k9qNACSuePFf/c48+vs22N9iwvFntp9Xyeji2kxubMFyORD8K SNzEtAoygO42trbqpL/lMaqMk2gm8Q7+CduQ1XpZLTRHRi10vOBPW1qgT6EnXlurTMko mnSGqSAh0XX/FVPncs7EdSDkhvglX1yi/NAgPLUHBPrrrhfcldwIj7miD6CWIIfZ6CrZ ZCLGt4Wq58TtvSyx+jPLK5P4NJjMhg8n13vMDbzfNGkvsffsgSBpfbJnsh9xK5257qY9 2wTg== 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=ZDSkUfp9toni5mt9GhqILhie8mR19f4SRKJDHSNLJMQ=; b=Crk/HIhVAW2rFMaFCyMv5YLyaOoAvqEIAhu0v6MwhPzdWecDyR3BvoJmuY5yLGTPAl vryhFgF4kO0XiNIUjKivUETBT6vfIY/ZQVgGwrKmDZDrRbv41DVtd+ZT+BnqVzbXT581 jSSqbeeA1SzqYw+vTwep4Pq23dbfm83gveUX+F9Cb2f0qzFP9HFFHUJayhgEBcLNFaG0 072mZptubUTQF6C1Q4xfl7yeMLnjwCzdz05/e7AQ+6kyqtSh8J5HAcoC7XfjRrzQx18F h+knp+Wa4cTlgqKJVtIpuFMQSfpLsqKwnTrki5mVSyZ3CjilR2fjAoIYBgHB+zX0tyzs Fi0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=egfIW48o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d9si9288361pgd.403.2022.02.17.18.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 18:01:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=egfIW48o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6D2C31C7EA1; Thu, 17 Feb 2022 17:58:41 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231406AbiBRB6x (ORCPT + 99 others); Thu, 17 Feb 2022 20:58:53 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:53986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiBRB6v (ORCPT ); Thu, 17 Feb 2022 20:58:51 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 921381BBF62 for ; Thu, 17 Feb 2022 17:58:36 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id v5-20020a17090a4ec500b001b8b702df57so11074865pjl.2 for ; Thu, 17 Feb 2022 17:58:36 -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=ZDSkUfp9toni5mt9GhqILhie8mR19f4SRKJDHSNLJMQ=; b=egfIW48oBvJ/rLtSDNSipUVlWRgNK8wpWktEAmc/Pz+571EuPH93FuvLqvVMByQ5db HxtZ13ltXoICHbkwOBttZaBYSeCuox2CL3P4RAqZvDgpbPpaFuIF8QcVfmp9p+Y4VQpc mzA0G2mDcmnDkdl51jrsYO9slg6f8xE9971Xjsbuy4/LKM55y/CrCEgq2tbneTD/xBeK 3lC2cASpiz/4y7xNjRZljYqX0sfxnLI5TUGW/8WBeVgqCZoMhU1ieMHZSNWxYpx/+TzN St8Bj0xwfe32lJ1e+goTg/5mMQlIuZ4oZj8OJMq3iXzKrs2n9g7/mu280HPU3j2r6lV5 0Yaw== 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=ZDSkUfp9toni5mt9GhqILhie8mR19f4SRKJDHSNLJMQ=; b=H60m1F2gDCIlce07chtx0tTYMn//IXBi6bU15nkXoNafAZij6/DYVcJK/q9eXjtM/b FotCm75ms2cE1qS4COlo/fubH2F5OOeOD6q2m5Hoi8D8dSScJtfg6+xwWaOZ5O0Mq/G8 pupIy0Q5P1V2oU1Ctn6vE1Fdg8Ojh9rN9aM7XNBOEe4NGP3yho56TfiSivUNBx1mpQdI FcdpwnxocYJ3PkmA7cLT0hYZw/Mtjidchf6vTMKPeZEnVyHKww1y+8lXdBXNA5eTcKqY CaxXnqZMlZnjjtfb9mE3PAr5XHeKc++4AdMPanCBJ3zDgydj4CW5VbsJHPzOY0X21+Pj 4Yqg== X-Gm-Message-State: AOAM532jZI84kTWx+yNfR5tK88cuC2mOwzc+3br5+A4xW/D/0gFrsD91 U+kyTkVLi6j4EYgCTNRB5daHfQ== X-Received: by 2002:a17:90b:250f:b0:1b8:f257:c39 with SMTP id ns15-20020a17090b250f00b001b8f2570c39mr5924833pjb.135.1645149515932; Thu, 17 Feb 2022 17:58:35 -0800 (PST) Received: from leoy-ThinkPad-X240s (104.225.159.78.16clouds.com. [104.225.159.78]) by smtp.gmail.com with ESMTPSA id t15sm8956290pgu.13.2022.02.17.17.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 17:58:35 -0800 (PST) Date: Fri, 18 Feb 2022 09:58:28 +0800 From: Leo Yan To: Marco Elver Cc: John Garry , peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, jolsa@kernel.org, namhyung@kernel.org, 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, irogers@google.com, Thomas Richter Subject: Re: [PATCH] perf test: Skip Sigtrap test for arm+aarch64 Message-ID: <20220218015828.GA925833@leoy-ThinkPad-X240s> References: <1645114959-119064-1-git-send-email-john.garry@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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Feb 17, 2022 at 06:40:45PM +0100, Marco Elver wrote: > On Thu, 17 Feb 2022 at 18:34, John Garry wrote: > [...] > > >> -#if defined(__powerpc__) || defined(__s390x__) > > >> +#if defined(__powerpc__) || defined(__s390x__) || \ > > >> + defined(__arm__) || defined(__aarch64__) > > >> #define BP_ACCOUNT_IS_SUPPORTED 0 > > >> #else > > >> #define BP_ACCOUNT_IS_SUPPORTED 1 > > > > > > This is now equivalent to BP_SIGNAL_IS_SUPPORTED > > > tools/perf/tests/tests.h -- and different from the original > > > BP_ACCOUNT_IS_SUPPORTED (and makes me wonder why > > > BP_SIGNAL_IS_SUPPORTED wasn't just used from the beginning). Perhaps > > > just use BP_SIGNAL_IS_SUPPORTED. > > > > > > > We currently have BP_ACCOUNT_IS_SUPPORTED defined now in 2x locations: > > > > tests/sigtrap.c > > tests/bp_account.c > > > > bp_account works for arm64, and we don't want to skip that test. So, as > > long as the macro meaning is appropriate, we can reuse > > BP_SIGNAL_IS_SUPPORTED for sigtrap.c > > BP_ACCOUNT seems to say something about the "breakpoint accounting / > measuring" test. BP_SIGNAL is about the tests that want to use > breakpoints to generate signals. More general speaking, I think "BP_ACCOUNT_IS_SUPPORTED = 1" means an architecture can support breakpoint with perf_event. "BP_SIGNAL_IS_SUPPORTED = 1" means an architecture can support breakpoint to generate signals with using perf_event. So "BP_SIGNAL_IS_SUPPORTED = 1" is subset of "BP_ACCOUNT_IS_SUPPORTED = 1". > So it's very much appropriate to use BP_SIGNAL here if, as we have > discovered regardless how they're generated in response to > breakpoints, are broken on arm/arm64. On the day arm/arm64 decides to > fix signals, I'm assuming all tests being skipped with > BP_SIGNAL_IS_SUPPORTED can be re-enabled (or so we hope). Yeah, I agree that BP_SIGNAL_IS_SUPPORTED is better choice for sigtrap.c. Thanks, Leo