Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp183065rwi; Wed, 2 Nov 2022 10:40:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7EJtbkStsLf5sS7H7CboS2xHXrImAXqonmFdsNNgOL4wEIhLrXl6Fe3P6v264hlJvPzUoV X-Received: by 2002:a63:5d12:0:b0:46e:cd38:3f76 with SMTP id r18-20020a635d12000000b0046ecd383f76mr22072871pgb.64.1667410827672; Wed, 02 Nov 2022 10:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667410827; cv=none; d=google.com; s=arc-20160816; b=o9P46TmTl22LQ+L5J2jHjEMDuAzMbRtTvl29v6ndvJxX5MvXXkLVDUiFeRwbCh4w63 G7yfR3y6QGUBRSr/KpXV3XNRrTRHYqkiEwRDGeabXpQu4mT6kDpgq+pEJiypc9tOSHg3 II8tVAj/sQTJyEO2p5fxdRUedmcJznwnE6uopee2WP3kvo/gZ8IG2TkK7jFGMhy/dwjB 3G5Va7iQ4KVj2s3t4ItsDtE0qOX20Z8V6YuFdGZFAEgv+Y7pVIaxcGrfdlFG3KuEnYii m12Hbhue9R0Lg33edKT6lpeqUHAdI+uofAv/utQ8REVdLKBcnl2/qRbGHRZOJBBG6K90 p3qQ== 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=B7ABouFgHj5ByNLmtwAswNa0h/Rt+M2oBytR/Rw8uLA=; b=hQyS//S3vN9JDK5feBEa/HMNL0JaoFSvrCbJpCiihWuubI00M+9zHkx1GeE/cheQmn yYiU0eadqjZXzCgR1Bs0uxJGGGI54hiCwJrY3o3L5LKshqv2QqTHb3xbgD/V+XwsEfCB zlWDF7tPQz41m4dLPL7OpXPGgS13d7MiKyJmw1Y8ZrBuaPYJ5E2/54q8M7vpNowLHGBH +/RAU+dRvBnjFfTfDPSIhJrogNvnTdeUSYEER8Bay1ftLHHCY/aQuFuKiTH69asnKqHi R8B4W242kDLBOty7wBRJUhkiMTiR7zCONHIn8Ik8Lt7Rcbiz1wlsDiWoNmjncIwMCbJP IQdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=QpvQxcSU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a654c03000000b0046f33e40222si15626687pgq.669.2022.11.02.10.40.13; Wed, 02 Nov 2022 10:40:27 -0700 (PDT) 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=@google.com header.s=20210112 header.b=QpvQxcSU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231404AbiKBRib (ORCPT + 98 others); Wed, 2 Nov 2022 13:38:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231237AbiKBRiS (ORCPT ); Wed, 2 Nov 2022 13:38:18 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BDFD2E9CB for ; Wed, 2 Nov 2022 10:38:17 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id a13so27640637edj.0 for ; Wed, 02 Nov 2022 10:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=B7ABouFgHj5ByNLmtwAswNa0h/Rt+M2oBytR/Rw8uLA=; b=QpvQxcSUTA1O6xF55mulqkLaZsShG+Sff81BNMiM9v5YKPDWuzOnTREHmMnu+iTF/D w/dbC1a2HGnnuyux7lkTNV2qaXQWqv7qBl8VEJUfj+n/upmlt6Ja2PdDrNIA8WISq9mS UHJstI54PIB7jAzDPZkswyD/xookUkhC7RM/jFEc/bvGK6oNv8ky6RfS+6VkFvJHeq5w 3RT+nYj4MsWdM4hyCEFipLfFd8+DL8nDnF7NMzzoiojb00OFIhutrGya7HsVvz/HQCO6 4HFUlULQAkvmNX+p0BBBKYUeoVx8crQlt5JmxjWOy3OkYVOTmA8zIGX5atwpKzldYhgW g5VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B7ABouFgHj5ByNLmtwAswNa0h/Rt+M2oBytR/Rw8uLA=; b=s42d8I+sj8alJEGOJ6X47WohVkRH94QzGjZmMU7Xwz29ZCJUi4rB6NaC6p9vB8SIO6 FfNFVCHogZQzeYsLytHfHninZlqA/41OBny0xHbPY7UjOrLxbvsDzi12OLWy4jdq4tdf 1MBiDr06pyLWswj2bc+lKnHVhVLani0GdTPD1bKL3t/pPcR7m+dR0I2J0GhVaTz7LN/S qzc6c/D9+1S8mJxOq2IAOh044IBQbsO599aKxpHnBGfFXVoiLnYZBuMXB2kImrhA1Mvm BUCe2jAvNhCaF44vJ63VkTTtwsMxJIYZWjutRToTQHxi22nXnvVkp0zzQNx8VYg3DuuU POKw== X-Gm-Message-State: ACrzQf1o6jE0QKDcblpkBEA9+gxRDoEb8zTBdjA8/LMp0V5EJQDZ9Tmz Qk92/UhihLIK22iBuzdnhd+o6FziyCxmmBOzJZx1iA== X-Received: by 2002:a05:6402:d0b:b0:458:a244:4e99 with SMTP id eb11-20020a0564020d0b00b00458a2444e99mr26154062edb.46.1667410695620; Wed, 02 Nov 2022 10:38:15 -0700 (PDT) MIME-Version: 1.0 References: <20221026141040.1609203-1-davidgow@google.com> In-Reply-To: From: Daniel Latypov Date: Wed, 2 Nov 2022 10:38:04 -0700 Message-ID: Subject: Re: [PATCH] perf/hw_breakpoint: test: Skip the test if dependencies unmet To: Marco Elver Cc: David Gow , Peter Zijlstra , Ingo Molnar , Dmitry Vyukov , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, Brendan Higgins , kasan-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, Nov 2, 2022 at 3:23 AM Marco Elver wrote: > > Hi David, Daniel, > > On Wed, 26 Oct 2022 at 20:31, Daniel Latypov wrote: > [...] > > > - return -EINVAL; > > > + kunit_skip(test, "not enough cpus"); > > > > The only minor nit I have is that I'd personally prefer something like > > kunit_skip(test, "need >=2 cpus"); > > since that makes it clearer > > a) that we must only have 1 CPU by default > > b) roughly how one might address this. > > > > Note: b) is a bit more complicated than I would like. The final > > command is something like > > $ ./tools/testing/kunit/kunit.py run --arch x86_64 --qemu_args='-smp > > 2' --kconfig_add='CONFIG_SMP=y' > > > > But that's orthogonal to this patch. > > Was there going to be a v2 to address (a), or is this patch ready to > be picked up? > > I assume (unless I hear otherwise), this patch shall also go through -tip? Just noting for the record: I'm totally fine with this version going in, esp. if Peter is already planning on picking it up. This patch makes it so `kunit.py run --arch=x86_64` doesn't have test failures, so I don't want it delayed due to just my small nit. Daniel