lkml.org 
[lkml]   [2010]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] dynamic_debug: allow to set dynamic debug flags right at module load time
    Date
    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
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2010-05-27 07:09    [W:3.594 / U:1.412 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site