ftrace: Add C version of recordmcount compile time code
authorJohn Reiser <jreiser@bitwagon.com>
Wed, 13 Oct 2010 19:12:54 +0000 (15:12 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 14 Oct 2010 20:44:34 +0000 (16:44 -0400)
Currently, the mcount callers are found with a perl script that does
an objdump on every file in the kernel. This is a C version of that
same code which should increase the performance time of compiling
the kernel with dynamic ftrace enabled.

Signed-off-by: John Reiser <jreiser@bitwagon.com>
[ Updated the code to include .text.unlikely section as well as
  changing the format to follow Linux coding style. ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/recordmcount.c [new file with mode: 0644]

Simple merge