Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3112503rwd; Sat, 10 Jun 2023 01:31:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XHpLXAR9CNMe1VnsPQrBY2xii9KPApyh3ltcGqGgDrqOM/wBckWfyh7vxqqLB9UKmpZbT X-Received: by 2002:a05:6a20:a5a8:b0:10b:6b1f:c8c8 with SMTP id bc40-20020a056a20a5a800b0010b6b1fc8c8mr3506562pzb.31.1686385873463; Sat, 10 Jun 2023 01:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686385873; cv=none; d=google.com; s=arc-20160816; b=WJ2OBg/f5fppRaj693D8foC6OLIAixdj6YSC0FJxQh2eW3FGh+cJ3gf+M4qAghCoQ2 gUq5blHZXe46v5GgLFMQAd5Co+H1GCXQ/jX9SahPVL/k97yv5nxpoX3tvfIN2rZCF1BO BLQsOXYRExkvyUtLL1DP7EtwzecCSBIi7Dy1e138tFMQ/jMlCrIdMNSVgudz9scIt+0C 0iofkP8bLBntZ/+sbNPmqND2iVDUFlJDZO8CAXpo4lS4younk5QaN62jgQ8CKxGqVpAD Z1FJoyfMGYPJIxJxoPuSPlQpkXkQaU6Wt3Pz7GGI0hUcXoOPWxHcsw/+MlfPaNPEp/OD mvIQ== 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=jzTIRaOl9jbX28R9GdkJlkdU8aU4nOrXebsSuS/IoxM=; b=0wC6NjF4OadD3ie4y6ziNxWjv+FftBf+2o++C/4WUByhDVewSfxbHv1NqyrsI2ZwI3 RuWojrcSoYer10KClHj8u3vJfbtp4BdZrttqtm67dEX46gDczmjLUosy5N7ikQLQ3sux UXdO9RzJCP9eFYXAkF6SlRoucYo01AoDP+peN4izg243OYNIZq36WRcIIr1C+0KGsQf2 Bv4uNDdhpvIkdRCpJk1VHI/ra9OPdOKl4VBqdJCsOP2+C54yi344jw1bbmjbtcMnQ3gN pjiquzt9Ea4ovOEon8SWeXdZ1nkrn2MiMS9ZuT41r1W4jlxkHXzmLmSOhM+XUe11QBVE dcnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=h9+spU3p; 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 l197-20020a633ece000000b0052c419dc8d1si3965848pga.274.2023.06.10.01.31.00; Sat, 10 Jun 2023 01:31:12 -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=20221208 header.b=h9+spU3p; 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 S230137AbjFJIaE (ORCPT + 99 others); Sat, 10 Jun 2023 04:30:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234126AbjFJI3t (ORCPT ); Sat, 10 Jun 2023 04:29:49 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F33FA3C25 for ; Sat, 10 Jun 2023 01:29:43 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f7024e66adso16565e9.1 for ; Sat, 10 Jun 2023 01:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686385782; x=1688977782; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jzTIRaOl9jbX28R9GdkJlkdU8aU4nOrXebsSuS/IoxM=; b=h9+spU3pu0Hn5yqnPvA32x7NoTxQYkoTG5e5Q3ZKpQIRIN07Kz4F757IxVguIUAnVm kjKRx2Tm25171ub3jUKP1JfF65aLKky1/HjcealJgUXsTYCNlXeyUM1U2Ur14fmb0ysT L2V9D0LN8RSeP1StpIVUggB0zCWLBOHuUg+0w1BpEt4ZFAk2JBOHN5/03uhd65zDrpli 6Xm+Ga14xRtj3uKlw22QgVZiEBtBYvWmpWfew9AC+rFCpx4iIpXGZ81wTuYS+CDHKZJm 0vZ7XamkMvDqtdHUPEZVCicz/JL2wH1eZcy+Z2rzm25RxfX/2cltutsfdVlqpaxXt+50 CaGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686385782; x=1688977782; 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=jzTIRaOl9jbX28R9GdkJlkdU8aU4nOrXebsSuS/IoxM=; b=be21SxvqrxvXWXOItojcZ5ijXBe3RT5thst0Fx0RtgFl2TpvNMwkh/mCXvLE0NKDTS k+7ryUXc5Ag2WURWuCT+wutBlKQueIrhIjdumhV7jb4nFnFRXbusNiVhBrhYFQoCV91G g5nDur+kFadkDiRcRJBtje8t8i9QecEhSux4I1KYAKOkKOWqAaaoOH+swb1RcIwHVEBt a1BqSlGHPvEEEP627mPewuLoKG6pDi8/Lmxfse9Ze7nquE6Ki3AQkvw+GvuovBtOFl5T b5SCEjGikRJNJcmdc6DpDydOox5rHWiESTVO5/r9lSbfjoeyCQKhklRJnGyotIKnX5VF ZylQ== X-Gm-Message-State: AC+VfDyoxEtkWQq/YWxM+nvZL3w9ANLxWIUhVUGxQd7x4OfjzuWU2wR0 wGtTUdor9hVSBFusGcFXein+MaOH4AWTBGBG3roJIA== X-Received: by 2002:a05:600c:3d86:b0:3f1:70d1:21a6 with SMTP id bi6-20020a05600c3d8600b003f170d121a6mr79504wmb.0.1686385782535; Sat, 10 Jun 2023 01:29:42 -0700 (PDT) MIME-Version: 1.0 References: <20230610005149.1145665-1-rmoar@google.com> <20230610005149.1145665-6-rmoar@google.com> In-Reply-To: <20230610005149.1145665-6-rmoar@google.com> From: David Gow Date: Sat, 10 Jun 2023 16:29:30 +0800 Message-ID: Subject: Re: [RFC v1 5/6] kunit: memcpy: Mark tests as slow using test attributes To: Rae Moar Cc: shuah@kernel.org, dlatypov@google.com, brendan.higgins@linux.dev, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, keescook@chromium.org, linux-hardening@vger.kernel.org, jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000088e6b305fdc24924" 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, T_SCC_BODY_TEXT_LINE,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 --00000000000088e6b305fdc24924 Content-Type: text/plain; charset="UTF-8" On Sat, 10 Jun 2023 at 08:52, Rae Moar wrote: > > Mark slow memcpy KUnit tests using test attributes. > > Tests marked as slow are as follows: memcpy_large_test, memmove_test, > memmove_large_test, and memmove_overlap_test. > > These tests were the slowest of the memcpy tests and relatively slower to > most other KUnit tests. Most of these tests are already skipped when > CONFIG_MEMCPY_SLOW_KUNIT_TEST is not enabled. I assume the plan will be to eventually remove the CONFIG_MEMCPY_SLOW_KUNIT_TEST option and just rely on the "speed" attribute to filter these out. That has the disadvantage that the tests will still be built, but is probably the nicer long-term solution. I suppose we could remove it in this patch, too, but I suspect it makes more sense to have a deprecation period to make sure the attributes are working well. That being said, maybe add a note to the CONFIG_MEMCPY_SLOW_KUNIT_TEST help text to advertise this? > > These tests can now be filtered on using the KUnit test attribute filtering > feature. Example: --filter "speed>slow". This will run only the tests that > have speeds faster than slow. The slow attribute will also be outputted in > KTAP. > > Signed-off-by: Rae Moar > --- > lib/memcpy_kunit.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/lib/memcpy_kunit.c b/lib/memcpy_kunit.c > index 887926f04731..440aee705ccc 100644 > --- a/lib/memcpy_kunit.c > +++ b/lib/memcpy_kunit.c > @@ -551,10 +551,10 @@ static void strtomem_test(struct kunit *test) > static struct kunit_case memcpy_test_cases[] = { > KUNIT_CASE(memset_test), > KUNIT_CASE(memcpy_test), > - KUNIT_CASE(memcpy_large_test), > - KUNIT_CASE(memmove_test), > - KUNIT_CASE(memmove_large_test), > - KUNIT_CASE(memmove_overlap_test), > + KUNIT_CASE_SLOW(memcpy_large_test), > + KUNIT_CASE_SLOW(memmove_test), > + KUNIT_CASE_SLOW(memmove_large_test), > + KUNIT_CASE_SLOW(memmove_overlap_test), > KUNIT_CASE(strtomem_test), > {} > }; > -- > 2.41.0.162.gfafddb0af9-goog > --00000000000088e6b305fdc24924 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPnwYJKoZIhvcNAQcCoIIPkDCCD4wCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggz5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