]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86: Move call to print_modules() out of show_regs()
authorJan Beulich <JBeulich@suse.com>
Mon, 18 Jun 2012 10:40:04 +0000 (11:40 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 20 Jun 2012 12:33:48 +0000 (14:33 +0200)
Printing the list of loaded modules is really unrelated to what
this function is about, and is particularly unnecessary in the
context of the SysRQ key handling (gets printed so far over and
over).

It should really be the caller of the function to decide whether
this piece of information is useful (and to avoid redundantly
printing it).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/4FDF21A4020000780008A67F@nat28.tlf.novell.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/dumpstack.c
arch/x86/kernel/dumpstack_32.c
arch/x86/kernel/dumpstack_64.c

index 87d3b5d663cdce1cd2f02a172fcf55221ef9275d..ae42418bc50f23f83d92f68e4e771daf36652978 100644 (file)
@@ -271,6 +271,7 @@ int __kprobes __die(const char *str, struct pt_regs *regs, long err)
                        current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP)
                return 1;
 
+       print_modules();
        show_regs(regs);
 #ifdef CONFIG_X86_32
        if (user_mode_vm(regs)) {
index 3a8aced11ae91c1ae2860ab054e70feab56609ee..1038a417ea531f18fcfeacddd589440989a2a1d0 100644 (file)
@@ -86,7 +86,6 @@ void show_regs(struct pt_regs *regs)
 {
        int i;
 
-       print_modules();
        __show_regs(regs, !user_mode_vm(regs));
 
        pr_emerg("Process %.*s (pid: %d, ti=%p task=%p task.ti=%p)\n",
index c582e9c5bd1aa27409ed3dae0827326a910d08e8..b653675d5288476c2f864772fa63e4739f9de06f 100644 (file)
@@ -254,7 +254,6 @@ void show_regs(struct pt_regs *regs)
 
        sp = regs->sp;
        printk("CPU %d ", cpu);
-       print_modules();
        __show_regs(regs, 1);
        printk(KERN_DEFAULT "Process %s (pid: %d, threadinfo %p, task %p)\n",
               cur->comm, cur->pid, task_thread_info(cur), cur);