Commit 81c3dade authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] x86 stack dump fixes

- Fix the !CONFIG_FRAME_POINTER && !CONFIG_KALLSYMS output formatting.

- Make print_context_stack() static
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 44def56a
......@@ -103,7 +103,7 @@ static int valid_stack_ptr(struct task_struct *task, void *p)
}
#ifdef CONFIG_FRAME_POINTER
void print_context_stack(struct task_struct *task, unsigned long *stack,
static void print_context_stack(struct task_struct *task, unsigned long *stack,
unsigned long ebp)
{
unsigned long addr;
......@@ -117,7 +117,7 @@ void print_context_stack(struct task_struct *task, unsigned long *stack,
}
}
#else
void print_context_stack(struct task_struct *task, unsigned long *stack,
static void print_context_stack(struct task_struct *task, unsigned long *stack,
unsigned long ebp)
{
unsigned long addr;
......@@ -125,8 +125,9 @@ void print_context_stack(struct task_struct *task, unsigned long *stack,
while (!kstack_end(stack)) {
addr = *stack++;
if (__kernel_text_address(addr)) {
printk(" [<%08lx>] ", addr);
print_symbol("%s\n", addr);
printk(" [<%08lx>]", addr);
print_symbol(" %s", addr);
printk("\n");
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment