From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 79CE821194D43 for ; Tue, 4 Dec 2018 12:47:07 -0800 (PST) Received: by mail-pf1-f196.google.com with SMTP id q1so8807419pfi.5 for ; Tue, 04 Dec 2018 12:47:07 -0800 (PST) Date: Tue, 4 Dec 2018 12:47:01 -0800 From: Luis Chamberlain Subject: Re: [RFC v3 11/19] kunit: add Python libraries for handing KUnit config and kernel Message-ID: <20181204204701.GT28501@garbanzo.do-not-panic.com> References: <20181128193636.254378-1-brendanhiggins@google.com> <20181128193636.254378-12-brendanhiggins@google.com> <841cf4ae-501b-05ae-5863-a51010709b67@ideasonboard.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Brendan Higgins , Kent Overstreet , Matthew Wilcox , Eryu Guan , Eric Sandeen , jeffm@suse.com, Sasha Levin Cc: brakmo@fb.com, dri-devel@lists.freedesktop.org, mpe@ellerman.id.au, linux-kselftest@vger.kernel.org, shuah@kernel.org, Rob Herring , Frank Rowand , linux-nvdimm@lists.01.org, richard@nod.at, Knut Omang , kieran.bingham@ideasonboard.com, Felix Guo , Joel Stanley , jdike@addtoit.com, Petr Mladek , Tim.Bird@sony.com, linux-um@lists.infradead.org, rostedt@goodmis.org, Julia Lawall , kunit-dev@googlegroups.com, fsdevel@vger.kernel.org, Greg KH , Linux Kernel Mailing List , Daniel Vetter , Kees Cook , joe@perches.com, khilman@baylibre.com List-ID: On Mon, Dec 03, 2018 at 03:48:15PM -0800, Brendan Higgins wrote: > On Thu, Nov 29, 2018 at 5:54 AM Kieran Bingham > wrote: > > > > Hi Brendan, > > > > Thanks again for this series! > > > > On 28/11/2018 19:36, Brendan Higgins wrote: > > > The ultimate goal is to create minimal isolated test binaries; in the > > > meantime we are using UML to provide the infrastructure to run tests, so > > > define an abstract way to configure and run tests that allow us to > > > change the context in which tests are built without affecting the user. > > > This also makes pretty and dynamic error reporting, and a lot of other > > > nice features easier. > > > > > > I wonder if we could somehow generate a shared library object > > 'libkernel' or 'libumlinux' from a UM configured set of headers and > > objects so that we could create binary targets directly ? > > That's an interesting idea. I think it would be difficult to figure > out exactly where to draw the line of what goes in there and what > needs to be built specific to a test a priori. Of course, that leads > into the biggest problem in general, needed to know what I need to > build to test the thing that I want to test. > > Nevertheless, I could definitely imagine that being useful in a lot of cases. Whether or not we can abstract away the kernel into such a mechanism with uml libraries is a good question worth exploring. Developers working upstream do modify their kernels a lot, so we'd have to update such libraries quite a bit, but I think that's fine too. The *real* value I think from the above suggestion would be enterprise / mobile distros or stable kernel maintainers which have a static kernel they need to support for a relatively *long time*, consider a 10 year time frame. Running unit tests without qemu with uml and libraries for respective kernels seems real worthy. The overhead for testing a unit test for said targets, *ideally*, would just be to to reboot into the system with such libraries available, a unit test would just look for the respective uname -r library and mimic that kernel, much the same way enterprise distributions today rely on having debugging symbols available to run against crash / gdb. Having debug modules / kernel for crash requires such effort already, so this would just be an extra layer of other prospect tests. All ideaware for now, but the roadmap seems to be paving itself. Luis _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm