Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5473718rdb; Sat, 16 Sep 2023 20:35:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQ1IyLypCdQtp4QHfEmQsHzrTmzlfV5NSEzm9/Xf0cwkkgMgPbMQZgmMOt4QYhR+5v1yyy X-Received: by 2002:a05:6a00:b91:b0:68f:b769:9182 with SMTP id g17-20020a056a000b9100b0068fb7699182mr14684446pfj.9.1694921708617; Sat, 16 Sep 2023 20:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694921708; cv=none; d=google.com; s=arc-20160816; b=qfvv7jCIsDXZVbANYx4vf8WQNF0ZygR7kOcQV8yzWDd11+39e+HCEvo2tH9dGNR9zL IPwOkW0tE9sa8TbyLCz3wXqHNaA2lOjXpv8Vpvkce7C9WI1caahDZ4CnA5bncGQKZS43 Y4gCC0vm0SctVhkXtL+uNw0nsjKCTBso2XHeiI75rAAJ8cDNE2+KF39/9RYlCRTmJro+ YeXMVnejdrie85JRP79qG6RkATU9Yv4aNsL6gaYxzLchNVONUPpu4UZuXzrM89Ik9L4t fOFw4Aa2+UC4Rg1Rur62sIA/vofld9p6akEYcZdMzWdUT/vZwxRb5/3e2b6NEcJiOXAD CYyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=cyBLiJMz+GrEc15y7auDop+5F3m/dTD+qspnaKys4lM=; fh=L93vb0Qntqku8wCaEoMlOIsQyOUzQvxXM4IlThGGpXI=; b=e3fz5Ry1LfyQOEoHFzvwl1jozLIGb72r0F/JBtRm4xg8O+iTDmDFyUUD7HEd4/O1+P J18hfKMw5DtKmvZl70/MoNPwbub++8vpO5PElOQ2JIzl8HU4P0KNlmUwORM4OL3cynSd D8brIM1cHpAVAT0ynsQ07DriY3hNMxv6kloqEr+yYKP5RV132awqn0UCx6P5SGmWMcl6 OoeHQxiGQl8NofTne7AIdgIqG3CqbNg49yerEPGDpynUy2XBEkAv3Y0wuBU0i7ExZp5C wiQUcPv4I3qBxR2BwgslTJE3VxlC5ZmNVRpvIgPDv1WIfcZCaPPDkulmf0vyXmG0b+nJ LPaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u26-20020a056a00099a00b0068a85532963si6048528pfg.160.2023.09.16.20.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 20:35:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 0F8AB82E47D1; Sat, 16 Sep 2023 20:35:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbjIQDWo (ORCPT + 99 others); Sat, 16 Sep 2023 23:22:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbjIQDWn (ORCPT ); Sat, 16 Sep 2023 23:22:43 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88891CC8; Sat, 16 Sep 2023 20:22:36 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 38H3MJrr010050; Sun, 17 Sep 2023 05:22:19 +0200 Date: Sun, 17 Sep 2023 05:22:19 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= 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: <20230917032219.GH9646@1wt.eu> References: <20230916-nolibc-initramfs-v1-0-4416ecedca6d@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230916-nolibc-initramfs-v1-0-4416ecedca6d@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 16 Sep 2023 20:35:04 -0700 (PDT) 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). 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. 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 ;-) Cheers, Willy