[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.21.2112230949520.19849@pobox.suse.cz>
Date: Thu, 23 Dec 2021 09:52:12 +0100 (CET)
From: Miroslav Benes <mbenes@...e.cz>
To: Jerome Marchand <jmarchan@...hat.com>
cc: Steven Rostedt <rostedt@...dmis.org>,
Heiko Carstens <hca@...ux.ibm.com>, linux-s390@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] recordmcount.pl: look for jgnop instruction as well as
bcrl on s390
Hi,
On Fri, 10 Dec 2021, Jerome Marchand wrote:
> 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 <jmarchan@...hat.com>
> ---
> scripts/recordmcount.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
> index 7d631aaa0ae1..52a000b057a5 100755
> --- a/scripts/recordmcount.pl
> +++ b/scripts/recordmcount.pl
> @@ -219,7 +219,7 @@ if ($arch eq "x86_64") {
>
> } elsif ($arch eq "s390" && $bits == 64) {
> if ($cc =~ /-DCC_USING_HOTPATCH/) {
> - $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*c0 04 00 00 00 00\\s*brcl\\s*0,[0-9a-f]+ <([^\+]*)>\$";
> + $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*c0 04 00 00 00 00\\s*(bcrl\\s*0,|jgnop\\s*)[0-9a-f]+ <([^\+]*)>\$";
there is a typo I did not notice before. Sorry about that *sigh*.
s/bcrl/brcl/ on the whole patch.
Miroslav
Powered by blists - more mailing lists