From: Tim Bird <tim.bird@am.sony.com>
To: � <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org,
Arjan van de Ven <arjan@linux.intel.com>
Subject: Re: [PATCH 4/5] tracing/fastboot: Add a time field on the sched_switch entry
Date: Fri, 17 Oct 2008 16:29:37 -0700 [thread overview]
Message-ID: <48F91FE1.6030902@am.sony.com> (raw)
In-Reply-To: <c62985530810130110r5ba73d04wec70e597abd48126@mail.gmail.com>
� wrote:
> 2008/10/12 Fr�d�ric Weisbecker <fweisbec@gmail.com>:
>> 2008/10/12 Steven Rostedt <rostedt@goodmis.org>:
>>> You can tap into the context switch trace_point too, and have that record
>>> a special trace entry for you instead.
>
> Another thing I could do: when a sched switch entry occurs, I could
> send a special timestamp entry that
> fits my needs just before the commit of the sched entry, only if the
> current tracer is the boot tracer. This way I can output
> the appropriate timestamp just before output the sched entry.
>
> What do you think?
I may have lost context here, but what's the purpose of the
extra timestamp again? If it's just to have zero-based
timestamps on the ultimate output, can't you just put a single
special "start" timestamp in the trace log. Then that can
be subtraced from all tracer-generated stamps in post-processing.
I'm not familiar enough with the tracer to know if the
post-processing is done in kernel space. But in any event
you could use something like scripts/show_delta to get
relative timestamps (in user space). Right now, scripts/show_delta
doesn't act like a filter - I'll have to look at that.
Sorry if I'm just adding noise...
-- Tim
=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================
next prev parent reply other threads:[~2008-10-17 23:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-11 20:20 [PATCH 4/5] tracing/fastboot: Add a time field on the sched_switch entry Frederic Weisbecker
2008-10-11 20:45 ` Steven Rostedt
2008-10-11 20:58 ` Frédéric Weisbecker
2008-10-11 23:50 ` Steven Rostedt
2008-10-12 11:29 ` Frédéric Weisbecker
2008-10-13 8:10 ` Frédéric Weisbecker
2008-10-17 23:29 ` Tim Bird [this message]
2008-10-18 22:34 ` Frédéric Weisbecker
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=48F91FE1.6030902@am.sony.com \
--to=tim.bird@am.sony.com \
--cc=arjan@linux.intel.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.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