From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06859C2D0A8 for ; Mon, 28 Sep 2020 22:41:55 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 706C323A50 for ; Mon, 28 Sep 2020 22:41:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WpOlbRfA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 706C323A50 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C1B74865B0; Mon, 28 Sep 2020 22:41:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VFp4oWMJai81; Mon, 28 Sep 2020 22:41:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 31D4086519; Mon, 28 Sep 2020 22:41:52 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E617D1BF278 for ; Mon, 28 Sep 2020 22:41:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DEC0086519 for ; Mon, 28 Sep 2020 22:41:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pPFgqE+-Cknu for ; Mon, 28 Sep 2020 22:41:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-il1-f194.google.com (mail-il1-f194.google.com [209.85.166.194]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2D97886508 for ; Mon, 28 Sep 2020 22:41:50 +0000 (UTC) Received: by mail-il1-f194.google.com with SMTP id v13so779621ilc.7 for ; Mon, 28 Sep 2020 15:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gaA/nbho2rHBM2XGAt+fqZDqrrCyGQoKDIGncDoowiY=; b=WpOlbRfAI9e8II+dnFUMmLCr028LWtZq3VDo3e7fgu588x0zs7KTTS1rPIT60wbAGy cFwY0h5dO4zkUJdnxSGUKs+097/h1H6C3mMVF+vw66IPMyv0pyTPefuI3b/L1Te3OJTD 5HSxT4otUXABTWMa/ya8prB3WhIkjEBLxYMM4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gaA/nbho2rHBM2XGAt+fqZDqrrCyGQoKDIGncDoowiY=; b=VEEh/3cNDyT07U8n5GlVRDR+R8Kz+DUx7613zClRegCrv26XIDGy35qXBMXi864Nzf yeiMdBwHi9XHpscVmKnLKRW8+y0EslgcyjHxyY/L7ntYs+H93p5Rrx97V1AcAe/fdos2 99oGXkmwgnNaqUvQXp/cYMhfgZgMCfqQLzn6+yyTRp3HwTqvmMRNDV8HNKDLAvxAvRO+ 2mdt7JX9q+Z5Bv5Xln5oVKIGzT5DMJUvf+/24iFWIewxUiaZuehDce6VAeFHIGE+Bif6 MTWSZsZ4a5f19NRv19AxDGLnlOgXt/tZ1MsqooIlVfWk8otzZtbovZ07XJDoYJrsMxmm NmTA== X-Gm-Message-State: AOAM533GyAPEiMLDTlYByNBOws7C3b6sjV2oMO7djwsy5puZe74aTFYz tCsgOAHh0h/aL50RlTSedt2Uqw== X-Google-Smtp-Source: ABdhPJy542a1CRGETx+C2//Kh61RETA39sKIv4QHpJwtOuYxcYdasZxM/JVddvpjSYaGDww7kJ0Sww== X-Received: by 2002:a92:8452:: with SMTP id l79mr459458ild.222.1601332909461; Mon, 28 Sep 2020 15:41:49 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id j1sm1334685ilq.74.2020.09.28.15.41.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2020 15:41:48 -0700 (PDT) Subject: Re: [PATCH 00/11] Introduce Simple atomic and non-atomic counters To: Kees Cook References: <202009260923.9A2606CFF6@keescook> From: Shuah Khan Message-ID: <3929a023-eb7a-509c-50e1-ee72dca05191@linuxfoundation.org> Date: Mon, 28 Sep 2020 16:41:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <202009260923.9A2606CFF6@keescook> Content-Language: en-US X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: rafael@kernel.org, linux-kselftest@vger.kernel.org, joel@joelfernandes.org, rric@kernel.org, shuah@kernel.org, devel@driverdev.osuosl.org, minyard@acm.org, corbet@lwn.net, surenb@google.com, linux-doc@vger.kernel.org, linux-acpi@vger.kernel.org, lenb@kernel.org, tkjos@android.com, arnd@arndb.de, bp@alien8.de, Shuah Khan , openipmi-developer@lists.sourceforge.net, mchehab@kernel.org, maco@android.com, christian@brauner.io, linux-edac@vger.kernel.org, tony.luck@intel.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, arve@android.com, james.morse@arm.com, hridya@google.com, johannes@sipsolutions.net Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" On 9/26/20 10:29 AM, Kees Cook wrote: > On Fri, Sep 25, 2020 at 05:47:14PM -0600, Shuah Khan wrote: >> 7. Verified that the test module compiles in kunit env. and test >> module can be loaded to run the test. > > I meant write it using KUnit interfaces (e.g. KUNIT_EXPECT*(), > kunit_test_suite(), etc): > https://www.kernel.org/doc/html/latest/dev-tools/kunit/ > > Though I see the docs are still not updated[1] to reflect the Kconfig > (CONFIG_foo_KUNIT_TEST) and file naming conventions (foo_kunit.c). > I would like to be able to run this test outside Kunit env., hence the choice to go with a module and kselftest script. It makes it easier to test as part of my workflow as opposed to doing a kunit and build and running it that way. I don't mind adding TEST_COUNTERS to kunit default configs though. thanks, -- Shuah _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel