Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6496196rwl; Tue, 4 Apr 2023 13:49:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ag87GFzAbAoAZLsf9K2gt2FkoHUBBVqzzs830qrKoYlbz/FS1p58LZBI3R+R4TeTUCo8x/ X-Received: by 2002:a62:6204:0:b0:625:d697:c386 with SMTP id w4-20020a626204000000b00625d697c386mr2897931pfb.22.1680641367262; Tue, 04 Apr 2023 13:49:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680641367; cv=none; d=google.com; s=arc-20160816; b=SS1bk/ydZ7DqHpOFas/Uqf9AvkVf+NqFeUDcSSGuAeYIl7dNmt8mWGAhaMpAIsiWjf vt07eXnvKX16m5vuocizastxzoSfCl9pplsQ2TZzY18FeDuiD7N4CPTFSlGwXE+khiNc uqWQfzEA9g9+3mmy0k4mh4ETS15/8gCr87WGp1nJMRl53iIZ89i43otZgRAK8Pzs5ALt j5mKmpbCM6QcWPoR7scQHYtambUtoCBiRLQJgeSpoBh+CrGhzM0Gyw3Bo05nyriarhzK aZD/6LlHMuygnDOpatOvTFoXEOdqPnySn33NDUh34W1lv/hkq9YF6Kx+H+hpMQdwGac6 nJkA== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7w66lpN/GfN0g2H4kQmcNsXhvwsdlT/xSzYztHo8A/M=; b=ix+CJRAWVeY46UWCJVyZQJTQjUIHThWjACGSfrRKDFuv71KSs02nHBonbQ3B1EQ7fL CIZKTG6+mE8pfY5o760kQlWTf0fZ9f2Dga2hjbDZObt+/IRYMxDMVwtwzdzndfHYGj0i qn/rCvSJ8WXW2JlZB7RJoKFWsEKcygd7mfMs3sS7AxnAYHwVjInGQwNuYlVAxUpA5rXY EaetuND0hi7iT6eptUl7m+2MaIagi1SwzEFMd4vc0apLvjOvlrCoFL1uQl0Ee3lHhzYW jef5lsum91+EnoeJ24NRi8j3FqSyF3ztUO9r5EZZMvhTmHFCYqZ1E3vTC1NkvjdDYOjI 67Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VGTRIsNN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 145-20020a621997000000b00627fb127425si10989564pfz.288.2023.04.04.13.49.14; Tue, 04 Apr 2023 13:49:27 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VGTRIsNN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236235AbjDDUsj (ORCPT + 99 others); Tue, 4 Apr 2023 16:48:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232313AbjDDUsi (ORCPT ); Tue, 4 Apr 2023 16:48:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE849AC for ; Tue, 4 Apr 2023 13:48:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5E6F961F69 for ; Tue, 4 Apr 2023 20:48:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3D45C433D2; Tue, 4 Apr 2023 20:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680641316; bh=6hyqS48w9JFhBbwNOamIBNjav2KFQCOfy5UD/mrBZY8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=VGTRIsNNgviwMaBhbUjKq8r5r3oOIzifYVy8oqKqYx7EuZCYUOafZ0NSdGjPG8FLM beQcdn98zSS9V5hWE9kXw6Iiuhc+zAC5sHZrei0/Wy3EmSS1SABSFM3Zl1KhZDi4wK htQHka6VgE8Co6d/0j32IF5S+lOGdLd6zqjRoysgVShnyq3D012EyIlpePxWe0kVV6 d8che5sVVEPmKmaviILjr3xmfSJoyyFhkMNeKZyzWpxhOPfQ//eRRQJJoIKcozBA0/ ih3q4e6e381dg+6/D7ULk4gYuj1tJSI0doMbS3DYyb1h/NzYJDqfMVGadACZV540S2 Vib7l00WxYXpg== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 6D0B115404B4; Tue, 4 Apr 2023 13:48:36 -0700 (PDT) Date: Tue, 4 Apr 2023 13:48:36 -0700 From: "Paul E. McKenney" To: Willy Tarreau Cc: linux@weissschuh.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] tools/nolibc: add testcases for vfprintf Message-ID: <3d05e613-d7a7-4d21-ac4d-2450613b4836@paulmck-laptop> Reply-To: paulmck@kernel.org 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=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 04, 2023 at 10:46:23PM +0200, Willy Tarreau wrote: > 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. Thank you for confirming the test results! Thanx, Paul