From: Michal Simek Date: Mon, 16 Nov 2009 08:40:14 +0000 (+0100) Subject: microblaze: ftrace: add static function tracer X-Git-Tag: v2.6.33-rc1~283^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fd7c761a24c28e83d7194b4b4a099451126a503;p=pandora-kernel.git microblaze: ftrace: add static function tracer 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 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. Commit message from Wu Zhangjin Signed-off-by: Michal Simek --- Reading git-diff-tree failed