Re: [PATCH v6 02/25] objtool: Add a pass for generating __mcount_loc

2020-10-15 Thread Josh Poimboeuf
On Wed, Oct 14, 2020 at 08:21:15PM +0200, Peter Zijlstra wrote: > On Wed, Oct 14, 2020 at 06:50:04PM +0200, Ingo Molnar wrote: > > Meh, adding --mcount as an option to 'objtool check' was a valid hack for a > > prototype patchset, but please turn this into a proper subcommand, just > > like

Re: [PATCH v6 02/25] objtool: Add a pass for generating __mcount_loc

2020-10-14 Thread Peter Zijlstra
On Wed, Oct 14, 2020 at 06:50:04PM +0200, Ingo Molnar wrote: > Meh, adding --mcount as an option to 'objtool check' was a valid hack for a > prototype patchset, but please turn this into a proper subcommand, just > like 'objtool orc' is. > > 'objtool check' should ... keep checking. :-) No, no

Re: [PATCH v6 02/25] objtool: Add a pass for generating __mcount_loc

2020-10-14 Thread Ingo Molnar
* Sami Tolvanen wrote: > From: Peter Zijlstra > > Add the --mcount option for generating __mcount_loc sections > needed for dynamic ftrace. Using this pass requires the kernel to > be compiled with -mfentry and CC_USING_NOP_MCOUNT to be defined > in Makefile. > > Link: >

[PATCH v6 02/25] objtool: Add a pass for generating __mcount_loc

2020-10-12 Thread Sami Tolvanen
From: Peter Zijlstra Add the --mcount option for generating __mcount_loc sections needed for dynamic ftrace. Using this pass requires the kernel to be compiled with -mfentry and CC_USING_NOP_MCOUNT to be defined in Makefile. Link: