Commit 74f5bf02 authored by Max Filippov's avatar Max Filippov Committed by Chris Zankel

xtensa: fix oprofile building as module

Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent c1be5a5b
...@@ -119,3 +119,8 @@ EXPORT_SYMBOL(outsl); ...@@ -119,3 +119,8 @@ EXPORT_SYMBOL(outsl);
EXPORT_SYMBOL(insb); EXPORT_SYMBOL(insb);
EXPORT_SYMBOL(insw); EXPORT_SYMBOL(insw);
EXPORT_SYMBOL(insl); EXPORT_SYMBOL(insl);
extern long common_exception_return;
extern long _spill_registers;
EXPORT_SYMBOL(common_exception_return);
EXPORT_SYMBOL(_spill_registers);
...@@ -132,9 +132,7 @@ static void xtensa_backtrace_kernel(struct pt_regs *regs, unsigned int depth) ...@@ -132,9 +132,7 @@ static void xtensa_backtrace_kernel(struct pt_regs *regs, unsigned int depth)
pc = MAKE_PC_FROM_RA(a0, pc); pc = MAKE_PC_FROM_RA(a0, pc);
/* Add the PC to the trace. */ /* 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) { if (pc == (unsigned long) &common_exception_return) {
regs = (struct pt_regs *)a1; regs = (struct pt_regs *)a1;
if (user_mode(regs)) { if (user_mode(regs)) {
......
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