From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755630Ab1KBNcL (ORCPT ); Wed, 2 Nov 2011 09:32:11 -0400 Received: from mail.windriver.com ([147.11.1.11]:61750 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213Ab1KBNcJ (ORCPT ); Wed, 2 Nov 2011 09:32:09 -0400 Message-ID: <4EB145FB.70906@windriver.com> Date: Wed, 2 Nov 2011 08:30:35 -0500 From: Jason Wessel User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: David Decotigny CC: Randy Dunlap , Rusty Russell , , , , Greg Kroah-Hartman , Michal Schmidt , Richard Kennedy , Linus Walleij , Dmitry Torokhov , Kay Sievers , Lucas De Marchi , Satoru Moriya , David Decotigny Subject: Re: [PATCH v2 3/3] param: make /sys/module/*/paramaters optional References: <4cfeb61114204047567a77acf5895cb56b745460.1320191327.git.david.decotigny@google.com> In-Reply-To: <4cfeb61114204047567a77acf5895cb56b745460.1320191327.git.david.decotigny@google.com> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/01/2011 06:50 PM, David Decotigny wrote: > From: David Decotigny > > With this patch, we allow systems that don't want to pay the price for > /sys/module/*/paramaters to be compiled without that feature. This > abiltity can in turn encourage module developers to expose more of > their parameters with fewer hesitations (eg. memory concerns, etc.); > this is desirable to help debugging/auditing of live (larger) systems. > > The new knob to control that is CONFIG_SYSFS_MODULE_PARAM available in > Kconfig in expert mode: File systems / Pseudo filesystems / sysfs file > system support / Module parameters in sysfs. It is enabled by default, > keeping /sys/module/*/paramaters/ available as before. > > As an illustration, on my copy I see 1658 module_param() macros with > perm == 0: most of these could be exposed to user (perm != 0). Speaking as an embedded developer who works on very small systems that you can still debug, I am really curious what you actually save here? For dynamic kgdb/kdb this patch is a death sentence. It would make us have to resurrect the procfs entries for the control point. There is no possible way to dynamically turn kgdb on and off at all if you remove the /sys/module/kgdboc/parameters/kgdboc entry, and this is certainly something where the typical use case is dynamic enablement. Jason.