dyndbg: reverse module walk in cat control
JIRA: https://issues.redhat.com/browse/RHEL-28063 commit 2ad556f700430fe5b0ea5481c24bf3287e226897 Author: Jim Cromie <jim.cromie@gmail.com> Date: Sun Sep 4 15:40:41 2022 -0600 dyndbg: reverse module walk in cat control /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. Acked-by: Jason Baron <jbaron@akamai.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Link: https://lore.kernel.org/r/20220904214134.408619-5-jim.cromie@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Donald Dutile <ddutile@redhat.com>
This commit is contained in:
parent
5b63b372c7
commit
5eb2d23a0b
|
@ -974,7 +974,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);
|
||||
|
|
Loading…
Reference in New Issue