[Lucid][SRU] fsl-imx51: Turn on CONFIG_FUNCTION_TRACER option will encounter a linking error

AceLan Kao acelan.kao at canonical.com
Tue May 4 04:02:28 UTC 2010


Dear Bryan,

Done.

And it seems that fsl-imx51 branch doesn't have too much features of
the ftrace, such as FUNCTION_GRAPH_TRACER, DYNAMIC_FTRACE, MMIOTRACE,
... ...

So, we might need to enable the following options for the basic ftrace functions
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_PROFILER=y
CONFIG_FTRACE_SELFTEST=y
CONFIG_FTRACE_STARTUP_TEST=y

The following changes since commit 6cd3b3af35f35d128d26eb1ff0064f209a452cf7:
  Uwe Kleine-König (1):
        [ARM] support tracing when using newer compilers

are available in the git repository at:

  git://kernel.ubuntu.com/acelan/ubuntu-lucid lp574158

Uwe Kleine-König (1):
      [ARM] support tracing when using newer compilers

 arch/arm/include/asm/ftrace.h  |    1 +
 arch/arm/kernel/armksyms.c     |    1 +
 arch/arm/kernel/entry-common.S |   19 +++++++++++++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)

2010/5/4 Bryan Wu <bryan.wu at canonical.com>:
>
>
> On 05/03/2010 03:47 PM, AceLan Kao wrote:
>>
>> BugLink:
>> https://bugs.launchpad.net/ubuntu/+source/linux-fsl-imx51/+bug/574158
>>
>> __gnu_mcount_nc() function is implemented in the commit
>> a8a48cd5add67494d96c13718cab36c465863d07 in the Lucid kernel tree,
>> we have to cherry pick this commit to make sure the ftrace could be
>> compiled and works in the fsl-mx51 branch
>>
>> I cherry pick this commit and test it on my H/W, the ftrace works,
>> please consider to git pull this following patches from:
>>        git://kernel.ubuntu.com/acelan/ubuntu-lucid lp574158
>>
>> Thanks,
>>
>
> Great, this patch will let us to play with ftrace in fsl-imx51.
> And just one comment, could you please add the BugLink info and cherry-pick
> comments into this commit? just like this,
> http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-lucid.git;a=commit;h=29c60ccc1a408371885d79d8f8c081fbcb9b10be
>
> And one more question, need we enable the CONFIG_FTRACE_* in fsl-imx51
> config?
>
> --
> Bryan Wu <bryan.wu at canonical.com>
> Kernel Developer    +86.138-1617-6545 Mobile
> Ubuntu Kernel Team | Hardware Enablement Team
> Canonical Ltd.      www.canonical.com
> Ubuntu - Linux for human beings | www.ubuntu.com
>



-- 
Chia-Lin Kao(AceLan)
http://blog.acelan.idv.tw/
E-Mail: acelan.kaoATcanonical.com (s/AT/@/)




More information about the kernel-team mailing list