[PATCH v8 13/17] x86/ftrace: enable dynamic ftrace without CONFIG_MODULES
    Steven Rostedt 
    rostedt at goodmis.org
       
    Tue May  7 04:22:40 AEST 2024
    
    
  
On Sun,  5 May 2024 17:25:56 +0300
Mike Rapoport <rppt at kernel.org> wrote:
> From: "Mike Rapoport (IBM)" <rppt at kernel.org>
> 
> Dynamic ftrace must allocate memory for code and this was impossible
> without CONFIG_MODULES.
> 
> With execmem separated from the modules code, execmem_text_alloc() is
> available regardless of CONFIG_MODULES.
> 
> Remove dependency of dynamic ftrace on CONFIG_MODULES and make
> CONFIG_DYNAMIC_FTRACE select CONFIG_EXECMEM in Kconfig.
> 
> Signed-off-by: Mike Rapoport (IBM) <rppt at kernel.org>
> ---
>  arch/x86/Kconfig         |  1 +
>  arch/x86/kernel/ftrace.c | 10 ----------
>  2 files changed, 1 insertion(+), 10 deletions(-)
Reviewed-by: Steven Rostedt (Google) <rostedt at goodmis.org>
-- Steve
    
    
More information about the Linuxppc-dev
mailing list