* [PATCH] kbuild: dummy-tools: support make MPROFILE_KERNEL checks work on BE
@ 2023-08-29 10:51 Jiri Slaby (SUSE)
2023-08-29 11:00 ` Jiri Slaby
0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby (SUSE) @ 2023-08-29 10:51 UTC (permalink / raw)
To: masahiroy
Cc: linux-kbuild, linux-kernel, Jiri Slaby, Nathan Chancellor,
Nick Desaulniers, Nicolas Schier, Naveen N . Rao,
Christophe Leroy, Nicholas Piggin, Michael Ellerman,
Michal Kubecek
From: Jiri Slaby <jslaby@suse.cz>
Commit 2eab791f940b ("kbuild: dummy-tools: support MPROFILE_KERNEL
checks for ppc") added support for ppc64le's checks for
-mprofile-kernel.
Now, commit aec0ba7472a7 ("powerpc/64: Use -mprofile-kernel for big
endian ELFv2 kernels") added support for -mprofile-kernel even on
big-endian ppc.
So lift the check in gcc-check-mprofile-kernel.sh to support big-endian too.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Nicolas Schier <nicolas@fjasle.eu>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Kubecek <mkubecek@suse.cz>
---
scripts/dummy-tools/gcc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
index 1db1889f6d81..07f6dc4c5cf6 100755
--- a/scripts/dummy-tools/gcc
+++ b/scripts/dummy-tools/gcc
@@ -85,8 +85,7 @@ if arg_contain -S "$@"; then
fi
# For arch/powerpc/tools/gcc-check-mprofile-kernel.sh
- if arg_contain -m64 "$@" && arg_contain -mlittle-endian "$@" &&
- arg_contain -mprofile-kernel "$@"; then
+ if arg_contain -m64 "$@" && arg_contain -mprofile-kernel "$@"; then
if ! test -t 0 && ! grep -q notrace; then
echo "_mcount"
fi
--
2.42.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] kbuild: dummy-tools: support make MPROFILE_KERNEL checks work on BE
2023-08-29 10:51 [PATCH] kbuild: dummy-tools: support make MPROFILE_KERNEL checks work on BE Jiri Slaby (SUSE)
@ 2023-08-29 11:00 ` Jiri Slaby
2023-08-30 11:48 ` Masahiro Yamada
0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby @ 2023-08-29 11:00 UTC (permalink / raw)
To: Jiri Slaby (SUSE), masahiroy
Cc: linux-kbuild, linux-kernel, Nathan Chancellor, Nick Desaulniers,
Nicolas Schier, Naveen N . Rao, Christophe Leroy,
Nicholas Piggin, Michael Ellerman, Michal Kubecek
I deleted too few: the subject should read:
kbuild: dummy-tools: make MPROFILE_KERNEL checks work on BE
I will submit v2 if there are no other objections.
On 29. 08. 23, 12:51, Jiri Slaby (SUSE) wrote:
> From: Jiri Slaby <jslaby@suse.cz>
>
> Commit 2eab791f940b ("kbuild: dummy-tools: support MPROFILE_KERNEL
> checks for ppc") added support for ppc64le's checks for
> -mprofile-kernel.
>
> Now, commit aec0ba7472a7 ("powerpc/64: Use -mprofile-kernel for big
> endian ELFv2 kernels") added support for -mprofile-kernel even on
> big-endian ppc.
>
> So lift the check in gcc-check-mprofile-kernel.sh to support big-endian too.
>
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> Cc: Masahiro Yamada <masahiroy@kernel.org>
> Cc: Nathan Chancellor <nathan@kernel.org>
> Cc: Nick Desaulniers <ndesaulniers@google.com>
> Cc: Nicolas Schier <nicolas@fjasle.eu>
> Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
> Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
> Cc: Nicholas Piggin <npiggin@gmail.com>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Michal Kubecek <mkubecek@suse.cz>
> ---
> scripts/dummy-tools/gcc | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
> index 1db1889f6d81..07f6dc4c5cf6 100755
> --- a/scripts/dummy-tools/gcc
> +++ b/scripts/dummy-tools/gcc
> @@ -85,8 +85,7 @@ if arg_contain -S "$@"; then
> fi
>
> # For arch/powerpc/tools/gcc-check-mprofile-kernel.sh
> - if arg_contain -m64 "$@" && arg_contain -mlittle-endian "$@" &&
> - arg_contain -mprofile-kernel "$@"; then
> + if arg_contain -m64 "$@" && arg_contain -mprofile-kernel "$@"; then
> if ! test -t 0 && ! grep -q notrace; then
> echo "_mcount"
> fi
--
js
suse labs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kbuild: dummy-tools: support make MPROFILE_KERNEL checks work on BE
2023-08-29 11:00 ` Jiri Slaby
@ 2023-08-30 11:48 ` Masahiro Yamada
0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2023-08-30 11:48 UTC (permalink / raw)
To: Jiri Slaby
Cc: linux-kbuild, linux-kernel, Nathan Chancellor, Nick Desaulniers,
Nicolas Schier, Naveen N . Rao, Christophe Leroy,
Nicholas Piggin, Michael Ellerman, Michal Kubecek
On Wed, Aug 30, 2023 at 2:00 AM Jiri Slaby <jirislaby@kernel.org> wrote:
>
> I deleted too few: the subject should read:
> kbuild: dummy-tools: make MPROFILE_KERNEL checks work on BE
>
> I will submit v2 if there are no other objections.
I have no objection.
If there is nothing else to fix,
I will locally fix the subject, and apply.
I also see a similar patch from Michal Suchanek,
but I like this one because the commit log
has a good explanation.
> On 29. 08. 23, 12:51, Jiri Slaby (SUSE) wrote:
> > From: Jiri Slaby <jslaby@suse.cz>
> >
> > Commit 2eab791f940b ("kbuild: dummy-tools: support MPROFILE_KERNEL
> > checks for ppc") added support for ppc64le's checks for
> > -mprofile-kernel.
> >
> > Now, commit aec0ba7472a7 ("powerpc/64: Use -mprofile-kernel for big
> > endian ELFv2 kernels") added support for -mprofile-kernel even on
> > big-endian ppc.
> >
> > So lift the check in gcc-check-mprofile-kernel.sh to support big-endian too.
> >
> > Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> > Cc: Masahiro Yamada <masahiroy@kernel.org>
> > Cc: Nathan Chancellor <nathan@kernel.org>
> > Cc: Nick Desaulniers <ndesaulniers@google.com>
> > Cc: Nicolas Schier <nicolas@fjasle.eu>
> > Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
> > Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
> > Cc: Nicholas Piggin <npiggin@gmail.com>
> > Cc: Michael Ellerman <mpe@ellerman.id.au>
> > Cc: Michal Kubecek <mkubecek@suse.cz>
> > ---
> > scripts/dummy-tools/gcc | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
> > index 1db1889f6d81..07f6dc4c5cf6 100755
> > --- a/scripts/dummy-tools/gcc
> > +++ b/scripts/dummy-tools/gcc
> > @@ -85,8 +85,7 @@ if arg_contain -S "$@"; then
> > fi
> >
> > # For arch/powerpc/tools/gcc-check-mprofile-kernel.sh
> > - if arg_contain -m64 "$@" && arg_contain -mlittle-endian "$@" &&
> > - arg_contain -mprofile-kernel "$@"; then
> > + if arg_contain -m64 "$@" && arg_contain -mprofile-kernel "$@"; then
> > if ! test -t 0 && ! grep -q notrace; then
> > echo "_mcount"
> > fi
>
> --
> js
> suse labs
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-30 18:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29 10:51 [PATCH] kbuild: dummy-tools: support make MPROFILE_KERNEL checks work on BE Jiri Slaby (SUSE)
2023-08-29 11:00 ` Jiri Slaby
2023-08-30 11:48 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).