From: David Ahern <dsahern@gmail.com>
To: Arun Sharma <asharma@fb.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Using a new perf tool against an older kernel
Date: Thu, 23 Jun 2011 23:07:31 -0600 [thread overview]
Message-ID: <4E041B93.9030302@gmail.com> (raw)
In-Reply-To: <4E03DDB0.3050502@fb.com>
On 06/23/2011 06:43 PM, Arun Sharma wrote:
> On 6/23/11 5:11 PM, Frederic Weisbecker wrote:
>
>>
>> I'm confused, you first said it happens with new tools on older kernel.
>>
>> Can you tell us which combination of kernel/user raises the error? and
>> which error.
>>
I tried to repeat your examples below using perf-core tip (3.0-rc3,
af07ce3e77).
>
> perf-3.0 + 2.6.38
>
> perf record -agR gives:
>
> Can't find id 9's machine
> Found 1 unknown events!
This does not reproduce on 2.6.38.8-32.fc15.x86_64 running bare metal or
2.6.38 in a VM. If you are running bare metal try -e cpu-clock and see
if it is cycles related. I doubt it, but that should be the only
difference in the tests.
That said, I did see that message while working on the gettimeofday
patches a few weeks ago. I believe the root cause was the early mixture
of cycles and tracepoints -- something I fixed before sending out the
patches (sample_type hack as well as how the time-of-day trace events
were added to the event list).
>
> perf-3.0 + 2.6.32
>
> perf record -ag
> perf script
>
> samples have bogus timestamps
I'm surprised by this one. I tried with an older Fedora 12 VM (2.6.32.21
kernel). I don't get timestamps with perf-script and perf-report -D
shows -1 which is what I expect given that SAMPLE_TIME attribute is not
set by default. One difference here is that VM's default to cpu-clock
for the event.
>
> perf-3.0 + 2.6.32
>
> perf record -agR
> perf script
>
> error: Samples do not contain timestamps
And this one did not work out so well with the F-12 VM. It caused a
kernel panic - top line on console is perf_swevent_hrtimer (lines
scrolled off the top).
>
> perf-3.0 + any kernel
>
> perf record -agT
> perf script
>
> is happy everywhere. Thanks!
Which is what I would expect. Glad to see my version of reality apply
elsewhere. ;-)
David
>
> -Arun
>
prev parent reply other threads:[~2011-06-24 5:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 21:39 Using a new perf tool against an older kernel Arun Sharma
2011-06-23 14:22 ` David Ahern
2011-06-23 19:39 ` Arun Sharma
2011-06-23 20:02 ` David Ahern
2011-06-24 0:11 ` Frederic Weisbecker
2011-06-24 5:14 ` David Ahern
2011-06-24 0:11 ` Frederic Weisbecker
2011-06-24 0:43 ` Arun Sharma
2011-06-24 5:07 ` David Ahern [this message]
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=4E041B93.9030302@gmail.com \
--to=dsahern@gmail.com \
--cc=asharma@fb.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@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;
as well as URLs for NNTP newsgroup(s).