Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp108944iof; Sun, 5 Jun 2022 22:39:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuoCQkzn0Eb72va2wVXbKmdu+Kfsf7q6iDJ8gmxXHP3X8kVmECazefptjT+MREEkcvUSUl X-Received: by 2002:a17:90b:4b0f:b0:1e8:53ac:ec51 with SMTP id lx15-20020a17090b4b0f00b001e853acec51mr11819300pjb.78.1654493971251; Sun, 05 Jun 2022 22:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654493971; cv=none; d=google.com; s=arc-20160816; b=0cHdi3oc4TIE3yJVVW7dn6HMk7fzWdsm6C7xpWVX5cncS6ojkwyPOm9U+hy8aam1he R24Vd6R2DtMda203b0rrqyGaLfA7EGbNOc+6BfowbPM8Rt3S/ApGbZlvonh0dDrwJUDe jTEz259lc0aMF58jEkAiRnCn2KVcxNLNnFE62aObTQW3cBegNGO+0uFJ/dgJyuWgXX/X quqyvkGQ59MDs57gAAfNG6++F2MvSSy588Q0kWD7MGHKoBf+29AQRRnsa+FhCzYME4tg 7faLJOGnbXoYA5SkMDxhPWdY9p7buN/vJmLjnM6Re9o3jqVmihOkLGyV9eBmeRR829g2 zQXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=I7mR/uhtcu+bQbRRFVDfpJIvch/5LDs7zrxCti3YIRI=; b=Fsny1umK359BKVO2+5pgF7UytH4GYtCjpoU0G6mH91Lyc7BZHXFz1I6b1aQI12N6hj 4UPY+PF2dfqz+79Mk3e+Ib9qQPq7vUr9/NO09RLzk87QamzzfW9P7JapajB5p4vC1QFQ gOl/QN+JcB7yyUsOIru7gj6Z1AyJ8ti5C3HdNvEYPY7dZwG2GpBYOnVg9OHfxTLjs7ZR KzzMubqh3gLAEcmKfqnqQs4A22ds+z9mVYhhTd4GBcrMJnV1hIbijTuJgX6JjAPpWfVY Uop/ere/4EZcuxnIE+3gTGeZOq0c4MYy0Ek1PzDZrwjHpqlvpz6iCcrGQJI1zwRJpL9S mfCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=NNf4nXrz; 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=svanheule.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s24-20020a17090aa11800b001e66ea39810si6270458pjp.37.2022.06.05.22.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:39:31 -0700 (PDT) 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=@svanheule.net header.s=mail1707 header.b=NNf4nXrz; 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=svanheule.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6D5982D53A2; Sun, 5 Jun 2022 21:44:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240212AbiFEGbM (ORCPT + 99 others); Sun, 5 Jun 2022 02:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237490AbiFEGbK (ORCPT ); Sun, 5 Jun 2022 02:31:10 -0400 Received: from polaris.svanheule.net (polaris.svanheule.net [IPv6:2a00:c98:2060:a004:1::200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E9C835ABF for ; Sat, 4 Jun 2022 23:31:08 -0700 (PDT) Received: from [IPv6:2a02:a03f:eaf9:8401:aa9f:5d01:1b2a:e3cd] (unknown [IPv6:2a02:a03f:eaf9:8401:aa9f:5d01:1b2a:e3cd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id B62E42E2DAF; Sun, 5 Jun 2022 08:31:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1654410666; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I7mR/uhtcu+bQbRRFVDfpJIvch/5LDs7zrxCti3YIRI=; b=NNf4nXrz2vtZ977c56YRXfFXf59dbJehQHAprCMAaUirsFDhqDZZUzt9bw2q44GncYRyC4 h8nHEGrQfzlRfdkLmrzIGRDa+xlxLgbbxO9FaY3oAgnqA3lAkmSZnj6Sd1eO5onTPL1VSx j/6lmaUlaVBuuIZVrchAMoXTSjcWa6+C1TBdAzekzcrupMsI4FIKet91oHWZYPxw2UpHDE qu30kLZOab7h/wJS3zffIINgrkEA8lUxSZYDnwn3DrGqVgY/xRzb5dZ38RiNJm/EmI11Vh Y8DoWPV3kgqXs7rCGFMWFbSd+dQenjC9IqTcAn9mi/BIf2GzFU90rWdh6wZE0w== Message-ID: Subject: Re: [PATCH v3 2/4] lib/test: Introduce cpumask KUnit test suite From: Sander Vanheule To: Peter Zijlstra , Yury Norov , Andrew Morton , Valentin Schneider , Thomas Gleixner , Greg Kroah-Hartman , Marco Elver Cc: linux-kernel@vger.kernel.org, Andy Shevchenko Date: Sun, 05 Jun 2022 08:31:05 +0200 In-Reply-To: <8b60c0d5add21b43dd75e92d48f2df011f63c6bf.1654410109.git.sander@svanheule.net> References: <8b60c0d5add21b43dd75e92d48f2df011f63c6bf.1654410109.git.sander@svanheule.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 (3.44.2-1.fc36) MIME-Version: 1.0 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 Sun, 2022-06-05 at 08:22 +0200, Sander Vanheule wrote: > Add a basic suite of tests for cpumask, providing some tests for empty > and completely filled cpumasks. >=20 > Signed-off-by: Sander Vanheule > --- > +static void test_cpumask_iterators(struct kunit *test) > +{ > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0EXPECT_FOR_EACH_CPU_EQ(test, &= mask_empty); > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0EXPECT_FOR_EACH_CPU_NOT_EQ(tes= t, &mask_empty); > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0EXPECT_FOR_EACH_CPU_WRAP_EQ(te= st, &mask_empty); > + > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0EXPECT_FOR_EACH_CPU_EQ(test, &= mask_empty); > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0EXPECT_FOR_EACH_CPU_NOT_EQ(tes= t, &mask_empty); > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0EXPECT_FOR_EACH_CPU_WRAP_EQ(te= st, &mask_empty); This should be one block of &mask_empty, and one block of cpu_possible_mask= . I'll fix this in v4 with other comments, or send an update tomorrow. Best, Sander