summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/oprofile/Makefile
diff options
context:
space:
mode:
authordann <dann@xtensa-linux.org>2008-05-21 17:43:50 -0700
committerChris Zankel <chris@zankel.net>2013-02-23 19:22:54 -0800
commite6ffe17ec45dd763ee8278246a112562f64a4ef2 (patch)
tree3efe66a318764e0aeab4385eb407ec597f1f9f9b /arch/xtensa/oprofile/Makefile
parent2d6f82fee45a52359012948306587eba704cf35b (diff)
downloadop-kernel-dev-e6ffe17ec45dd763ee8278246a112562f64a4ef2.zip
op-kernel-dev-e6ffe17ec45dd763ee8278246a112562f64a4ef2.tar.gz
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>
Diffstat (limited to 'arch/xtensa/oprofile/Makefile')
-rw-r--r--arch/xtensa/oprofile/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/xtensa/oprofile/Makefile b/arch/xtensa/oprofile/Makefile
new file mode 100644
index 0000000..69ffbe8
--- /dev/null
+++ b/arch/xtensa/oprofile/Makefile
@@ -0,0 +1,9 @@
+obj-$(CONFIG_OPROFILE) += oprofile.o
+
+DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
+ oprof.o cpu_buffer.o buffer_sync.o \
+ event_buffer.o oprofile_files.o \
+ oprofilefs.o oprofile_stats.o \
+ timer_int.o )
+
+oprofile-y := $(DRIVER_OBJS) init.o backtrace.o
OpenPOWER on IntegriCloud