lkml.org 
[lkml]   [2022]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v5 04/33] dyndbg: reverse module walk in cat control
    Date
    /proc/dynamic_debug/control walks the prdbg catalog in "reverse",
    fix this by adding new ddebug_tables to tail of list.

    This puts init/main.c entries 1st, which looks more than coincidental.

    no functional changes.

    Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
    Acked-by: Jason Baron <jbaron@akamai.com>
    ---
    lib/dynamic_debug.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
    index 8faf584f2f4b..7fb99492c16f 100644
    --- a/lib/dynamic_debug.c
    +++ b/lib/dynamic_debug.c
    @@ -970,7 +970,7 @@ int ddebug_add_module(struct _ddebug *tab, unsigned int n,
    dt->ddebugs = tab;

    mutex_lock(&ddebug_lock);
    - list_add(&dt->link, &ddebug_tables);
    + list_add_tail(&dt->link, &ddebug_tables);
    mutex_unlock(&ddebug_lock);

    vpr_info("%3u debug prints in module %s\n", n, dt->mod_name);
    --
    2.37.1
    \
     
     \ /
      Last update: 2022-08-05 23:56    [W:4.081 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site