Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp244869imp; Tue, 19 Feb 2019 22:48:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ7njzJxhLm9A9jA8MTYtDRNjD4fmnsijfT+Is+KyWDY2NXy1OVCAlpDqTBchHH+r83/wiX X-Received: by 2002:a65:46cf:: with SMTP id n15mr28129670pgr.187.1550645315996; Tue, 19 Feb 2019 22:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550645315; cv=none; d=google.com; s=arc-20160816; b=IqbNfShCrrT+CYNQHEeKXtTYYtxRMyTtMgecTc3fH9vfih3r6QGetuQRTzSSYITfdW IvR5ggHNW6Fct0j1nPBqZbUFu5CyJZZBDKtVPlDWzcd7UcDBdKARnxAcylqX4TuENh5O yeiGjo3NBg1fAcOPxz0elMW8eWxav977EWJl9vo7EAMjWyj9h72EJbQ1n6OUH9XwU1im pHgvlLZKvQX3j3VmfocAtpxgtG+HR5FZ3mwhIC32Y6i2tSxpVZ7GijToAt1xmBcYzwQ0 K2sGft6QvDFAV54VZ3jdl94ouXsmJxAkkTvOj02t/7UDXQfJSPMXLxVS9/LpNFWQl/Sr FSVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ROb/RejqZ0N/E3dCv+QO9wYT6jcX40iiHO7okLpCa0s=; b=j8WIZ0ETdAKXAmKXGQY3cZBlSSdC7l5udNnKOHk49OpraEGOpAVqIYx0xFzi7QuwUy jj2ktFcoAHE/l1vXuxjJW/5udkI2q2g/FiYjp+GPpbi+x+oCO0AvVUmmpJO+SItVij/d a9hZZjmuCOkL1pYY41bIQCDikURFZc7k+zo0Rf+4ItKaOBxMmciQL8MkXb1I/6kLe63c 4dqqqODvNEfvfoK7EDf8CTpX7pgEYgfFnrYow8W44qq1U8/4YJEyAdWrtM85h4ksYhyY hb2IDuRUsO2p1cduUVYkNb5w5Y004yM+Y8Gon8kzIcHBhaymdNazxcVfSAqELpi7HpcV dy1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ua8MmsaL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si17757624pgh.591.2019.02.19.22.48.20; Tue, 19 Feb 2019 22:48:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ua8MmsaL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729805AbfBTGqX (ORCPT + 99 others); Wed, 20 Feb 2019 01:46:23 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37917 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726772AbfBTGqX (ORCPT ); Wed, 20 Feb 2019 01:46:23 -0500 Received: by mail-pl1-f196.google.com with SMTP id e5so11707828plb.5; Tue, 19 Feb 2019 22:46:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ROb/RejqZ0N/E3dCv+QO9wYT6jcX40iiHO7okLpCa0s=; b=Ua8MmsaLdC5TtFUunGkh0TrS07JPSDxbZIiqxycPe4wRv8on8IuYZC6lfzhbCcRUt5 RIrYJy5+P+f3RwiEqA6TQ+JV/jaT3bQ7EDS/8xwGfljyiN7Zk6KpQILU0oI0PFUvuENQ 9fW8apGOS3JK4e+0vdQ/bj1X//O/4t995wZu/swz4X9kigKrGwUhraZ/8/3J9f8JxCUF rHbhuDdEhC0ncJKswh29lSHqk9hM63H9rwSt/Gdf18dcfNy2merQUaOhl+wMaQeJ+aii c30PWj6veRUWM3n6YC2+KnkpDgU0g8Yz7jf1Y3RcF3cnmfEooYa6U+Hgi3NxMQOWmuQm IWOQ== 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=ROb/RejqZ0N/E3dCv+QO9wYT6jcX40iiHO7okLpCa0s=; b=a6G4n/mTWD01Q50Z0SsIwN7YzY35FA05AWGorBVvASUGVMCwstRmxa6NHvHdR+NTIS nHfG3Lr8VHJA+FEAFjmsWsYD5Jvpv991cAKME2qUkMoFap/bPEuKo18P9nCH4QIbYEzx +ctFIc1DysbbRQ5gT38FdmrGW9q18zBchGnzZRLIIhssmvYHTqFHU6+5YuHdiaGGnZAs fNqt/WAe7paGsyTQxW8qBS7VZBjihWWjB+wpUgcuGvgSJ+N/JSYOZwuoqT+j7hjHjzcD AO+57jtHv+mAd00WmkhlvAue1BjQRV6tvKQVeP9nR3n49TcF2czkM7NkBpESjYbPS3Om 3vLQ== X-Gm-Message-State: AHQUAuZmpNJmryB5EOwjx4Tegr8mYy7mLSVDW0ESeHjtVoiX+GpSwAaS SeFRPHoeJS3Ng2CMCoTHsQA= X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr33505388plb.70.1550645182508; Tue, 19 Feb 2019 22:46:22 -0800 (PST) Received: from [192.168.1.70] (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id 15sm26234874pfr.55.2019.02.19.22.46.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 22:46:22 -0800 (PST) Subject: Re: [RFC v4 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework To: Brendan Higgins Cc: Kees Cook , Luis Chamberlain , shuah@kernel.org, Rob Herring , Kieran Bingham , Greg KH , Joel Stanley , Michael Ellerman , Joe Perches , brakmo@fb.com, Steven Rostedt , "Bird, Timothy" , Kevin Hilman , Julia Lawall , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Linux Kernel Mailing List , Jeff Dike , Richard Weinberger , linux-um@lists.infradead.org, Daniel Vetter , dri-devel , Dan Williams , linux-nvdimm , Knut Omang , devicetree , Petr Mladek , Sasha Levin , Amir Goldstein , dan.carpenter@oracle.com, wfg@linux.intel.com References: <20190214213729.21702-1-brendanhiggins@google.com> From: Frank Rowand Message-ID: <4dff3b1a-7ded-7218-5325-3c397cc3c73e@gmail.com> Date: Tue, 19 Feb 2019 22:46:19 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/19 10:34 PM, Brendan Higgins wrote: > On Mon, Feb 18, 2019 at 12:02 PM Frank Rowand wrote: > >> I have not read through the patches in any detail. I have read some of >> the code to try to understand the patches to the devicetree unit tests. >> So that may limit how valid my comments below are. > > No problem. > >> >> I found the code difficult to read in places where it should have been >> much simpler to read. Structuring the code in a pseudo object oriented >> style meant that everywhere in a code path that I encountered a dynamic >> function call, I had to go find where that dynamic function call was >> initialized (and being the cautious person that I am, verify that >> no where else was the value of that dynamic function call). With >> primitive vi and tags, that search would have instead just been a >> simple key press (or at worst a few keys) if hard coded function >> calls were done instead of dynamic function calls. In the code paths >> that I looked at, I did not see any case of a dynamic function being >> anything other than the value it was originally initialized as. >> There may be such cases, I did not read the entire patch set. There >> may also be cases envisioned in the architects mind of how this >> flexibility may be of future value. Dunno. > > Yeah, a lot of it is intended to make architecture specific > implementations and some other future work easier. Some of it is also > for testing purposes. Admittedly some is for neither reason, but given > the heavy usage elsewhere, I figured there was no harm since it was > all private internal usage anyway. > Increasing the cost for me (and all the other potential code readers) to read the code is harm.