Re: [RFC][PATCH v4 02/32] objtool: Make recordmcount into mcount subcmd

2020-06-09 Thread Julien Thierry
On 6/9/20 7:39 PM, Matt Helsley wrote: On Tue, Jun 09, 2020 at 10:00:59AM +0100, Julien Thierry wrote: Hi Matt, On 6/2/20 8:49 PM, Matt Helsley wrote: Rather than a standalone executable merge recordmcount as a sub command of objtool. This is a small step towards cleaning up recordmcount

Re: [RFC][PATCH v4 02/32] objtool: Make recordmcount into mcount subcmd

2020-06-09 Thread Matt Helsley
On Tue, Jun 09, 2020 at 02:52:07PM -0400, Steven Rostedt wrote: > On Tue, 9 Jun 2020 11:39:51 -0700 > Matt Helsley wrote: > > > > > +ifeq ($(SRCARCH),sparc) > > > > + SUBCMD_MCOUNT := y > > > > > > Is there some arch for which MCOUNT is not supported? If not you could > > > just > > >

Re: [RFC][PATCH v4 02/32] objtool: Make recordmcount into mcount subcmd

2020-06-09 Thread Steven Rostedt
On Tue, 9 Jun 2020 11:39:51 -0700 Matt Helsley wrote: > > > +ifeq ($(SRCARCH),sparc) > > > + SUBCMD_MCOUNT := y > > > > Is there some arch for which MCOUNT is not supported? If not you could just > > have MCOUNT default to 'y' and avoid adding all those tests (or maybe reduce > > the numbers

Re: [RFC][PATCH v4 02/32] objtool: Make recordmcount into mcount subcmd

2020-06-09 Thread Matt Helsley
On Tue, Jun 09, 2020 at 10:00:59AM +0100, Julien Thierry wrote: > Hi Matt, > > On 6/2/20 8:49 PM, Matt Helsley wrote: > > Rather than a standalone executable merge recordmcount as a sub command > > of objtool. This is a small step towards cleaning up recordmcount and > > eventually sharing ELF

Re: [RFC][PATCH v4 02/32] objtool: Make recordmcount into mcount subcmd

2020-06-09 Thread Julien Thierry
Hi Matt, On 6/2/20 8:49 PM, Matt Helsley wrote: Rather than a standalone executable merge recordmcount as a sub command of objtool. This is a small step towards cleaning up recordmcount and eventually sharing ELF code with objtool. For the initial step all that's required is a bit of Makefile