From: Rusty Russell <rusty@rustcorp.com.au>
To: jim.cromie@gmail.com, jbaron@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [00/11] pr_debug during module initialization
Date: Mon, 19 Mar 2012 12:34:01 +1030 [thread overview]
Message-ID: <87aa3dxs6m.fsf@rustcorp.com.au> (raw)
In-Reply-To: <1331766126-11674-1-git-send-email-jim.cromie@gmail.com>
On Wed, 14 Mar 2012 17:01:55 -0600, jim.cromie@gmail.com wrote:
>
> This is 3rd revision of the dyndbg modinit patches, previously sent
> Dec 11. Patches 1-17/25 sent then were added to driver-core-next,
> this set reworks the remainder.
>
> It implements the "fake" module param approach proposed by
> Thomas Renninger, back in https://lkml.org/lkml/2010/9/15/397
>
> This set is on top of linux-next, since that includes Pawel Moll's
> initcall-level params patch. Im not using this feature, but I didnt
> know that when I started.
>
> Rusty Russell did a partial review of 2nd rev (sent off-list), here:
> http://thread.gmane.org/gmane.linux.kernel/1262934
> This revision incorporates my understanding of his feedback.
The module parts seem fine. The re-parsing of the commandline seems
weird: I'd really rather see something in unknown_bootoption(), like:
/* Unused module parameter. */
if (strchr(param, '.') && (!val || strchr(param, '.') < val)) {
+ /* Check for <module>.dyndebug fake param */
+ dyndebug_parse(param, val);
return 0;
}
(Note that param will be the whole line here, eg "foo.dyndebug=+p", with
val pointing just past the "=" (if any)).
Of course, that means the parsing happens at that "parse_args("Booting
kernel"...)" point in init/main.c, which may not suit.
Otherwise, all looks good!
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Cheers,
Rusty.
--
How could I marry someone with more hair than me? http://baldalex.org
next prev parent reply other threads:[~2012-03-19 2:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 23:01 [00/11] pr_debug during module initialization jim.cromie
2012-03-14 23:01 ` [PATCH 01/11] init: trivial tweaks to initcall_levels jim.cromie
2012-03-14 23:01 ` [PATCH 02/11] dynamic_debug: fix leading spaces jim.cromie
2012-03-14 23:01 ` [PATCH 03/11] dynamic_debug: replace if (verbose) pr_info with macro vpr_info jim.cromie
2012-03-14 23:01 ` [PATCH 04/11] dynamic_debug: change ddebug_query core param to dyndbg jim.cromie
2012-03-14 23:02 ` [PATCH 05/11] params: add param-name to parse_one's pr_debug() jim.cromie
2012-03-14 23:02 ` [PATCH 06/11] params: add 3rd arg to option handler callback signature jim.cromie
2012-03-14 23:02 ` [PATCH 07/11] dynamic_debug: make dynamic-debug work during module initialization jim.cromie
2012-03-14 23:02 ` [PATCH 08/11] pnp: if CONFIG_DYNAMIC_DEBUG, use pnp.dyndbg instead of pnp.debug jim.cromie
2012-03-14 23:02 ` [PATCH 09/11] dynamic_debug: add modname arg to exec_query callchain jim.cromie
2012-03-14 23:02 ` [PATCH 10/11] dynamic_debug: update Documentation/*, Kconfig.debug jim.cromie
2012-03-14 23:02 ` [PATCH 11/11] dynamic_debug: init with core_initcall, not arch_initcall jim.cromie
2012-03-19 2:04 ` Rusty Russell [this message]
2012-03-19 6:17 ` [00/11] pr_debug during module initialization Jim Cromie
2012-03-19 23:27 ` Rusty Russell
2012-03-23 20:27 ` Jason Baron
2012-03-24 0:12 ` Jim Cromie
2012-03-26 0:24 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aa3dxs6m.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=jbaron@redhat.com \
--cc=jim.cromie@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox