[PATCH] tracing: recordmcount.pl We won't use weak function as reference, remove the check

From: Li Hong
Date: Tue Oct 27 2009 - 01:25:39 EST


Signed-off-by: Li Hong <lihong.hi@xxxxxxxxx>

diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 490b4cd..867c24a 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -352,17 +352,6 @@ sub update_funcs
{
return unless ($ref_func and @offsets);

- # A section only had a weak function, to represent it.
- # Unfortunately, a weak function may be overwritten by another
- # function of the same name, making all these offsets incorrect.
- # To be safe, we simply print a warning and bail.
- if (defined $weak{$ref_func}) {
- print STDERR
- "$inputfile: WARNING: referencing weak function" .
- " $ref_func for mcount\n";
- return;
- }
-
# is this function static? If so, note this fact.
if (defined $locals{$ref_func}) {

--
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/