ce3266c047
Implement intelligent backtracing by searching for stack frame creation, and emitting only return addresses. Use print_hex_dump() to display the entire binary kernel stack. Limitation: MMU kernels are not currently able to trace beyond a system trap (interrupt, syscall, etc.). It is the intent of this patch to provide infrastructure that can be extended to add this capability later. Changes from V1: * Removed checks in find_frame_creation() that prevented location of the frame creation instruction in heavily optimized code * Various formatting/commenting/file location tweaks per review comments * Dropped Kconfig option to enable STACKTRACE as something logically separate Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
32 lines
867 B
Makefile
32 lines
867 B
Makefile
#
|
|
# Makefile
|
|
#
|
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
|
# Do not trace early boot code and low level code
|
|
CFLAGS_REMOVE_timer.o = -pg
|
|
CFLAGS_REMOVE_intc.o = -pg
|
|
CFLAGS_REMOVE_early_printk.o = -pg
|
|
CFLAGS_REMOVE_selfmod.o = -pg
|
|
CFLAGS_REMOVE_heartbeat.o = -pg
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
|
endif
|
|
|
|
extra-y := head.o vmlinux.lds
|
|
|
|
obj-y += dma.o exceptions.o \
|
|
hw_exception_handler.o init_task.o intc.o irq.o of_device.o \
|
|
of_platform.o process.o prom.o prom_parse.o ptrace.o \
|
|
reset.o setup.o signal.o sys_microblaze.o timer.o traps.o unwind.o
|
|
|
|
obj-y += cpu/
|
|
|
|
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
|
obj-$(CONFIG_SELFMOD) += selfmod.o
|
|
obj-$(CONFIG_HEART_BEAT) += heartbeat.o
|
|
obj-$(CONFIG_MODULES) += microblaze_ksyms.o module.o
|
|
obj-$(CONFIG_MMU) += misc.o
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
|
obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
|
|
|
|
obj-y += entry$(MMU).o
|