Re: [PATCH] scripts/recordmcount.pl: Support build with -ffunction-sections.

2012-10-30 Thread Steven Rostedt
On Tue, 2012-10-30 at 17:43 +, Will Newton wrote: > Ok, well we are only concerned with C compiled code, otherwise there > would be no calls to mcount? The only way I can think of to cause code > to be emitted in a section of this type is to use the section > attribute. A quick grep for __attr

Re: [PATCH] scripts/recordmcount.pl: Support build with -ffunction-sections.

2012-10-30 Thread Will Newton
On Tue, Oct 30, 2012 at 4:05 PM, Steven Rostedt wrote: > On Tue, 2012-10-30 at 15:35 +, Will Newton wrote: >> On Tue, Oct 30, 2012 at 3:05 PM, Steven Rostedt wrote: >> > On Tue, 2012-10-30 at 14:51 +, Will Newton wrote: >> >> Scan any text section whose name begins with ".text." so >> >>

Re: [PATCH] scripts/recordmcount.pl: Support build with -ffunction-sections.

2012-10-30 Thread Steven Rostedt
On Tue, 2012-10-30 at 15:35 +, Will Newton wrote: > On Tue, Oct 30, 2012 at 3:05 PM, Steven Rostedt wrote: > > On Tue, 2012-10-30 at 14:51 +, Will Newton wrote: > >> Scan any text section whose name begins with ".text." so > >> we will find all the functions in a kernel built with > >> -ff

Re: [PATCH] scripts/recordmcount.pl: Support build with -ffunction-sections.

2012-10-30 Thread Will Newton
On Tue, Oct 30, 2012 at 3:05 PM, Steven Rostedt wrote: > On Tue, 2012-10-30 at 14:51 +, Will Newton wrote: >> Scan any text section whose name begins with ".text." so >> we will find all the functions in a kernel built with >> -ffunction-sections. > > A couple of things. > > First, I'm very pa

Re: [PATCH] scripts/recordmcount.pl: Support build with -ffunction-sections.

2012-10-30 Thread Steven Rostedt
On Tue, 2012-10-30 at 14:51 +, Will Newton wrote: > Scan any text section whose name begins with ".text." so > we will find all the functions in a kernel built with > -ffunction-sections. A couple of things. First, I'm very paranoid about a blanket "ok" on sections. We must guarantee that all

[PATCH] scripts/recordmcount.pl: Support build with -ffunction-sections.

2012-10-30 Thread Will Newton
Scan any text section whose name begins with ".text." so we will find all the functions in a kernel built with -ffunction-sections. Signed-off-by: Will Newton --- scripts/recordmcount.pl |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/recordmcount.pl b/scr