Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1974099rdg; Sun, 13 Aug 2023 04:15:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaAMtkeafsS3WlP0qn3kDhb9om2G/1SQI46iS8K/0hHN059G9wsaDUhgSuQ895C/InD8y0 X-Received: by 2002:a05:6a00:4882:b0:687:976a:bf81 with SMTP id dk2-20020a056a00488200b00687976abf81mr11982260pfb.0.1691925339563; Sun, 13 Aug 2023 04:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691925339; cv=none; d=google.com; s=arc-20160816; b=Eky6u37cpVktaS1InCMJLGa6opvMGY9/mREHcSzHcGBPv8fTw/0VJKga4qxb4K9SYk kVICn8Uh0nHfauIDs7Jjgem341eDxg8WY8Ln0Z5mlqwodWxCMej+Ff50305T74DYrl14 3rWJJyGW5Uk/qqHmYta4/Ou5w5ini5/IBgOSAdSB/hFTIDy+LJuVrF4NWogRU7kewoL9 QXdaPStYwUK2Ym2gENrb89lgq2ePlIxgVRK0sID/BYCwIxt98NOd8KD7Od0D8fRUOgVK 4os1aRGovPXE56KFjRn8FstEPt8cS6//6PduD4D/E9HETNzOGoBsmIN2dERqPzkqEOUc rTbA== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rIE60E4Jcf2UMUMCPhJPRKDWR7MI4Nh/v4mJt6iR2Xg=; fh=uP0OOgJzp5V9ke3Ejrrm5Za+K8GfDZdk6kTc7v2KU90=; b=PYJnBcoV9ADxI24MJT0teA7rBsfS/7vCD88kQHFQHW7XV2gkKFqnWUDaVvSXxtbTLW NKgL0c0bX4cAo70fWeyqA90WweEwcPRf9FvhHxyEi+wO/v1ij6wxe1FUjyZcJDOlv5Mu YcphYVpDGajvcwjigS07c2Ik8Lru6LWzTACk+09rJyMMSUevMUWGg4BJJyP7x7n5Znfq F73oXTBAlj98Dl8TBBvYIJeJHa9o2MK/uFf9Lu6iSNt1Jmfpc+iN2HFACLwyEdbUSOog HRjr6v44nIsve58hnrFyqo2KFC0BKabMvbVTc60xHGyWmfhD6sIVTooW+YJZa+kgsxqk aZ3A== 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 i1-20020a63d441000000b00564514df65bsi6602410pgj.890.2023.08.13.04.15.25; Sun, 13 Aug 2023 04:15:39 -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 S230425AbjHMJIl (ORCPT + 99 others); Sun, 13 Aug 2023 05:08:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjHMJIk (ORCPT ); Sun, 13 Aug 2023 05:08:40 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 436EE10FA; Sun, 13 Aug 2023 02:08:42 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 37D98UQM008629; Sun, 13 Aug 2023 11:08:30 +0200 Date: Sun, 13 Aug 2023 11:08:30 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: david.laight@aculab.com, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tanyuan@tinylab.org, thomas@t-8ch.de Subject: Re: [PATCH v6 0/2] tools/nolibc: fix up size inflat regression Message-ID: <20230813090830.GF8237@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 Sat, Aug 12, 2023 at 05:49:36AM +0800, Zhangjin Wu wrote: > After these two patches, will send the proposed my_syscall() patchset > tomorrow, it can even further reduce more type conversions and therefore > reduce more binary bytes, here is a preview of the testing result: > > // with the coming my_syscall() patchset, sys_* from functionsn to macros > i386: 160 test(s): 158 passed, 2 skipped, 0 failed => status: warning 19250 > x86_64: 160 test(s): 158 passed, 2 skipped, 0 failed => status: warning 21733 (...) > It can also shrink the whole sys.h from 1171 lines to around 738 lines. Please, Zhangjin, please. Let's stop constantly speaking about potential future improvements when the present is broken. It needlessly adds a lot of noise in the discussion and tends to encourage you to explore areas that are incompatible with what is required to fix the breakage, and very likely steers your approach to fixes in a direction that you think is compatible with such future paths. But as long as existing code is broken you cannot speculate on how better the next iteration will be, because it's built on a broken basis. And I would like to remind that the *only* reason for the current breakage is this attempt to save even more code lines, that was not a requirement at all in the first place! Sure it can be fine to remove code when possible, but not at the cost of trying to force squares to enter round holes like this. The reality is that *some* syscalls are different and *some* archs are different, and these differences have to be taken into account, and if we keep exceptions it's fine. So let's only speak about this later once the issue is completely solved. Thanks, Willy