Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1768776rdh; Tue, 26 Sep 2023 03:05:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFoTNPdePkJi8OhePI0iNpI4qTGS5WH+Qz7E1xz+getWQmyUhmNMnFTil2Ia3HmYrvlgJF4 X-Received: by 2002:a05:6a20:728c:b0:155:2359:2194 with SMTP id o12-20020a056a20728c00b0015523592194mr11412283pzk.46.1695722702052; Tue, 26 Sep 2023 03:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695722702; cv=none; d=google.com; s=arc-20160816; b=rqpPNh2QiHH/eedRGEFxQINzOTuCuKQe9y55IjNUvpfr+NmMNNCMUtEu/gLWEp5PAk 96tA2i380ygGLQw6oUn6fhxlzW4Z8B0RWaVVA6YPhbImTdefMG1GNMxDsWxbeDrldYEk QwARQK6eaafhL1HdIawl41WPypk38xxXw5Nkjt/Q6Ci4tA2JbbrG/9+zRC0Zs1VDA3y4 9/E1RS/o0/CQRsNgckc1HuCkzc9v9tc/P3UWdc40Z4xf0s3HdBvxFgzsPRlfhUcuiJBA NFMx7C/PDHhZL+xWZXwASMFILl8g8QN6hsCYL+4pqCSGnfsm4VOhRayDeEdIu2FzXz24 mYyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=YRrleeex828q75JmCNLzXDAVcVLBERWC6QvUePC8cFI=; fh=XcrYWQqgFO9lMX5UPhjKG6RtZGi+qRh5R0fNAjjR6H8=; b=jzYL/EzXn8/Awh7m5T7aibhobMua4co1VzVU3ARfwNLRRORsWjGnHNKJw4vcKrlAC2 0NsmKdABwozXwYLVBQA/8dPW5uV9Wid2vRw1E+8f9QCbqrB0/ytrMFOlNQHTaRptLFQe 0YIJecGTTXFBhW48MEY+f6yaO90g58KcpAo60+lr+KSM5xfCy5fLfNRudOxOtJnh1mZm CGIYoffJKx9KCu/aGHxCH+YVfrrRf5wLLEpQhb0vIJkXEQiwZ5V8/AqznGyg15d/Z2F9 R2nnfw4DJo6DfCKMyEUIbw7NMVH4ci/IPLJBODGcMK6OQqkC5iJ0YlNr11XE8Lb99LoH /hpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=uU92RTmR; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=SOO5xYa9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m7-20020a170902db0700b001bb3bcd05bbsi12792946plx.471.2023.09.26.03.05.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 03:05:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=uU92RTmR; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=SOO5xYa9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id BA84D807792B; Mon, 25 Sep 2023 22:56:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233516AbjIZF4F (ORCPT + 99 others); Tue, 26 Sep 2023 01:56:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjIZF4D (ORCPT ); Tue, 26 Sep 2023 01:56:03 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D2ADE9; Mon, 25 Sep 2023 22:55:56 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 9EADC32009B8; Tue, 26 Sep 2023 01:55:54 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 26 Sep 2023 01:55:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1695707754; x=1695794154; bh=YR rleeex828q75JmCNLzXDAVcVLBERWC6QvUePC8cFI=; b=uU92RTmRMEWMLlVvtx i4w6UTw8tlWqOYGhJjwrHDaHb1+iiK8ZLbHSDr8Q4kEuUdh7Fqc/6NB1YxL6uR9h gyrhhWHOWDAAUFvmklo5lI/PfiZ/3/IaMeVy1ddV0ItoW/lsBbE248i1moQpZRoh ZUGYxcjChlhQApofJXRv64crfcpZNSD/SPE6WXEnfBZo8T354gOaifxSQwbZaMAf b2Q/6tT0j/Ac77Qr/uC7DODJFfW3CfmDL+VFk/2MHxvVyx/4UXHEFSe2FuikFfsa KLwFMBDSRi6uxL78Ow6hzYRHxrbBNhEK1k7HR07B1GBfxL/JExwS6yatJrCydv9J kz5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695707754; x=1695794154; bh=YRrleeex828q7 5JmCNLzXDAVcVLBERWC6QvUePC8cFI=; b=SOO5xYa9rEjJjyK0tUjttPAxA+W6k gUEVsNGvgYOr+N8UFdrYoXqwRDja2UDLDBjFWqvuVb90C9Wo4uqKBno06aft3+lY g0dvJD9aNuxI97F/TMbehfcdo/zq0pk+xGIK6ZBiHSMCbws/n0Uf0WTrnBF2PXr3 dd9OW1e2H7q6OCbgbXzl88drAFBdiaWkc+vVd1bZ3efLVukyOs6NCwnyxP41W9Ld Y4A/rDcDFgtzUYzWSG26DQa0ltuXGcWAtydTI/m/zlhutV+MNx1vS1icRUAKqaHJ m6BKxxE+PrJMuhQLwr08fLmPq2myINs1m8h1UzfVAPDm3Oum16P3awwqQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelhedguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 71738B60089; Tue, 26 Sep 2023 01:55:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-957-ga1ccdb4cff-fm-20230919.001-ga1ccdb4c MIME-Version: 1.0 Message-Id: <2c4bcf65-69f1-4af6-8f80-fe23a4fb20ab@app.fastmail.com> In-Reply-To: References: Date: Tue, 26 Sep 2023 07:55:32 +0200 From: "Arnd Bergmann" To: "Zhangjin Wu" , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org Cc: "Palmer Dabbelt" , "Paul Walmsley" , paulburton@kernel.org, "Paul E. McKenney" , "Thomas Bogendoerfer" , "Willy Tarreau" , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , "Tim Bird" Subject: Re: [PATCH v1 3/7] DCE/DSE: Add a new scripts/Makefile.syscalls Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 22:56:03 -0700 (PDT) On Tue, Sep 26, 2023, at 00:38, Zhangjin Wu wrote: > When CONFIG_TRIM_UNUSED_SYSCALLS is enabled, get used syscalls from > CONFIG_USED_SYSCALLS. CONFIG_USED_SYSCALLS may be a list of used > syscalls or a file to store such a list. > > If CONFIG_USED_SYSCALLS is configured as a list of the used syscalls, > directly record them in a used_syscalls variable, if it is a file to > store the list, record the file name to the used_syscalls_file variable > and put its content to the used_syscalls variable. > > Signed-off-by: Zhangjin Wu I like the idea of configuring the set of syscalls more, but we should probably discuss the implementation of this here. You introduce two new ways of doing this, on top of the existing coarse-grained method (per syscall class Kconfig symbols). Both methods seem a little awkward to me, but are doable in principle if we can't come up with a better way. However, I'd much prefer to not add both the Kconfig symbol and the extra file here, since at least one of them is redundant. Do you have automatic tooling to generate these lists from a profile, or do you require manually writing them? Do you have an example list? Arnd