From: "Frédéric Weisbecker" <fweisbec@gmail.com>
To: "Ingo Molnar" <mingo@elte.hu>
Cc: "Arjan van de Ven" <arjan@infradead.org>,
"Steven Rostedt" <rostedt@goodmis.org>,
Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 6/6] tracing/fastboot: Print ktime of sched events when boot tracing
Date: Fri, 10 Oct 2008 16:47:46 +0200 [thread overview]
Message-ID: <c62985530810100747m1094590ei5225f3a62e3d2248@mail.gmail.com> (raw)
In-Reply-To: <20081010140534.GB13137@elte.hu>
2008/10/10 Ingo Molnar <mingo@elte.hu>:
>
> * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>
>> When we use the boot tracer, we want the sched events to be printed
>> with the same timestamp than initcall events. So we have to create a
>> new type of entry which contains sched event attributes and the ktime
>> of the creation of the entry. Then the output is handled by the boot
>> tracer.
>
> hm, i think that's unnecessary duplication. Please extend the context
> switch trace entries to be useful for the boot tracer as well:
>
Ok. I will change it in V2.
> also, ktime_get() can be a quite complex function with dependency on
> xtime_lock - that inverts with the rq lock - so this can lock up
> sporadically when called from within the scheduler.
> it would be _much_ simpler to standardize the initcall timestamps on
> cpu_clock() instead. That too is a good global clock and starts at zero
> during bootup. Ok?
Hmm. Ok, I will pick what I saw about cpu_clock() in printk.c
> Your other patches look good and i've applied them to
> tip/tracing/fastboot:
>
> 3981ce9: tracing/fastboot: use sched switch tracer from boot tracer
> 563582a: tracing/ftrace: remove unused code in sched_switch tracer
> d25b1ce: tracing/ftrace: fix a race condition in sched_switch tracer
Thanks. But are you really sure about d25b1ce?
Steven suggested some changes. But it doesn't matter, I can apply his
suggestions on top of this applied patch.
next prev parent reply other threads:[~2008-10-10 14:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-10 14:34 Frederic Weisbecker
2008-10-10 13:02 ` Frédéric Weisbecker
2008-10-10 14:05 ` Ingo Molnar
2008-10-10 14:47 ` Frédéric Weisbecker [this message]
2008-10-10 14:49 ` Ingo Molnar
2008-10-10 19:45 ` Ingo Molnar
2008-10-11 20:03 ` Frédéric Weisbecker
2008-10-11 20:04 ` 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=c62985530810100747m1094590ei5225f3a62e3d2248@mail.gmail.com \
--to=fweisbec@gmail.com \
--cc=arjan@infradead.org \
--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
all inboxes | Powered by JetHome®