stacktrace: export save_stack_trace[_tsk]
authorIngo Molnar <mingo@elte.hu>
Thu, 3 Jul 2008 07:17:55 +0000 (09:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 3 Jul 2008 07:17:55 +0000 (09:17 +0200)
Andrew Morton reported this against linux-next:

ERROR: ".save_stack_trace" [tests/backtracetest.ko] undefined!

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/arm/kernel/stacktrace.c
arch/avr32/kernel/stacktrace.c
arch/mips/kernel/stacktrace.c
arch/powerpc/kernel/stacktrace.c
arch/s390/kernel/stacktrace.c
arch/sh/kernel/stacktrace.c
arch/sparc64/kernel/stacktrace.c

index ae31deb2d0653a6a8fe57b000fb2827de9acdf13..6b3ffde5deaa8e1edb5a772187a0a2618919aa8c 100644 (file)
@@ -66,4 +66,5 @@ void save_stack_trace(struct stack_trace *trace)
 
        walk_stackframe(fp, base, base + THREAD_SIZE, save_trace, &data);
 }
+EXPORT_SYMBOL_GPL(save_stack_trace);
 #endif
index 9a68190bbffd78dd41703259c3012c3d638b6994..f4bdb448049c309b7363d7889d272d5c15ab33ed 100644 (file)
@@ -51,3 +51,4 @@ void save_stack_trace(struct stack_trace *trace)
                fp = frame->fp;
        }
 }
+EXPORT_SYMBOL_GPL(save_stack_trace);
index ebd9db8d1ecebfe7a065145df4d2c204a24ed313..5eb4681a73d2fe7c29ee02010abe5287a5411ad0 100644 (file)
@@ -73,3 +73,4 @@ void save_stack_trace(struct stack_trace *trace)
        prepare_frametrace(regs);
        save_context_stack(trace, regs);
 }
+EXPORT_SYMBOL_GPL(save_stack_trace);
index 962944038430f69861181623763abb5f16f98049..9861f17258dac2e386d4ac1eacd1e6ed09c78d43 100644 (file)
@@ -44,3 +44,4 @@ void save_stack_trace(struct stack_trace *trace)
                sp = newsp;
        }
 }
+EXPORT_SYMBOL_GPL(save_stack_trace);
index 85e46a5d0e0801d9880987cd2595a06391231401..57571f10270cb3f8f6187a1a5a132db23181057d 100644 (file)
@@ -81,6 +81,7 @@ void save_stack_trace(struct stack_trace *trace)
                           S390_lowcore.thread_info,
                           S390_lowcore.thread_info + THREAD_SIZE, 1);
 }
+EXPORT_SYMBOL_GPL(save_stack_trace);
 
 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
 {
@@ -93,3 +94,4 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
        if (trace->nr_entries < trace->max_entries)
                trace->entries[trace->nr_entries++] = ULONG_MAX;
 }
+EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
index d41e561be20eafacbacf9c99fd08a84d1f1e2321..1b2ae35c4a76504f5d08ba43ff5e0a68a36aa04f 100644 (file)
@@ -34,3 +34,4 @@ void save_stack_trace(struct stack_trace *trace)
                }
        }
 }
+EXPORT_SYMBOL_GPL(save_stack_trace);
index c73ce3f4197e67097da288e381dc134203036ec0..49656ed6ab18eb39a7f7115d81a9e09bfd3054f1 100644 (file)
@@ -47,3 +47,4 @@ void save_stack_trace(struct stack_trace *trace)
                        trace->entries[trace->nr_entries++] = pc;
        } while (trace->nr_entries < trace->max_entries);
 }
+EXPORT_SYMBOL_GPL(save_stack_trace);