]> git.karo-electronics.de Git - linux-beck.git/commit
ftrace: Make recordmcount.c handle __fentry__
authorSteven Rostedt <srostedt@redhat.com>
Wed, 9 Feb 2011 18:13:23 +0000 (13:13 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 23 Aug 2012 15:24:43 +0000 (11:24 -0400)
commit48bb5dc6cd9d30fe0d594947563da1f8bd9abada
treed6285f1c7ab68e07f9d65d62b62d6e958b66b0db
parenta0e0fac633bed47c15cab744663d8c67f8f3421d
ftrace: Make recordmcount.c handle __fentry__

With gcc 4.6.0 the -mfentry feature places the function profiling
call at the start of the function. When this is used, the call is
to __fentry__ and not mcount.

Change recordmcount.c to record both callers to __fentry__ and
mcount.

Link: http://lkml.kernel.org/r/20120807194058.990674363@goodmis.org
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Acked-by: John Reiser <jreiser@bitwagon.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/recordmcount.h