All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corey Ashford <cjashfor@linux.vnet.ibm.com>
To: Stephane Eranian <eranian@google.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	"Frédéric Weisbecker" <fweisbec@gmail.com>,
	"Arnaldo Carvalho de Melo" <acme@redhat.com>,
	"Peter Zijlstra" <peterz@infradead.org>,
	mingo@elte.hu, "Robert Richter" <robert.richter@amd.com>
Subject: Re: [BUG] perf sched broken
Date: Wed, 12 Jan 2011 14:35:10 -0800	[thread overview]
Message-ID: <4D2E2C9E.2010805@linux.vnet.ibm.com> (raw)
In-Reply-To: <AANLkTim=jawJyBj0iFd0r4-LCKzvjFW+NddzJMD5GUB9@mail.gmail.com>

On 01/12/2011 01:29 AM, Stephane Eranian wrote:
> Hi,
>
> I am trying to use perf sched from tip-x86 but it fails for all my attempts.
>
> First of, I think the event list is stale. This is not so much the
> events themselves
> but rather the flags.

I'm currently using the master branch of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git

Without your :r patch, I do see the problem with the :r modifier, but 
this sequence

$ perf record -R -a -c 1 -e sched:sched_switch -- sleep 1
 > [ perf record: Woken up 1 times to write data ]
 > [ perf record: Captured and wrote 0.365 MB perf.data (~15962 samples) ]
 > $./perf report -D

is working fine for me.  I even removed /usr/bin from my search path to 
make sure /usr/bin/perf wasn't getting found during the run of ./perf.

I am running on a different environment than you, though.  I am using 
Fedora 14 (2.6.35 kernel).

For the record, this is what I see:
[root@oc7708135540 perf]# ./perf report -D
WARNING: No sample_id_all support, falling back to unordered processing

0x100 [0x40]: event: 1
.
. ... raw event: size 64 bytes
.  0000:  01 00 00 00 01 00 40 00 ff
  ff ff ff 00 00 00 00  ...
...@.........
.  0010:  00 00 00 00 00 00 00 00 ff
  ff ff 9f ff ff ff ff  ...
.............
.  0020:  00 00 00 81 ff ff ff ff 5b
  6b 65 72 6e 65 6c 2e  ...
.....[kernel.
.  0030:  6b 61 6c 6c 73 79 6d 73 5d
  5f 74 65 78 74 00 00  kal
lsyms]_text..
.
-1 -1 0x100 [0x40]: PERF_RECORD_MMAP -1/0: [0(0xffffffff9fffffff) @ 
0xffffffff81000000]: [kernel
.kallsyms]_text

0x140 [0x38]: event: 1
.
. ... raw event: size 56 bytes
.  0000:  01 00 00 00 01 00 38 00 ff
  ff ff ff 00 00 00 00  ...
...8.........
.  0010:  00 00 00 a0 ff ff ff ff ff
  2f 00 00 00 00 00 00  ...
....../......
.  0020:  00 00 00 00 00 00 00 00 5b
  6f 75 74 70 75 74 5d  ...
.....[output]
.  0030:  00 00 00 00 00 00 00 00
                         ...
.....
.
-1 -1 0x140 [0x38]: PERF_RECORD_MMAP -1/0: [0xffffffffa0000000(0x2fff) @ 
0]: [output]

.. and so on ..


I will look into the :r problem now.

- Corey

  parent reply	other threads:[~2011-01-12 22:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12  9:29 [BUG] perf sched broken Stephane Eranian
2011-01-12 12:11 ` Arnaldo Carvalho de Melo
2011-01-12 19:10   ` Corey Ashford
2011-01-12 19:41 ` Corey Ashford
2011-01-12 19:52   ` Stephane Eranian
2011-01-12 20:22     ` Corey Ashford
2011-01-12 22:35 ` Corey Ashford [this message]
2011-01-12 22:38   ` Stephane Eranian
2011-01-13  1:53 ` Corey Ashford
2011-01-13 13:20   ` Arnaldo Carvalho de Melo
2011-01-14  7:25 ` [tip:perf/urgent] perf sched: Fix list of events, dropping unsupported ':r' modifier tip-bot for Stephane Eranian
2011-08-03 10:59   ` Peter Zijlstra
2011-08-03 11:37     ` Frederic Weisbecker
2011-08-03 11:42       ` Peter Zijlstra
2011-08-03 11:57         ` Frederic Weisbecker
2011-08-03 12:05           ` Peter Zijlstra
2011-08-03 12:11             ` Frederic Weisbecker
2011-08-03 12:18               ` Peter Zijlstra
2011-08-03 17:06                 ` Arnaldo Carvalho de Melo
2011-08-03 19:49                   ` Peter Zijlstra

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=4D2E2C9E.2010805@linux.vnet.ibm.com \
    --to=cjashfor@linux.vnet.ibm.com \
    --cc=acme@redhat.com \
    --cc=eranian@google.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    --cc=robert.richter@amd.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.