From patchwork Tue May 17 02:10:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 790252 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4H2EQG2023644 for ; Tue, 17 May 2011 02:14:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752776Ab1EQCO0 (ORCPT ); Mon, 16 May 2011 22:14:26 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:61164 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752074Ab1EQCOZ (ORCPT ); Mon, 16 May 2011 22:14:25 -0400 X-Authority-Analysis: v=1.1 cv=ou1QuR4lBR9YeJgEH9ccYmbAdaWqVVq3lOvCKJtMpGM= c=1 sm=0 a=vhdKIqpQuCYA:10 a=Gm-2C9Kd_5EA:10 a=5SG0PmZfjMsA:10 a=bbbx4UPp9XUA:10 a=OPBmh+XkhLl+Enan7BmTLg==:17 a=20KFwNOVAAAA:8 a=meVymXHHAAAA:8 a=DBC4KpddjrjLV2-bSYYA:9 a=jEp0ucaQiEUA:10 a=jeBq3FmKZ4MA:10 a=OPBmh+XkhLl+Enan7BmTLg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.242.120.143 Received: from [67.242.120.143] ([67.242.120.143:57656] helo=gandalf.stny.rr.com) by hrndva-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 2A/14-04598-00AD1DD4; Tue, 17 May 2011 02:14:24 +0000 Received: from rostedt by gandalf.stny.rr.com with local (Exim 4.72) (envelope-from ) id 1QM9nj-0001Lo-QV; Mon, 16 May 2011 22:14:23 -0400 Message-Id: <20110517021423.661004726@goodmis.org> User-Agent: quilt/0.48-1 Date: Mon, 16 May 2011 22:10:29 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Michal Marek , linux-kbuild@vger.kernel.org, Andrew Morton Subject: [RFC][PATCH 2/2] ftrace/kbuild: Add recordmcount files to force full build References: <20110517021027.390391519@goodmis.org> Content-Disposition: inline; filename=0002-ftrace-kbuild-Add-recordmcount-files-to-force-full-b.patch Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 17 May 2011 02:14:30 +0000 (UTC) From: Steven Rostedt 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 --- 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 \