linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] powerpc64/ftrace: Include ftrace.h needed for enable/disable calls
       [not found] <201808162136.27788.luke@dashjr.org>
@ 2018-08-17 10:25 ` Naveen N. Rao
  2018-08-17 15:16   ` Luke Dashjr
  0 siblings, 1 reply; 3+ messages in thread
From: Naveen N. Rao @ 2018-08-17 10:25 UTC (permalink / raw)
  To: Luke Dashjr, Ingo Molnar, Paul Mackerras, Steven Rostedt
  Cc: kvm-ppc, linuxppc-dev, Michael Ellerman

Luke Dashjr wrote:
> this_cpu_disable_ftrace and this_cpu_enable_ftrace are inlines in ftrace.=
h
> Without it included, the build fails.

I'm unable to reproduce this. Can you share your .config and the build=20
environment?

>=20
> Fixes: a4bc64d305af ("powerpc64/ftrace: Disable ftrace during kvm entry/e=
xit")
> Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
> Cc: stable@vger.kernel.org
> ---
>  arch/powerpc/kvm/book3s_hv.c | 1 +
>  1 file changed, 1 insertion(+)
>=20
> diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c
> index ee4a8854985e..15c2c64291f4 100644
> --- a/arch/powerpc/kvm/book3s_hv.c
> +++ b/arch/powerpc/kvm/book3s_hv.c
> @@ -46,6 +46,7 @@
>  #include <linux/compiler.h>
>  #include <linux/of.h>
>=20
> +#include <asm/ftrace.h>
>  #include <asm/reg.h>
>  #include <asm/ppc-opcode.h>
>  #include <asm/asm-prototypes.h>

In any case, this change itself looks alright to me. So:
Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>


Thanks,
Naveen

=

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc64/ftrace: Include ftrace.h needed for enable/disable calls
  2018-08-17 10:25 ` [PATCH] powerpc64/ftrace: Include ftrace.h needed for enable/disable calls Naveen N. Rao
@ 2018-08-17 15:16   ` Luke Dashjr
  2018-08-17 16:41     ` Naveen N. Rao
  0 siblings, 1 reply; 3+ messages in thread
From: Luke Dashjr @ 2018-08-17 15:16 UTC (permalink / raw)
  To: Naveen N. Rao
  Cc: Ingo Molnar, Paul Mackerras, Steven Rostedt, kvm-ppc,
	linuxppc-dev, Michael Ellerman

On Friday 17 August 2018 10:25:40 Naveen N. Rao wrote:
> Luke Dashjr wrote:
> > this_cpu_disable_ftrace and this_cpu_enable_ftrace are inlines in
> > ftrace.h Without it included, the build fails.
>
> I'm unable to reproduce this. Can you share your .config and the build
> environment?

https://luke.dashjr.org/tmp/code/4.18-config.xz

Gentoo GNU/Linux (mostly stable keywords) on a Raptor Talos II POWER9 system.

> > Fixes: a4bc64d305af ("powerpc64/ftrace: Disable ftrace during kvm
> > entry/exit") Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
> > Cc: stable@vger.kernel.org
> > ---
> >  arch/powerpc/kvm/book3s_hv.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c
> > index ee4a8854985e..15c2c64291f4 100644
> > --- a/arch/powerpc/kvm/book3s_hv.c
> > +++ b/arch/powerpc/kvm/book3s_hv.c
> > @@ -46,6 +46,7 @@
> >  #include <linux/compiler.h>
> >  #include <linux/of.h>
> >
> > +#include <asm/ftrace.h>
> >  #include <asm/reg.h>
> >  #include <asm/ppc-opcode.h>
> >  #include <asm/asm-prototypes.h>
>
> In any case, this change itself looks alright to me. So:
> Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
>
>
> Thanks,
> Naveen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc64/ftrace: Include ftrace.h needed for enable/disable calls
  2018-08-17 15:16   ` Luke Dashjr
@ 2018-08-17 16:41     ` Naveen N. Rao
  0 siblings, 0 replies; 3+ messages in thread
From: Naveen N. Rao @ 2018-08-17 16:41 UTC (permalink / raw)
  To: Luke Dashjr
  Cc: kvm-ppc, linuxppc-dev, Ingo Molnar, Michael Ellerman,
	Paul Mackerras, Steven Rostedt

Luke Dashjr wrote:
> On Friday 17 August 2018 10:25:40 Naveen N. Rao wrote:
>> Luke Dashjr wrote:
>> > this_cpu_disable_ftrace and this_cpu_enable_ftrace are inlines in
>> > ftrace.h Without it included, the build fails.
>>
>> I'm unable to reproduce this. Can you share your .config and the build
>> environment?
>=20
> https://luke.dashjr.org/tmp/code/4.18-config.xz
>=20
> Gentoo GNU/Linux (mostly stable keywords) on a Raptor Talos II POWER9 sys=
tem.

Thanks. Your config is missing CONFIG_TRACEPOINTS and I hadn't tested=20
that. The below fix looks good and I've confirmed that the other uses=20
are fine as well.

- Naveen

=

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-17 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <201808162136.27788.luke@dashjr.org>
2018-08-17 10:25 ` [PATCH] powerpc64/ftrace: Include ftrace.h needed for enable/disable calls Naveen N. Rao
2018-08-17 15:16   ` Luke Dashjr
2018-08-17 16:41     ` Naveen N. Rao

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).