metag: OProfile support
authorJames Hogan <james.hogan@imgtec.com>
Fri, 15 Mar 2013 10:21:56 +0000 (10:21 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 15 Mar 2013 13:21:05 +0000 (13:21 +0000)
commit00e6c92304ce38ff48029471c929d31a25e5cf10
tree24610804573b95fbf29ed5ff7f7cf190bf532888
parentf27086f5dcb0c7e9622f724d5279e4dfe4e844a2
metag: OProfile support

Add OProfile support for metag, using the perf backend, and falling back
to generic timer based sampling if perf counter interrupt support is
disabled.

The oprofile code prepends "metag/" to the perf pmu name to give
"metag/meta2" which is more consistent with other oprofile arch names.

The backtrace code makes use of <asm/stacktrace.h> for kernel
backtracing, and a simple frame pointer walk for userland backtracing.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Robert Richter <rric@kernel.org>
Cc: oprofile-list@lists.sf.net
arch/metag/Kconfig
arch/metag/Makefile
arch/metag/oprofile/Makefile [new file with mode: 0644]
arch/metag/oprofile/backtrace.c [new file with mode: 0644]
arch/metag/oprofile/backtrace.h [new file with mode: 0644]
arch/metag/oprofile/common.c [new file with mode: 0644]