xtensa: add support for oprofile
Support call graph profiling. Keep upper two bits of PC unchanged through backtrace rather than take them from sp (a1). The stack pointer is usually in the same GB (same upper 2 bits) as PC, but technically doesn't always have to be (and might not in the future, when taking full advantage of MMU v3). Signed-off-by: NDan Nicolaescu <dann@xtensa-linux.org> Signed-off-by: NPete Delaney <piet@tensilica.com> Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com> Signed-off-by: NChris Zankel <chris@zankel.net>
Showing
arch/xtensa/oprofile/Makefile
0 → 100644
arch/xtensa/oprofile/backtrace.c
0 → 100644
arch/xtensa/oprofile/init.c
0 → 100644
想要评论请 注册 或 登录