]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: add support for oprofile
authordann <dann@xtensa-linux.org>
Thu, 22 May 2008 00:43:50 +0000 (17:43 -0700)
committerChris Zankel <chris@zankel.net>
Sun, 24 Feb 2013 03:22:54 +0000 (19:22 -0800)
commit4a4b8134c882e84fe69db4c29bdc9c676172a513
tree3efe66a318764e0aeab4385eb407ec597f1f9f9b
parent16b9c59fc05703ce9ab88f8f2fef271e262a4e8f
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: Dan Nicolaescu <dann@xtensa-linux.org>
Signed-off-by: Pete Delaney <piet@tensilica.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/Kconfig
arch/xtensa/Makefile
arch/xtensa/kernel/entry.S
arch/xtensa/oprofile/Makefile [new file with mode: 0644]
arch/xtensa/oprofile/backtrace.c [new file with mode: 0644]
arch/xtensa/oprofile/init.c [new file with mode: 0644]