Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6495156rwl; Tue, 4 Apr 2023 13:48:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bZnQ2mMZJQmAlpiGjQxNFP8amW4sxAFWYqjV+UQcesGn1Nb2sen8fz4KPtWIydcyzmuCCh X-Received: by 2002:a05:6a20:7925:b0:d8:d16d:61d with SMTP id b37-20020a056a20792500b000d8d16d061dmr2563794pzg.37.1680641285886; Tue, 04 Apr 2023 13:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680641285; cv=none; d=google.com; s=arc-20160816; b=gYovJYSUKjIIvVFEmaNrY+CQ6Fd3QoWsxWFA3ciQmoKuKJuHuDzIYq1ReVXKeNTytn d7dqeVM2wNEPIYCkPVN0O+t0Vn+BPuUZw3/zI0bfEGu2LjMczG++K0dROr/tMf31Qu7E OuottyymjePtmKjMI2svfQOK7JRkmVFFlp6OaFTR/t+FYFwM5FMweFtEH7q1VJqc93rK dbA9l/VoU55cVt/qfqA5hFpukR8Qn2GxYsUG3Agnx8/VikO8HUtYFeuzH49j1z5tP1h3 HE87YKhwKYgnXzhBYLNEBPW/2CebhRdkRA26MEB+F+BRRSmM6/ZBjfSmKHzSefymqcUa Qizg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8j9edL20pnLv99x2/3cTYRs/p4BAAfZLYqNANqoQHbY=; b=gaCHvq/ule65e5CxQETuQs+RdbuLj9en1NzpOY6MZaznEyRE4zxt9yrg44xRD+jnAm aohSsypoLP3y+pfMucp1Hn96hV85NdIfMbbgp9xEafaSeg3VicUpv2KP9NhboI5yTVA1 gUfS21bU8uSKJAW0Q3WULDGGQ+6YmVwUdOyMCMUQ2st06Y3ioPiLKUxt3Baiv7v6i4Ld h49YI+x0D1Xi97OKUVg4P0hRGbUnHB3Nd6Nl0sqctWi7uz2yBSczH6acdThZZDl1Ih2r 2a6wjd3Dza/rpUnhnbRaJ+bfvN20IhmIvz8Af3GxhCCz7kdWr48vATOq6NGM9CUzRHUY dFcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 138-20020a630090000000b005141972cc58si2119374pga.280.2023.04.04.13.47.54; Tue, 04 Apr 2023 13:48:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236241AbjDDUqm (ORCPT + 99 others); Tue, 4 Apr 2023 16:46:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236087AbjDDUql (ORCPT ); Tue, 4 Apr 2023 16:46:41 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 980EB4C10 for ; Tue, 4 Apr 2023 13:46:30 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 334KkNIw015876; Tue, 4 Apr 2023 22:46:23 +0200 Date: Tue, 4 Apr 2023 22:46:23 +0200 From: Willy Tarreau To: "Paul E. McKenney" Cc: linux@weissschuh.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] tools/nolibc: add testcases for vfprintf Message-ID: References: <20230402184806.12440-1-w@1wt.eu> <530708ce-92af-41ad-84da-a691a518852b@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 04, 2023 at 01:40:32PM -0700, Paul E. McKenney wrote: > On Sun, Apr 02, 2023 at 02:24:04PM -0700, Paul E. McKenney wrote: > > On Sun, Apr 02, 2023 at 08:48:02PM +0200, Willy Tarreau wrote: > > > Hello Paul, > > > > > > Thomas added new tests for vfprintf(), which is a good idea because it > > > was a new implementation, we use it a lot in the tests so we'd rather > > > make sure it works! This required to implement support for memfd_create() > > > that is used to collect the output into a buffer, as well as to complete > > > a little bit the minimalistic FILE emulation with fileno(), fdopen(), > > > fflush() and fclose(). The result is neat and works equally on glibc and > > > nolibc. We just had to cheat on the pointer test because for NULL nolibc > > > prints "0x0" while glibc prints "(nil)" so we check 0x1 instead to avoid > > > this special case. > > > > > > Finally Thomas added a new target to the makefile to ease building the > > > test against the default libc. This should help detect incompatibilities > > > when new features are added. > > > > > > I've tested it locally with my libc and against all supported architectures > > > (userland tests only), and all tests passed. > > > > > > This can be added to your dev tree for 6.5 on top of the previous series. > > > > Looks like some useful code to make testing more comprehensive, thank > > you both! Queued and pushed. > > And finally tested: > > Kernel: arch/x86/boot/bzImage is ready (#7) > make[1]: Leaving directory '/home/git/linux-build' > 133 test(s) passed. > > CC nolibc-test > 133 test(s) passed. > > So good agreement between user and kernel, anyway. Usermode tests > note that two of the tests are skipped (chroot_root and link_blah). > Kernelmode tests all say "[OK]". This is perfect, thank you Paul! Eventually I'll clean up my test script I use to build and test for all archs, and commit it to help with such testing. thanks! Willy