Hi, this is moving code from oprofile/backtrace.c to a commom place and then implements perf_callchain_user using the common code. Right now the unwind_user_frame will always be compiled into the kernel. Holger Hans Peter Freyther (2): MIPS: Move userspace stack unwinding into kernel/user_backtrace.c MIPS: Implement perf_callchain_user using unwind_user_frame arch/mips/include/asm/stacktrace.h | 10 +++ arch/mips/kernel/Makefile | 3 +- arch/mips/kernel/perf_event.c | 14 ++++ arch/mips/kernel/user_backtrace.c | 129 ++++++++++++++++++++++++++++++++++ arch/mips/oprofile/backtrace.c | 133 ++---------------------------------- 5 files changed, 160 insertions(+), 129 deletions(-) create mode 100644 arch/mips/kernel/user_backtrace.c -- 1.7.4.1