summaryrefslogtreecommitdiffstats
path: root/arch/metag/Makefile
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2013-03-15 10:21:56 +0000
committerJames Hogan <james.hogan@imgtec.com>2013-03-15 13:21:05 +0000
commit00e6c92304ce38ff48029471c929d31a25e5cf10 (patch)
tree24610804573b95fbf29ed5ff7f7cf190bf532888 /arch/metag/Makefile
parentf27086f5dcb0c7e9622f724d5279e4dfe4e844a2 (diff)
downloadblackbird-op-linux-00e6c92304ce38ff48029471c929d31a25e5cf10.tar.gz
blackbird-op-linux-00e6c92304ce38ff48029471c929d31a25e5cf10.zip
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
Diffstat (limited to 'arch/metag/Makefile')
-rw-r--r--arch/metag/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/metag/Makefile b/arch/metag/Makefile
index 81bd6a1c7483..b566116b171b 100644
--- a/arch/metag/Makefile
+++ b/arch/metag/Makefile
@@ -49,6 +49,8 @@ core-y += arch/metag/mm/
libs-y += arch/metag/lib/
libs-y += arch/metag/tbx/
+drivers-$(CONFIG_OPROFILE) += arch/metag/oprofile/
+
boot := arch/metag/boot
boot_targets += uImage
OpenPOWER on IntegriCloud