Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3355532rwl; Sun, 2 Apr 2023 06:04:05 -0700 (PDT) X-Google-Smtp-Source: AKy350a9yLfM4msQZlkfgZfczGhzXSDjjMJ00zk1o2lAVwBTVayvpkIWGd5gar4sERXjMYGUt4Lp X-Received: by 2002:a05:6402:455:b0:4bf:c590:3c57 with SMTP id p21-20020a056402045500b004bfc5903c57mr30181890edw.2.1680440644825; Sun, 02 Apr 2023 06:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680440644; cv=none; d=google.com; s=arc-20160816; b=jbXH4pcTIWSunCHB+VtXyFDxU0moYw+u1cuORp1QXahiY40DU/aWf9uwIGbK0kyNTX EM5GlPe2X9sxSJ4NiFbn7LfBVjIK/eKjhFEJJHJuXpOriXjch0gfBvGy152Ajr8OUpym Fn1KX7PE+Pcjk3CIaMrnIwOY7C7s03OVY+CGGpJFJnbiNFefZ8529P81bjoCNdrGbpm/ Cdvs4bRl+gKqwELRb9fLQjp+EcEwF9tyd83l6oZE7yC39jO5z/aDK4bHue26bkBBL30y M/qJwPV4fBuJvAdyYWc4xVUq2z11x/hrl8IMZfuppUdP91mBb4vMUq9yH72J2JgN6u8V 3lCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:dkim-signature:from; bh=Dla8f2hpfD+9v39teMpgeGqArqPCqk1c/lvvE1jNEBs=; b=UF/EeBicbNm5UppE+0sMBfmM8ZV45MyiNQRs/hNzRUbqUD+PZSnY57wGjeKxMQfgCQ qq5aD7Ehzj++4PgKIxcFM/gGhmMeEmWZDOKI5OW7ao5yRV1eAzQatn1tD36nwL0TjJAW Dmd76rZpn/CuU+Pso2nIph7GtUi4nWykB0N0QydXtbh0TZygHWu5yl0nLKKRrVVul1DH J4OqPcUnR2KXcZZGeaL5opXB7O48ozGiCsbf9Hx0aCj6cYI6hpM1H4uKVKhjKMFOjpSK 8NdCngqIGIvU5hYTClSTWhewVAMvQIetCay6foo7BEuxpATym3hQGvEYH3KxHaLyg6cl 9Luw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=ZJ0rL9Kn; 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 bm11-20020a0564020b0b00b004acb4f79971si6715599edb.191.2023.04.02.06.03.37; Sun, 02 Apr 2023 06:04:04 -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=@weissschuh.net header.s=mail header.b=ZJ0rL9Kn; 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 S230401AbjDBNCy (ORCPT + 99 others); Sun, 2 Apr 2023 09:02:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjDBNCx (ORCPT ); Sun, 2 Apr 2023 09:02:53 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89F8C10A89; Sun, 2 Apr 2023 06:02:52 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1680440570; bh=jGJ6EiY3Winw0q2v+5CI2620DGzPf3nK0gGxSUtKjAs=; h=From:Subject:Date:To:Cc:From; b=ZJ0rL9KnuyeHKFzSy7q0YfATKGDvwG6NhfNZIpo6eVMLSBpVxTC/HDGx35OJcpTVN dOt5Veh2RE3nJFjsJJHOHYywE8m/Td7Wf5A4ApNajFiKg8Ga1mmQutmr3cZCXu2+mU VqD3EJaUTfcoTVQBx2EA2WdHEsT5Kt4JZ5CuQk/A= Subject: [PATCH v2 0/3] tools/nolibc: add testcases for vfprintf Date: Sun, 02 Apr 2023 13:02:44 +0000 Message-Id: <20230328-nolibc-printf-test-v2-0-f72bdf210190@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAPR8KWQC/x2N0QqDMAwAf0XyvECNCLJfGXtoa9RAidJ0YyD++ 4KPd3DcCcZV2ODZnVD5Kya7OtCjg7xFXRlldgYKNISBJtS9SMp4VNG2YGNrGEaax5gy9f0EHqZ ojKlGzZun+inF5VF5kd99er2v6w9E92fReQAAAA== To: Willy Tarreau , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680440570; l=1057; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=jGJ6EiY3Winw0q2v+5CI2620DGzPf3nK0gGxSUtKjAs=; b=UQup0goPbq+gsa8fg/qhuwxM4NAL2GpAzORdVA+22mLKPuKAXEhZvGry+MQ+s8OtuZZwKJnAN XZhAyWjb6a+AYDgZmaX21o86VkiuSQ/jdwpVZiftKPAW1PgRVJ/8SQJ X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 vfprintf() is complex and so far did not have proper tests. This series is based on the "dev" branch of the RCU tree. Signed-off-by: Thomas Weißschuh --- Changes in v2: - Include for tests. - Implement FILE* in terms of integer pointers. - Provide fdopen() and fileno(). - Link to v1: https://lore.kernel.org/lkml/20230328-nolibc-printf-test-v1-0-d7290ec893dd@weissschuh.net/ --- Thomas Weißschuh (3): tools/nolibc: add wrapper for memfd_create tools/nolibc: implement fd-based FILE streams tools/nolibc: add testcases for vfprintf tools/include/nolibc/stdio.h | 60 +++++++++++---------- tools/include/nolibc/sys.h | 23 ++++++++ tools/testing/selftests/nolibc/nolibc-test.c | 78 ++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 27 deletions(-) --- base-commit: a63baab5f60110f3631c98b55d59066f1c68c4f7 change-id: 20230328-nolibc-printf-test-052d5abc2118 Best regards, -- Thomas Weißschuh