From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Michal Marek <mmarek@suse.cz>,
linux-kbuild@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>
Subject: [RFC][PATCH 2/2] ftrace/kbuild: Add recordmcount files to force full build
Date: Mon, 16 May 2011 22:10:29 -0400 [thread overview]
Message-ID: <20110517021423.661004726@goodmis.org> (raw)
In-Reply-To: 20110517021027.390391519@goodmis.org
[-- Attachment #1: 0002-ftrace-kbuild-Add-recordmcount-files-to-force-full-b.patch --]
[-- Type: text/plain, Size: 1322 bytes --]
From: Steven Rostedt <srostedt@redhat.com>
Modifications to recordmcount must be performed on all object
files to stay consistent with what the kernel code may expect.
Add the recordmcount files to the force-deps to make sure
any change to them causes a full recompile.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
scripts/Makefile.build | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 0ff5a58..057d6e9 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -252,6 +252,7 @@ sub_cmd_record_mcount = \
if [ $(@) != "scripts/mod/empty.o" ]; then \
$(objtree)/scripts/recordmcount "$(@)"; \
fi;
+force-deps += $(srctree)/scripts/recordmcount.c $(srctree)/scripts/recordmcount.h
else
sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
"$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \
@@ -259,6 +260,7 @@ sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \
"$(LD)" "$(NM)" "$(RM)" "$(MV)" \
"$(if $(part-of-module),1,0)" "$(@)";
+force-deps += $(srctree)/scripts/recordmcount.pl
endif
cmd_record_mcount = \
if [ "$(findstring -pg,$(_c_flags))" = "-pg" ]; then \
--
1.7.2.3
next prev parent reply other threads:[~2011-05-17 2:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-17 2:10 [RFC][PATCH 0/2] kbuild: create force-deps for fixdep for recordmcount Steven Rostedt
2011-05-17 2:10 ` [RFC][PATCH 1/2] kbuild: Add force-deps to fixdep Steven Rostedt
2011-05-17 2:10 ` Steven Rostedt [this message]
2011-05-17 13:36 ` [RFC][PATCH 2/2] ftrace/kbuild: Add recordmcount files to force full build Michal Marek
2011-05-17 13:47 ` Steven Rostedt
2011-05-17 14:20 ` Steven Rostedt
2011-05-17 14:21 ` Steven Rostedt
2011-05-17 14:42 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110517021423.661004726@goodmis.org \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox