fsl-imx51: Turn on CONFIG_FUNCTION_TRACER option will encounter a linking error
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@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=29c60ccc1a408371885d79d8f8c08 1fbcb9b10be > > And one more question, need we enable the CONFIG_FTRACE_* in fsl-imx51 > config? > > -- > Bryan Wu <bryan.wu@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/@/) -- kernel-team mailing list kernel-team@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kernel-team |
fsl-imx51: Turn on CONFIG_FUNCTION_TRACER option will encounter a linking error
On Tue, May 4, 2010 at 12:52 AM, Bryan Wu <bryan.wu@canonical.com> wrote:
> On 05/04/2010 12:02 PM, AceLan Kao wrote: >> CONFIG_FUNCTION_PROFILER=y > > this one is not enabled in our x86 master branch config. A patch to turn this on for the x86 kernels was just applied and should go out in the next SRU release. I suggest enabling it for ARM as well. It only affects things when you enable it at runtime. >> CONFIG_FTRACE_SELFTEST=y >> CONFIG_FTRACE_STARTUP_TEST=y > > These 2 testing configs are not enabled in master either, so it might not be > turned on as default in fsl-imx51. I don't think these are necessary either. > Maybe we need to go through those FTRACE configs in our UDS-M. I agree, although I believe the x86 configuration is pretty good now. If it's mirrored for ARM then we're probably set. -- Chase -- kernel-team mailing list kernel-team@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kernel-team |
fsl-imx51: Turn on CONFIG_FUNCTION_TRACER option will encounter a linking error
Dear all,
Can anyone help to review this cherry-pick, it was pending for a month? We need this cherry-pick to enable FTRACE option, so that we could do some kernel debugging. Best regards, AceLan Kao. 2010/5/4 Chase Douglas <chase.douglas@canonical.com>: > On Tue, May 4, 2010 at 12:52 AM, Bryan Wu <bryan.wu@canonical.com> wrote: >> On 05/04/2010 12:02 PM, AceLan Kao wrote: >>> CONFIG_FUNCTION_PROFILER=y >> >> this one is not enabled in our x86 master branch config. > > A patch to turn this on for the x86 kernels was just applied and > should go out in the next SRU release. I suggest enabling it for ARM > as well. It only affects things when you enable it at runtime. > >>> CONFIG_FTRACE_SELFTEST=y >>> CONFIG_FTRACE_STARTUP_TEST=y >> >> These 2 testing configs are not enabled in master either, so it might not be >> turned on as default in fsl-imx51. > > I don't think these are necessary either. > >> Maybe we need to go through those FTRACE configs in our UDS-M. > > I agree, although I believe the x86 configuration is pretty good now. > If it's mirrored for ARM then we're probably set. > > -- Chase > > -- > kernel-team mailing list > kernel-team@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/kernel-team > -- Chia-Lin Kao(AceLan) http://blog.acelan.idv.tw/ E-Mail: acelan.kaoATcanonical.com (s/AT/@/) -- kernel-team mailing list kernel-team@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kernel-team |
fsl-imx51: Turn on CONFIG_FUNCTION_TRACER option will encounter a linking error
On Thu, Jun 17, 2010 at 1:57 PM, AceLan Kao <acelan.kao@canonical.com> wrote:
> Dear all, > > Can anyone help to review this cherry-pick, it was pending for a month? > We need this cherry-pick to enable FTRACE option, so that we could do > some kernel debugging. > linux-2.6 $> git blog arch/arm/kernel/entry-common.S f8b7256 Unify sys_mmap* 4fb2847 ARM: 5727/1: Pass IFSR register to do_PrefetchAbort() 6176d39 ARM: 5734/1: arm: fix compilation of entry-common.S for older CPUs 2ca7d67 Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 87d721a Merge branch 'master' into devel ddd559b Merge branch 'devel-stable' into devel d0420c8 KEYS: Extend TIF_NOTIFY_RESUME to (almost) all architectures [try #6] 9b2616c Merge branch 'for-rmk-2.6.32' of git://git.pengutronix.de/git/ukl/linux-2.6 into devel-stable 3698426 ARM: 5677/1: ARM support for TIF_RESTORE_SIGMASK/pselect6/ppoll/epoll_pwait 181f817 [ARM] support tracing when using newer compilers The patch is merged in upstream as commit 181f817, and commit 6176d39 fixed one of the build issue introduced within this commit. So I guess you need to cherry-pick both of them. When that's done, Acked-by: Eric Miao <eric.miao@canonical.com> -- kernel-team mailing list kernel-team@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kernel-team |
| All times are GMT. The time now is 07:27 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.