Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5868997rdb; Sun, 17 Sep 2023 16:51:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7MpgMTpnAyaRVKNEWqoIAB7v6mfl+uHs+N4u4yB7cnNTfonQDBRtiOnAbL7wX4MJGEfGT X-Received: by 2002:a05:6a00:23d6:b0:690:422f:4f17 with SMTP id g22-20020a056a0023d600b00690422f4f17mr7371146pfc.4.1694994691723; Sun, 17 Sep 2023 16:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694994691; cv=none; d=google.com; s=arc-20160816; b=tIcO/tshIyUm8918TWYx7FA+xnxGQnzrLfVNPL1ERqRhNiNRovVF8fPUFKKtVS+zDS Ky9L4QkdX3sJ0nn053rxczRY+mVHJdMlfojGHbiox6WDg2kaO9Zc/uEA6y9pLzi3JfsC ubbtqKt1hRoVoEgO78lPLIkdnottrsXYdWSKVgKbcYDO968hG0VEr0ItA/vzRMoDwDtu lGSmO9ByZe55fRMIvi8QjKdDsB/b+yD1PUJK8dbfiaRC/YYpBnb+6G3Uxgvs1tPEKMvS 6NwGtFcXRaY3P3PNaGQP+1WR+RMHeWJpxOZItxEs3UAzJ4HAtGsWXVMOL5Iby6b+8lE+ q5Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/H0x5WFPmLYAKiLBIghqYR8orJLx1QnL+2Q+WNUFYT0=; fh=x23mVsna0kHvb+uw/F+xtefBBR4A3dlYrz8VHyMphVA=; b=na0Vp3xOBKnA9YsfHvZSrKiOe1zpyFRTQJqMZOm2I6fSldGtFcUBmx2Ij07aYX9u3l XIrV4jOAOs5cYe/WyLuoCyBV5SFcLW5icD+3RkaxB1mnho3HNOlGiE9f96nY4eHs9Vhv Xo3Q93wTMkI/9Sx8eLmpDl6QI7ba8DfMyZet3EtBBy8Qw50XdUVs/LpLRC4AaHDhgMfZ X+vdBzFmAcvIem3xELDVHs33svarxjvm/F0eQrvn77DMqe5M2/4irGvu+HI+JpYycYVS IrH2Z7YIASMZWoyt+vSBdDuvifO5DrvRRY74uYH6RIHPktgE41puNmKGSOaKW/sglDRv tmzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=FRCuTm82; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x14-20020a63170e000000b0057400cc5c45si3472650pgl.730.2023.09.17.16.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 16:51:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=FRCuTm82; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3E78280C7748; Sun, 17 Sep 2023 07:45:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232640AbjIQOpH (ORCPT + 99 others); Sun, 17 Sep 2023 10:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231960AbjIQOoh (ORCPT ); Sun, 17 Sep 2023 10:44:37 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1C17131; Sun, 17 Sep 2023 07:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1694961865; bh=BZcIuJ/PvMUbPWSxstQ1ZcUecybP+sAbJtOfRDESnSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FRCuTm82BJ+sdZSSgXCBZ29m8YRKQFtjy1k4g30Tj6oSZHzCEB/aMG5BxmqlJS/sU N1Qds28wxSv6TzDxhAVnELf5XpWwGVSgM9u7v7pU+kFoSu5ntRhObBrZ57S54riDM8 dp9XO/yMoVpABjTuKi8fmGy4IwGjjd6wTl4hyElU= Date: Sun, 17 Sep 2023 16:44:22 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Willy Tarreau Cc: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Shuah Khan , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH RFC 0/3] selftests/nolibc: avoid spurious kernel relinks Message-ID: <5200f33b-f4ba-4251-bee0-3ae7257e22d2@t-8ch.de> References: <20230916-nolibc-initramfs-v1-0-4416ecedca6d@weissschuh.net> <20230917032219.GH9646@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230917032219.GH9646@1wt.eu> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 17 Sep 2023 07:45:39 -0700 (PDT) On 2023-09-17 05:22:19+0200, Willy Tarreau wrote: > On Sat, Sep 16, 2023 at 09:13:26AM +0200, Thomas Weißschuh wrote: > > Currently the nolibc testsuite embeds the test executable into a kernel > > image with CONFIG_INITRAMFS_SOURCE. > > This forces a full kernel relink everytime the test executable is > > updated. > > > > This relinking step dominates the test cycle. > > It is slower than building and running the test in qemu together. > > > > With a bit of Makefile-shuffling the relinking can be avoided. > > That's pretty nice as indeed it still takes a while to relink it into > the kernel. I agree that for running nolibc-test in qemu we don't need > a unified image. However I've seldom used it on real hardware and I > find it significantly more convenient to use as a single image in this > case. Maybe we should just rename targets so that everything qemu-related > just uses two distinct images while a "unified-image" (or anything else) > still assembles the image into the kernel (BTW the help on the "kernel" > target still mentions initramfs). Sounds good, "unified-image" is a bit close to "unified kernel image" (UKI) which is similar but different. What about kernel-standalone? > Note that we don't need to modify anything in the build system to create > an initrd, I usually make them by hand using "cpio -o -H newc", we don't > need anything else here. I'd like to keep the build self-contained. But actually the kernel build will always build a minimal initramfs if CONFIG_BLK_DEV_INITRD is set. This config is needed for the nolibc testsuite in any case. The fact that the initrd is always build means that usr/gen_init_cpio is also always build. So we can add "kernel" as a prerequisite to "initramfs.cpio" and everything should work out without any buildsystem modifications. > Regarding rerun, I'd rather keep it for the sole reason that I've used > it to check for randomly failing errors (typically the timing-based > ones). It's convenient to run the same image 100 times if needed. I'm > not strongly attached to it, but if "make run" is slower, then we can > keep it. However if you really want to drop it, it also needs to be > dropped from the help message ;-) Fine for me, let's keep it :-)