Add kernel support for oprofile callgraphs on AVR32
authorNikolaus Voss <n.voss@weinmann.de>
Wed, 3 Sep 2008 10:50:32 +0000 (12:50 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 22 Sep 2008 07:51:01 +0000 (09:51 +0200)
commit3d256151471ba9fd60a5b896a706eb21a6b1cea1
treed6a509267161238f5fd9ac011bfa368a968e71b4
parentf3c450be7b0defab59e360eca8a7e201d424d526
Add kernel support for oprofile callgraphs on AVR32

This patch adds backtracing capability to oprofile profiling in kernel
and user mode on AVR32. This is done by going through the frames on the
stack and adding oprofile traces for all return addresses. The code
being profiled has to be compiled with frame pointers to make this work.

Signed-off-by: Nikolaus Voss <n.voss@weinmann.de>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
arch/avr32/oprofile/Makefile
arch/avr32/oprofile/backtrace.c [new file with mode: 0644]
arch/avr32/oprofile/op_model_avr32.c