diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-11-17 10:48:25 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-17 11:05:52 -0500 |
commit | 638adb0561264a3360a53e93def62288c85d8373 (patch) | |
tree | 4d89d07b6c3c5a8b04458b1118a536d97968adcf /Makefile | |
parent | f6060f46819f313d34a8c8151390cda509c23389 (diff) |
tracing: Only print objcopy version warning once from recordmcount
If the user has an older version of objcopy, that can not handle
converting local symbols to global and vice versa, then some
functions will not be part of the dynamic function tracer. The current
code in recordmcount.pl will print a warning in this case. Unfortunately,
there exists lots of files that may have this issue with older objcopys
and this will cause a warning for every file compiled with this
issue.
This patch solves this overwhelming output by creating a
.tmp_quiet_recordmcount file on the first instance the warning is
encountered. The warning will not print if this file exists.
The temp file is deleted at the beginning of the compile to ensure that
the warning will happen once again on new compiles (because the issue
is still present).
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -379,6 +379,7 @@ export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exc | |||
379 | PHONY += scripts_basic | 379 | PHONY += scripts_basic |
380 | scripts_basic: | 380 | scripts_basic: |
381 | $(Q)$(MAKE) $(build)=scripts/basic | 381 | $(Q)$(MAKE) $(build)=scripts/basic |
382 | $(Q)rm -f .tmp_quiet_recordmcount | ||
382 | 383 | ||
383 | # To avoid any implicit rule to kick in, define an empty command. | 384 | # To avoid any implicit rule to kick in, define an empty command. |
384 | scripts/basic/%: scripts_basic ; | 385 | scripts/basic/%: scripts_basic ; |