Skip to content

Commit 85bf17b

Browse files
jeromemarchandhcahca
authored andcommitted
recordmcount.pl: look for jgnop instruction as well as bcrl on s390
On s390, recordmcount.pl is looking for "bcrl 0,<xxx>" instructions in the objdump -d outpout. However since binutils 2.37, objdump -d display "jgnop <xxx>" for the same instruction. Update the mcount_regex so that it accepts both. Signed-off-by: Jerome Marchand <[email protected]> Reviewed-by: Miroslav Benes <[email protected]> Acked-by: Steven Rostedt (VMware) <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]>
1 parent c9b12b5 commit 85bf17b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/recordmcount.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219

220220
} elsif ($arch eq "s390" && $bits == 64) {
221221
if ($cc =~ /-DCC_USING_HOTPATCH/) {
222-
$mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*c0 04 00 00 00 00\\s*brcl\\s*0,[0-9a-f]+ <([^\+]*)>\$";
222+
$mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*c0 04 00 00 00 00\\s*(bcrl\\s*0,|jgnop\\s*)[0-9a-f]+ <([^\+]*)>\$";
223223
$mcount_adjust = 0;
224224
}
225225
$alignment = 8;

0 commit comments

Comments
 (0)