aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/dumpstack_32.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/x86/kernel/dumpstack_32.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'arch/x86/kernel/dumpstack_32.c')
-rw-r--r--arch/x86/kernel/dumpstack_32.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/arch/x86/kernel/dumpstack_32.c b/arch/x86/kernel/dumpstack_32.c
index 0f6376ffa2d9..3b97a80ce329 100644
--- a/arch/x86/kernel/dumpstack_32.c
+++ b/arch/x86/kernel/dumpstack_32.c
@@ -34,17 +34,8 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
34 stack = (unsigned long *)task->thread.sp; 34 stack = (unsigned long *)task->thread.sp;
35 } 35 }
36 36
37#ifdef CONFIG_FRAME_POINTER 37 if (!bp)
38 if (!bp) { 38 bp = stack_frame(task, regs);
39 if (task == current) {
40 /* Grab bp right from our regs */
41 get_bp(bp);
42 } else {
43 /* bp is the last reg pushed by switch_to */
44 bp = *(unsigned long *) task->thread.sp;
45 }
46 }
47#endif
48 39
49 for (;;) { 40 for (;;) {
50 struct thread_info *context; 41 struct thread_info *context;
@@ -82,11 +73,11 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
82 if (kstack_end(stack)) 73 if (kstack_end(stack))
83 break; 74 break;
84 if (i && ((i % STACKSLOTS_PER_LINE) == 0)) 75 if (i && ((i % STACKSLOTS_PER_LINE) == 0))
85 printk("\n%s", log_lvl); 76 printk(KERN_CONT "\n");
86 printk(" %08lx", *stack++); 77 printk(KERN_CONT " %08lx", *stack++);
87 touch_nmi_watchdog(); 78 touch_nmi_watchdog();
88 } 79 }
89 printk("\n"); 80 printk(KERN_CONT "\n");
90 show_trace_log_lvl(task, regs, sp, bp, log_lvl); 81 show_trace_log_lvl(task, regs, sp, bp, log_lvl);
91} 82}
92 83
@@ -112,8 +103,7 @@ void show_registers(struct pt_regs *regs)
112 u8 *ip; 103 u8 *ip;
113 104
114 printk(KERN_EMERG "Stack:\n"); 105 printk(KERN_EMERG "Stack:\n");
115 show_stack_log_lvl(NULL, regs, &regs->sp, 106 show_stack_log_lvl(NULL, regs, &regs->sp, 0, KERN_EMERG);
116 0, KERN_EMERG);
117 107
118 printk(KERN_EMERG "Code: "); 108 printk(KERN_EMERG "Code: ");
119 109