]> git.karo-electronics.de Git - mv-sheeva.git/commit
MIPS: Tracing: Reduce the overhead of dynamic Function Tracer
authorWu Zhangjin <wuzhangjin@gmail.com>
Fri, 14 May 2010 11:08:32 +0000 (19:08 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 5 Jul 2010 16:17:29 +0000 (17:17 +0100)
commite424054000878d7eb11e44289242886d6e219d22
treefdae97a03c8e8b3c4ff232e627e20da88d0477c2
parent4d6829f92a02d96e1bec2ffe6ee674ef3b49722b
MIPS: Tracing: Reduce the overhead of dynamic Function Tracer

With the help of uasm this patch encodes the instructions of the dynamic
function tracer in ftrace_dyn_arch_init() when initializing it.

As a result we can remove the dynamic encoding of instructions in
ftrace_make_nop()/call(), ftrace_enable_ftrace_graph_caller() and remove
the macro jump_insn_encode() and at last this reduce the overhead of
dynamic Function Tracer.  This also is cleaner.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Cc: David Daney <david.s.daney@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/1230/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ftrace.c