linux-stable-rt/arch/mips
Wu Zhangjin d2bb076299 MIPS: Tracing: Add static function tracer support for MIPS
If -pg of gcc is enabled with CONFIG_FUNCTION_TRACER=y. a calling to
_mcount will be inserted into each kernel function. so, there is a
possibility to trace the kernel functions in _mcount.

This patch add the MIPS specific _mcount support for static function
tracing. by default, ftrace_trace_function is initialized as
ftrace_stub(an empty function), so, the default _mcount will introduce
very little overhead. after enabling ftrace in user-space, it will jump
to a real tracing function and do static function tracing for us.

and -ffunction-sections is incompatible with -pg, so, disable it when
ftracer is enabled.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Nicholas Mc Guire <der.herr@hofr.at>
Cc: zhangfx@lemote.com
Cc: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/672/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-12-17 01:57:21 +00:00
..
alchemy
ar7
basler/excite
bcm47xx
bcm63xx
boot
cavium-octeon
cobalt
configs MIPS: PowerTV: Base files for Cisco PowerTV platform 2009-12-17 01:57:17 +00:00
dec
emma
fw
gt64120/wrppmc
include/asm MIPS: Tracing: Add static function tracer support for MIPS 2009-12-17 01:57:21 +00:00
jazz
kernel MIPS: Tracing: Add static function tracer support for MIPS 2009-12-17 01:57:21 +00:00
lasat
lib
loongson MIPS: Loongson 2F: Add CPU frequency scaling support 2009-12-17 01:57:20 +00:00
math-emu
mipssim
mm
mti-malta
nxp MIPS: Fixup last users of irq_chip->typename 2009-12-17 01:57:21 +00:00
oprofile
pci
pmc-sierra
power
powertv MIPS: PowerTV: Base files for Cisco PowerTV platform 2009-12-17 01:57:17 +00:00
rb532
sgi-ip22
sgi-ip27
sgi-ip32
sibyte
sni MIPS: Fixup last users of irq_chip->typename 2009-12-17 01:57:21 +00:00
txx9
vr41xx
Kconfig MIPS: Tracing: Add static function tracer support for MIPS 2009-12-17 01:57:21 +00:00
Kconfig.debug
Makefile MIPS: Tracing: Add static function tracer support for MIPS 2009-12-17 01:57:21 +00:00