[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4EB16EC3.8020209@am.sony.com>
Date: Wed, 2 Nov 2011 09:24:35 -0700
From: Tim Bird <tim.bird@...sony.com>
To: Jason Wessel <jason.wessel@...driver.com>
CC: David Decotigny <david.decotigny@...gle.com>,
Kroah-Hartman <gregkh@...e.de>,
Linus Walleij <linus.walleij@...ricsson.com>,
"Richard@...l2.fw-bc.sony.com" <Richard@...l2.fw-bc.sony.com>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
Lucas De Marchi <lucas.demarchi@...fusion.mobi>,
"kgdb-bugreport@...ts.sourceforge.net"
<kgdb-bugreport@...ts.sourceforge.net>,
Rusty Russell <rusty@...tcorp.com.au>,
Dmitry Torokhov <dtor@...are.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Michal Schmidt <mschmidt@...hat.com>,
"David@...l2.fw-bc.sony.com" <David@...l2.fw-bc.sony.com>,
Randy Dunlap <rdunlap@...otime.net>,
"Greg@...l2.fw-bc.sony.com" <Greg@...l2.fw-bc.sony.com>,
Satoru Moriya <satoru.moriya@....com>,
Sievers <kay.sievers@...y.org>, Decotigny <decot@...gle.com>,
"Kay@...l2.fw-bc.sony.com" <Kay@...l2.fw-bc.sony.com>,
Kennedy <richard@....demon.co.uk>
Subject: Re: [Kgdb-bugreport] [PATCH v2 3/3] param: make /sys/module/*/paramaters
optional
On 11/2/2011 6:30 AM, Jason Wessel wrote:
> On 11/01/2011 06:50 PM, David Decotigny wrote:
>> From: David Decotigny<decot@...gle.com>
>>
>> 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.
I would also like to see the size numbers. However, to address
Jason's concern, I think it's safe to assume that when someone is
getting this aggressive with system size, they'll start leaving debug
features on the floor (printk, kdb, etc.). What would be appropriate,
IMHO, would be to add a config dependency for kgdb/kdb and
NOT resurrect /proc items. There's work in progress in linux-tiny
to tackle /proc configurability, and adding back /proc interfaces
is likely to just have the issue resurface there.
-- Tim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists