diff options
| author | Wu Zhangjin <[email protected]> | 2009-11-20 20:34:29 +0800 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2009-12-17 01:57:21 +0000 |
| commit | d2bb0762993e11363d8343127516b8fe88f9006f (patch) | |
| tree | f210c4c4b0234a776977e6d2b749384e1d3699c1 /tools/perf/scripts/python | |
| parent | 8922f79ee56e9dab6fc144defc0bc901ff0a7f8a (diff) | |
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 <[email protected]>
Reviewed-by: Steven Rostedt <[email protected]>
Cc: Nicholas Mc Guire <[email protected]>
Cc: [email protected]
Cc: Wu Zhangjin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: http://patchwork.linux-mips.org/patch/672/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions