[lkml]   [2018]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC PATCH 1/2] ftrace: Allow arches to opt-out of static ftrace
On Sat, 17 Mar 2018 00:46:32 +1100
Michael Ellerman <> wrote:

> There is a small but non-zero amount of code required by arches to
> suppory non-dynamic (static) ftrace, and more importantly there is the
> added work of testing both configurations.
> There are also almost no down sides to dynamic ftrace once it's well
> tested, other than a small increase in code/data size.
> So give arches the option to opt-out of supporting static ftrace.
> This is implemented as a DYNAMIC_FTRACE_CHOICE option, which controls
> whether DYNAMIC_FTRACE is presented as a user-selectable option or if
> it is just enabled based on its dependencies being enabled (because
> it's already default y).
> Then the CHOICE option depends on an arch *not* selecting
> HAVE_DYNAMIC_FTRACE_ONLY. This would be more natural in reverse, as a
> HAVE_STATIC_FTRACE option, but that would require updating every arch.
> Signed-off-by: Michael Ellerman <>

Why not just add in arch/powerpc/Kconfig:

config PPC


It seems to work for me.

-- Steve

 \ /
  Last update: 2018-03-16 15:40    [W:0.131 / U:2.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site