From: Ingo Molnar <mingo@elte.hu>
To: "Miklos Szeredi" <miklos@szeredi.hu>,
"Frédéric Weisbecker" <fweisbec@gmail.com>,
"Peter Zijlstra" <a.p.zijlstra@chello.nl>
Cc: rostedt@goodmis.org, linux-kernel@vger.kernel.org
Subject: Re: wrong timestamps in ftrace?
Date: Tue, 17 Mar 2009 16:27:53 +0100 [thread overview]
Message-ID: <20090317152753.GD13895@elte.hu> (raw)
In-Reply-To: <E1Ljb4V-0005Tz-44@pomaz-ex.szeredi.hu>
* Miklos Szeredi <miklos@szeredi.hu> wrote:
> I've started playing with ftrace and timestamps seem to be
> misbehaving.
>
> # echo 0 > /sys/kernel/debug/tracing/tracing_enabled
> # echo nop > /sys/kernel/debug/tracing/current_tracer
> # echo 131072 > /sys/kernel/debug/tracing/buffer_size_kb
> # echo sched_switch > /sys/kernel/debug/tracing/current_tracer
> # echo 1 > /sys/kernel/debug/tracing/tracing_enabled
> # sleep 10
> # echo 0 > /sys/kernel/debug/tracing/tracing_enabled
> # cat /sys/kernel/debug/tracing/trace > /tmp/trace.txt
> # ls -lh /tmp/trace.txt
> -rw-r--r-- 1 root root 96K Mar 17 16:11 /tmp/trace.txt
> # head -5 /tmp/trace.txt | tail -1
> bash-4908 [001] 212.139730: 4908:120:S + [001] 4845:120:S
> # tail -1 /tmp/trace.txt
> kondemand/1-1020 [001] 212.261054: 1020:115:S ==> [001] 0:140:R
>
> So according to the timestamps the time difference between the first
> and last event was just 0.12s, which is rubbish.
>
> This is latest git on a CoreDuo T60 notebook. Attaching .config and
> dmesg.
There's been changes to timestamping in the tracing tree. Could you
check whether latest -tip:
http://people.redhat.com/mingo/tip.git/README
works better for you?
Ingo
next prev parent reply other threads:[~2009-03-17 15:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 15:19 Miklos Szeredi
2009-03-17 15:27 ` Ingo Molnar [this message]
2009-03-17 16:07 ` Miklos Szeredi
2009-03-17 16:11 ` 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=20090317152753.GD13895@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.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®