[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201005270705.44179.roman.fietze@telemotive.de>
Date: Thu, 27 May 2010 07:05:43 +0200
From: Roman Fietze <roman.fietze@...emotive.de>
To: Jason Baron <jbaron@...hat.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dynamic_debug: allow to set dynamic debug flags right at module load time
Hello Jason,
On Wednesday 26 May 2010 20:35:59 Jason Baron wrote:
> ... we want this to be runtime configurable.
> That is, we probably want this implemented as a module parameter, not as
> a compile time thing. something like: modprobe module verbose=1
Kind of
#define dynamic_pr_debug(fmt, ...) do { \
...
DEBUG_HASH2, __LINE__, \
verbose ? _DPRINTK_FLAGS_PRINT : _DPRINTK_FLAGS_DEFAULT}; \
...
But what if verbose isn't there?
Or something smarter inside dynamic_debug_setup() or
ddebug_add_module() looking for a module symbol or parameter with that
name?
If you'll give me a hint I could probably implement a proposal.
Roman
--
Roman Fietze Telemotive AG Büro Mühlhausen
Breitwiesen 73347 Mühlhausen
Tel.: +49(0)7335/18493-45 http://www.telemotive.de
Amtsgericht Ulm HRB 541321
Vorstand:
Peter Kersten, Markus Fischer, Franz Diller, Markus Stolz
Download attachment "signature.asc " of type "application/pgp-signature" (199 bytes)
Powered by blists - more mailing lists