mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Frederic Weisbecker <fweisbec@gmail.com>
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:05:34 +0200	[thread overview]
Message-ID: <20081010140534.GB13137@elte.hu> (raw)
In-Reply-To: <20081010123450.8D3E6D1BCF0@perso1.free.fr>


* 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:

> +	entry->time			= ktime_get();

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?

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,

	Ingo

  parent reply	other threads:[~2008-10-10 14:06 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 [this message]
2008-10-10 14:47   ` Frédéric Weisbecker
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=20081010140534.GB13137@elte.hu \
    --to=mingo@elte.hu \
    --cc=arjan@infradead.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --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®