author: Linus Torvalds <torvalds@linux-foundation.org> 2021-10-16 10:51:41 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-10-16 10:51:41 -0700
commit: 368a978cc52ad14f90bd04a7d94ec0070da3e1c1
parent: 6985c40ab6c5d63a494ce9adce9a4768364f2507
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 8f6b13ae46bf..7d631aaa0ae1 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -189,7 +189,7 @@ if ($arch =~ /(x86(_64)?)|(i386)/) {
$local_regex = "^[0-9a-fA-F]+\\s+t\\s+(\\S+)";
$weak_regex = "^[0-9a-fA-F]+\\s+([wW])\\s+(\\S+)";
$section_regex = "Disassembly of section\\s+(\\S+):";
-$function_regex = "^([0-9a-fA-F]+)\\s+<(.*?)>:";
+$function_regex = "^([0-9a-fA-F]+)\\s+<([^^]*?)>:";
$mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s(mcount|__fentry__)\$";
$section_type = '@progbits';
$mcount_adjust = 0;