Re: [PATCH] recordmcount.pl: look for jgnop instruction as well as bcrl on s390

From: Heiko Carstens
Date: Fri Dec 10 2021 - 10:52:02 EST


On Fri, Dec 10, 2021 at 01:31:23PM +0100, Miroslav Benes wrote:
> > > Otherwise I would be surprised that this would make any difference.
> >
> > How come? I mean, s390 does not define HAVE_C_RECORDMCOUNT which implies
> > that recordmcount.pl is used (see scripts/Makefile.build and
> > BUILD_C_RECORDMCOUNT definition in Makefile).
>
> Ah, sorry, that was too quick.
>
> I guess you want to say that recordmcount is not used at all and GCC
> should do it. Because CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT is not set,
> since FTRACE_MCOUNT_USE_CC should be set.
>
> What a maze.
>
> But isn't -mrecord-mcount x86_64-only option?

No, it is (at least) also supported on s390. IIRC that was added with
gcc9. Anyway, this is not too important since the fix makes sense
anyway.