Skip to content

Commit 85caa99

Browse files
Steven Rostedtrostedt
authored andcommitted
ftrace: Use objtree for C version of recordmcount
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>
1 parent 4447586 commit 85caa99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ endif
210210

211211
ifdef CONFIG_FTRACE_MCOUNT_RECORD
212212
ifdef BUILD_C_RECORDMCOUNT
213-
cmd_record_mcount = $(srctree)/scripts/recordmcount "$(@)";
213+
cmd_record_mcount = $(objtree)/scripts/recordmcount "$(@)";
214214
else
215215
cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
216216
"$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \

0 commit comments

Comments
 (0)