aboutsummaryrefslogtreecommitdiffstats
path: root/arch/metag/oprofile/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/oprofile/Makefile
parentmetag: perf: prepare for use by oprofile (diff)
downloadlinux-dev-00e6c92304ce38ff48029471c929d31a25e5cf10.tar.xz
linux-dev-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/oprofile/Makefile')
-rw-r--r--arch/metag/oprofile/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/metag/oprofile/Makefile b/arch/metag/oprofile/Makefile
new file mode 100644
index 000000000000..c9639d4734d6
--- /dev/null
+++ b/arch/metag/oprofile/Makefile
@@ -0,0 +1,17 @@
+obj-$(CONFIG_OPROFILE) += oprofile.o
+
+oprofile-core-y += buffer_sync.o
+oprofile-core-y += cpu_buffer.o
+oprofile-core-y += event_buffer.o
+oprofile-core-y += oprof.o
+oprofile-core-y += oprofile_files.o
+oprofile-core-y += oprofile_stats.o
+oprofile-core-y += oprofilefs.o
+oprofile-core-y += timer_int.o
+oprofile-core-$(CONFIG_HW_PERF_EVENTS) += oprofile_perf.o
+
+oprofile-y += backtrace.o
+oprofile-y += common.o
+oprofile-y += $(addprefix ../../../drivers/oprofile/,$(oprofile-core-y))
+
+ccflags-y += -Werror