From: Tim Bird <tim.bird@am.sony.com>
To: Iram Shahzad <iram.shahzad@jp.fujitsu.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: FUNCTION_TRACER: can it be used to trace early bootup functions
Date: Mon, 24 May 2010 16:32:07 -0700 [thread overview]
Message-ID: <4BFB0C77.2030904@am.sony.com> (raw)
In-Reply-To: <06EE497F774E482693005209CB740D6A@rainbow>
On 05/23/2010 11:55 PM, Iram Shahzad wrote:
> Hi
>
> I would like to know whether the Kernel Function Tracer
> (kernel/trace/trace_functions) be used to trace early kernel
> bootup functions starting from start_kernel?
> My arch is ARM, by the way.
>
>
> I have done some trials but it doesn't seem to trace early
> bootup functions. I even made it the default tracer replacing
> the nop tracer, but still it doesn't give me trace from
> start_kernel.
>
> Looking at the source code, it seems to me that it starts
> recording data only after its own initialization. So does it
> mean that by design it does not support early tracing?
By design, the trace code is initialized during
initcall processing. This means you miss all initialization
up to this point in the kernel.
Measuring this on my own ARM platforms, I have found that
this results in missing about the first 50 milliseconds
of kernel initialization (from start_kernel() to the
tracer initialization). For me, this is not a big
problem. Note that you can't measure the period
of time from start_kernel() to whenever the ARM memory
and clocks are initialized.
IMHO the best way to measure stuff between the end
of bootloader and tracer initialization is with an
external tracer, like http://elinux.org/Grabserial
and using CONFIG_DEBUG_LL, and your own calls to
printascii() on ARM.
-- Tim
=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Network Entertainment
=============================
next prev parent reply other threads:[~2010-05-24 23:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-24 6:55 FUNCTION_TRACER: can it be used to trace early bootup functions Iram Shahzad
2010-05-24 23:32 ` Tim Bird [this message]
2010-05-25 0:58 ` Iram Shahzad
2010-05-25 1:55 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BFB0C77.2030904@am.sony.com \
--to=tim.bird@am.sony.com \
--cc=iram.shahzad@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox