]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xtensa: fix oprofile building as module
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 25 Feb 2013 15:01:33 +0000 (19:01 +0400)
committerChris Zankel <chris@zankel.net>
Thu, 9 May 2013 08:07:09 +0000 (01:07 -0700)
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/kernel/xtensa_ksyms.c
arch/xtensa/oprofile/backtrace.c

index afe058b24e6e07c83d61f1a524b30e03340d6369..42c53c87c204171bea361b91913d7fba579ce9b7 100644 (file)
@@ -119,3 +119,8 @@ EXPORT_SYMBOL(outsl);
 EXPORT_SYMBOL(insb);
 EXPORT_SYMBOL(insw);
 EXPORT_SYMBOL(insl);
+
+extern long common_exception_return;
+extern long _spill_registers;
+EXPORT_SYMBOL(common_exception_return);
+EXPORT_SYMBOL(_spill_registers);
index 66f32ee2c982d8534d99df8d7588c034a19b5ddb..5f03a593d84f9000d6db447f599f40af7048af42 100644 (file)
@@ -132,9 +132,7 @@ static void xtensa_backtrace_kernel(struct pt_regs *regs, unsigned int depth)
                pc = MAKE_PC_FROM_RA(a0, pc);
 
                /* Add the PC to the trace. */
-               if (kernel_text_address(pc))
-                       oprofile_add_trace(pc);
-
+               oprofile_add_trace(pc);
                if (pc == (unsigned long) &common_exception_return) {
                        regs = (struct pt_regs *)a1;
                        if (user_mode(regs)) {