[PATCH kernel 2/3] powerpc/llvm: Sample config for LLVM LTO

Naveen N. Rao naveen.n.rao at linux.vnet.ibm.com
Fri Feb 11 22:44:11 AEDT 2022


Alexey Kardashevskiy wrote:
> 
> Disables CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT as CONFIG_HAS_LTO_CLANG
> depends on it being disabled. In order to avoid disabling way too many
> options (like DYNAMIC_FTRACE/FUNCTION_TRACER), this converts
> FTRACE_MCOUNT_USE_RECORDMCOUNT from def_bool to bool.

<snip>

> +CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT=n

I don't think that will work since we have no other ways of generating 
mcount locations on powerpc. And since we decided to only support 
DYNAMIC_FTRACE, I guess we will need to disable FUNCTION_TRACER to get 
this working, for now.

I am looking into ways to get ftrace working in this scenario.


- Naveen


More information about the Linuxppc-dev mailing list