ftrace: Use objtree for C version of recordmcount
authorSteven Rostedt <srostedt@redhat.com>
Fri, 15 Oct 2010 16:09:25 +0000 (12:09 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Oct 2010 16:09:25 +0000 (12:09 -0400)
The C version of recordmcount is compiled to a binary, which will
end up located in the objtree. If the kernel is built with O=path,
the srctree will not include the binary recordmcount caller.

Cc: Michal Marek <mmarek@suse.cz>
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/Makefile.build

index 4d03a7efc68930ffc43c44a428a240cda0c0ec35..4db60b2e2a765aa34acbc3bcee8976f4af6562dd 100644 (file)
@@ -210,7 +210,7 @@ endif
 
 ifdef CONFIG_FTRACE_MCOUNT_RECORD
 ifdef BUILD_C_RECORDMCOUNT
-cmd_record_mcount = $(srctree)/scripts/recordmcount "$(@)";
+cmd_record_mcount = $(objtree)/scripts/recordmcount "$(@)";
 else
 cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
        "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \