From patchwork Fri Dec 8 04:58:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 175559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5245907vqy; Thu, 7 Dec 2023 20:58:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/NmbUnOyiHzy5QD62A0PDSIbYWX8Icn5pEfOJFu6DJKlAF3pFl+BO3kAKWG1KPVSOhT29 X-Received: by 2002:a25:b11d:0:b0:db5:3aa8:b25f with SMTP id g29-20020a25b11d000000b00db53aa8b25fmr3480313ybj.27.1702011509038; Thu, 07 Dec 2023 20:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702011508; cv=none; d=google.com; s=arc-20160816; b=GHwF0nHHl9LoELn4Uejl5KWSlPmnlV24dOiH6KSn4sxDRDx/BP23ETugFNwVghILW4 emqvxrqSvvk/llzd9nDCQFVFJ6UDDg0vBjFOjyLP6pFWqelZFSV0EDM+uzEpBPssNujG 4bjGu4ZPFe7ui7xD68T0K46TRebGgilTexh33W86Ojqu1tvU1AaII75Bew7/FKD1Mzu9 CO0PsFPgu5YiptdbjUsLLB2hakl/svREGdLlI1EB+pjvuQiuYtAkYwkXXpTtoZELuO6+ UDH0f2N5Uo/SKLO+dIhd+9FSVPr47Q9uQGeGuOSs1FUdywQXhRppo1MFDGZ/Px3oxNFt QmLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0pDBs5pdkEcQyn7uANovljW+bimgmkmJLhzTHRolNmc=; fh=2afNYNNhJkmYYqvmbZGhGyqc/onY8X0TPicn7mQEXUI=; b=ZVpfh6n1UlgEsgxP1uG5QQrIdbhloEFXRjN8l7ShQXIO19bAsm7zpGGfLJ2CrCH/iE KfyPzvsoEKjbotBu8zV/1CjwUbvGRC9Ta48L0thQQhRLFGS3g7kYGx+0ehH1BgJwl/Tl lD7RKrO1bbunx/TmBXFmoPb/63fWTnSWgxL49XmkjBwx1ihDLsqS7uHBS3Nl01gq99WC NgifxR+RpsSPMzbrb61o8eLvafCjmFNBzKA1b9grUBAuZVVSgVu3VZc19Az9bw/XiwsR ULWb11B1K/E8JO93D6l6w0NkDMeyCyItVWhBn9zkdp9yNxjer/6p2ka/3ssroBJDB17T P90g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lBx8QGMI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j4-20020a654304000000b005c661a0e6b5si860854pgq.750.2023.12.07.20.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 20:58:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lBx8QGMI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id B6E8180E73C2; Thu, 7 Dec 2023 20:58:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232077AbjLHE6S (ORCPT + 99 others); Thu, 7 Dec 2023 23:58:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjLHE6R (ORCPT ); Thu, 7 Dec 2023 23:58:17 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87C0A10F1 for ; Thu, 7 Dec 2023 20:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=0pDBs5pdkEcQyn7uANovljW+bimgmkmJLhzTHRolNmc=; b=lBx8QGMIrLylAcF3bKU8UUdVwx k0gRNbymp8WvD1+64JjV5wf1S/rdtj+S+od/N41rVJ5g3gSnP7Je8XNKRKDJuGA+De+A5xDf+PMF1 IyaQBFExQF/j6o9apIEGV9qhU2oScKUnnsc1qjucQZEpU07QY7XacOw4Q3Ml5rDbZoJJmwVbSQrRW Lhct4Pa9ys5l0H0Qh3Xyqe/ptensfRCSOdD3E2rBBsSyWu8MbxNLPub32nkU8wy0WgNA1lJ1jp2SQ oC5yc1eJxWY2IBizvCaFiOjd8QKPPWSJ7duhV9vX3TpxMPmIm3syMz89o+YeFIWwYhXbr27rFgiGK L9BJmZ4w==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rBSwP-00EitM-3D; Fri, 08 Dec 2023 04:58:22 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Andrew Morton , Mathieu Desnoyers , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng Subject: [PATCH] init/Kconfig: move more items into the EXPERT menu Date: Thu, 7 Dec 2023 20:58:19 -0800 Message-ID: <20231208045819.2922-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 20:58:27 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784688419922180659 X-GMAIL-MSGID: 1784688419922180659 KCMP, RSEQ, CACHESTAT_SYSCALL, and PC104 depend on EXPERT but not shown in the EXPERT menu. Move some lines around so that they are displayed in the EXPERT menu. Drop one useless comment. Change "enabled" to "enable" for DEBUG_RSEQ. Signed-off-by: Randy Dunlap Cc: Andrew Morton Cc: Mathieu Desnoyers Cc: Peter Zijlstra Cc: "Paul E. McKenney" Cc: Boqun Feng Reviewed-by: Mathieu Desnoyers --- init/Kconfig | 102 ++++++++++++++++++++++++------------------------- 1 file changed, 50 insertions(+), 52 deletions(-) diff -- a/init/Kconfig b/init/Kconfig --- a/init/Kconfig +++ b/init/Kconfig @@ -1688,6 +1688,56 @@ config MEMBARRIER If unsure, say Y. +config KCMP + bool "Enable kcmp() system call" if EXPERT + help + Enable the kernel resource comparison system call. It provides + user-space with the ability to compare two processes to see if they + share a common resource, such as a file descriptor or even virtual + memory space. + + If unsure, say N. + +config RSEQ + bool "Enable rseq() system call" if EXPERT + default y + depends on HAVE_RSEQ + select MEMBARRIER + help + Enable the restartable sequences system call. It provides a + user-space cache for the current CPU number value, which + speeds up getting the current CPU number from user-space, + as well as an ABI to speed up user-space operations on + per-CPU data. + + If unsure, say Y. + +config DEBUG_RSEQ + default n + bool "Enable debugging of rseq() system call" if EXPERT + depends on RSEQ && DEBUG_KERNEL + help + Enable extra debugging checks for the rseq system call. + + If unsure, say N. + +config CACHESTAT_SYSCALL + bool "Enable cachestat() system call" if EXPERT + default y + help + Enable the cachestat system call, which queries the page cache + statistics of a file (number of cached pages, dirty pages, + pages marked for writeback, (recently) evicted pages). + + If unsure say Y here. + +config PC104 + bool "PC/104 support" if EXPERT + help + Expose PC/104 form factor device drivers and options available for + selection and configuration. Enable this option if your target + machine has a PC/104 bus. + config KALLSYMS bool "Load all symbols for debugging/ksymoops" if EXPERT default y @@ -1752,57 +1802,12 @@ config KALLSYMS_BASE_RELATIVE # end of the "standard kernel features (expert users)" menu -# syscall, maps, verifier - config ARCH_HAS_MEMBARRIER_CALLBACKS bool config ARCH_HAS_MEMBARRIER_SYNC_CORE bool -config KCMP - bool "Enable kcmp() system call" if EXPERT - help - Enable the kernel resource comparison system call. It provides - user-space with the ability to compare two processes to see if they - share a common resource, such as a file descriptor or even virtual - memory space. - - If unsure, say N. - -config RSEQ - bool "Enable rseq() system call" if EXPERT - default y - depends on HAVE_RSEQ - select MEMBARRIER - help - Enable the restartable sequences system call. It provides a - user-space cache for the current CPU number value, which - speeds up getting the current CPU number from user-space, - as well as an ABI to speed up user-space operations on - per-CPU data. - - If unsure, say Y. - -config CACHESTAT_SYSCALL - bool "Enable cachestat() system call" if EXPERT - default y - help - Enable the cachestat system call, which queries the page cache - statistics of a file (number of cached pages, dirty pages, - pages marked for writeback, (recently) evicted pages). - - If unsure say Y here. - -config DEBUG_RSEQ - default n - bool "Enabled debugging of rseq() system call" if EXPERT - depends on RSEQ && DEBUG_KERNEL - help - Enable extra debugging checks for the rseq system call. - - If unsure, say N. - config HAVE_PERF_EVENTS bool help @@ -1817,13 +1822,6 @@ config PERF_USE_VMALLOC help See tools/perf/design.txt for details -config PC104 - bool "PC/104 support" if EXPERT - help - Expose PC/104 form factor device drivers and options available for - selection and configuration. Enable this option if your target - machine has a PC/104 bus. - menu "Kernel Performance Events And Counters" config PERF_EVENTS