Re: [RFC PATCH 2/3] objtool: Enable and implement 'mcount' subcommand

2022-03-21 Thread Naveen N. Rao
Christophe Leroy wrote: Le 21/03/2022 à 09:19, Naveen N. Rao a écrit : Christophe Leroy wrote: We don't enable ftrace for vdso, so I suspect objtool run above will be a no-op. This needs to be confirmed, of course. I just checked without the series: recordmcount isn't run for VDSO, so o

Re: [RFC PATCH 2/3] objtool: Enable and implement 'mcount' subcommand

2022-03-21 Thread Christophe Leroy
Le 21/03/2022 à 09:19, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> >> >> Le 18/03/2022 à 11:51, Sathvika Vasireddy a écrit : >>> This patch adds 'mcount' as a subcommand to objtool, and enables >>> the same for x86. objtool is built if CONFIG_FTRACE_MCOUNT_USE_OBJTOOL >>> is selected. Ad

Re: [RFC PATCH 2/3] objtool: Enable and implement 'mcount' subcommand

2022-03-21 Thread Naveen N. Rao
Christophe Leroy wrote: Le 18/03/2022 à 11:51, Sathvika Vasireddy a écrit : This patch adds 'mcount' as a subcommand to objtool, and enables the same for x86. objtool is built if CONFIG_FTRACE_MCOUNT_USE_OBJTOOL is selected. Additionally, architectures can select HAVE_NOP_MCOUNT if they choose

Re: [RFC PATCH 2/3] objtool: Enable and implement 'mcount' subcommand

2022-03-21 Thread Christophe Leroy
Le 18/03/2022 à 11:51, Sathvika Vasireddy a écrit : > This patch adds 'mcount' as a subcommand to objtool, and enables > the same for x86. objtool is built if CONFIG_FTRACE_MCOUNT_USE_OBJTOOL > is selected. Additionally, architectures can select HAVE_NOP_MCOUNT > if they choose to nop out mcount

[RFC PATCH 2/3] objtool: Enable and implement 'mcount' subcommand

2022-03-18 Thread Sathvika Vasireddy
This patch adds 'mcount' as a subcommand to objtool, and enables the same for x86. objtool is built if CONFIG_FTRACE_MCOUNT_USE_OBJTOOL is selected. Additionally, architectures can select HAVE_NOP_MCOUNT if they choose to nop out mcount call sites. If that config option is selected, then --mnop is