Commit 85caa993d7f218b7c2abcfcb28e212396b6a3313
Committed by
Steven Rostedt
1 parent
4447586364
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
scripts/Makefile.build
... | ... | @@ -210,7 +210,7 @@ |
210 | 210 | |
211 | 211 | ifdef CONFIG_FTRACE_MCOUNT_RECORD |
212 | 212 | ifdef BUILD_C_RECORDMCOUNT |
213 | -cmd_record_mcount = $(srctree)/scripts/recordmcount "$(@)"; | |
213 | +cmd_record_mcount = $(objtree)/scripts/recordmcount "$(@)"; | |
214 | 214 | else |
215 | 215 | cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ |
216 | 216 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ |