Re: [RESEND][PATCH 1/2] stacktrace: add saved stack traces to backtrace self-test

From: Vegard Nossum
Date: Fri Jun 27 2008 - 15:30:01 EST


On Fri, Jun 27, 2008 at 9:20 PM, Ingo Molnar <mingo@xxxxxxx> wrote:
>
> FYI, it needed the fixlet below.
>
> Ingo
>

Oh. I'm sorry :-(

(I'll admit that I've never worked with modules before. I'll try to
remember now.)

> ------------->
> commit 7bcebd2e3ee8435e2ff0f674a409f46961fda3cc
> Author: Ingo Molnar <mingo@xxxxxxx>
> Date: Fri Jun 27 21:20:17 2008 +0200
>
> stacktrace: export print_stack_trace and save_stack_trace
>
> fix:
>
> ERROR: "print_stack_trace" [kernel/backtracetest.ko] undefined!
> ERROR: "save_stack_trace" [kernel/backtracetest.ko] undefined!
>
> Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
>
> Conflicts:
>
> Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
>
> diff --git a/arch/x86/kernel/stacktrace.c b/arch/x86/kernel/stacktrace.c
> index c28c342..b7b483b 100644
> --- a/arch/x86/kernel/stacktrace.c
> +++ b/arch/x86/kernel/stacktrace.c
> @@ -74,10 +74,4 @@ void save_stack_trace(struct stack_trace *trace)
> if (trace->nr_entries < trace->max_entries)
> trace->entries[trace->nr_entries++] = ULONG_MAX;
> }
> -
> -void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
> -{
> - dump_trace(tsk, NULL, NULL, 0, &save_stack_ops_nosched, trace);
> - if (trace->nr_entries < trace->max_entries)
> - trace->entries[trace->nr_entries++] = ULONG_MAX;
> -}

Why is this removed, though? (It seems unrelated, and that's a useful function.)


Vegard

--
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
-- E. W. Dijkstra, EWD1036
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/