linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: HUMMEL Michel <michel.hummel@thalesgroup.com>
Cc: "linux-perf-users@vger.kernel.org" <linux-perf-users@vger.kernel.org>
Subject: Re: Perf 2.6.32-220.el6.x86_64 problem when recording 2 counters
Date: Thu, 24 May 2012 08:57:13 -0600	[thread overview]
Message-ID: <4FBE4C49.7060703@gmail.com> (raw)
In-Reply-To: <25548_1337843693_4FBDDFED_25548_4972_1_932AC94CE5A51243A6F091BAFB3EE3E0028AB956D2@THSONEA01CMS01P.one.grp>

On 5/24/12 1:14 AM, HUMMEL Michel wrote:
> I've written the test to run bad_perfo first, and then good_perfo and now only bad_perfo is in the report :
>
> $ perf record -e  cycles,instructions  -o perf.data.cycles.instructions2 ./test_perfo2
> $ perf report -i perf.data.cycles.instructions2 --stdio
> # Events: 8K cycles
> #
> # Overhead  Command      Shared Object                     Symbol
> # ........  .......  .................  .........................
> #
>      99.52%  test_perfo2  test_perfo2        [.] bad_perfo
>       0.06%  test_perfo2  [kernel.kallsyms]  [k] copy_page_c
>       0.05%  test_perfo2  [kernel.kallsyms]  [k] apic_timer_interrupt
>       0.04%  test_perfo2  [kernel.kallsyms]  [k] run_timer_softirq
>
>
> # Events: 8K instructions
> #
> # Overhead  Command      Shared Object                   Symbol
> # ........  .......  .................  .......................
> #
>      99.82%  test_perfo2  test_perfo2        [.] bad_perfo
>       0.04%  test_perfo2  ld-2.12.so         [.] _dl_lookup_symbol_x
>       0.01%  test_perfo2  [kernel.kallsyms]  [k] clear_page_c
>       0.01%  test_perfo2  [kernel.kallsyms]  [k] update_wall_time
>

Can you try an upstream version of the perf binary? It should be able to 
read the data file. You can use the perf-script command to dump the 
events and look at what was recorded and which type of event (cycles vs 
instructions). Adding -R to the record will get the timestamp added to 
each sample and look at the delta time between samples. Maybe that will 
give a clue.

David

  reply	other threads:[~2012-05-24 14:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-23 16:06 Perf 2.6.32-220.el6.x86_64 problem when recording 2 counters HUMMEL Michel
2012-05-24  0:33 ` Michael Ellerman
2012-05-24  7:14   ` HUMMEL Michel
2012-05-24 14:57     ` David Ahern [this message]
2012-05-24 16:19       ` HUMMEL Michel
2012-05-24 16:27         ` David Ahern
2012-05-24  0:44 ` Namhyung Kim
2012-05-24  7:23   ` HUMMEL Michel

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=4FBE4C49.7060703@gmail.com \
    --to=dsahern@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=michel.hummel@thalesgroup.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 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).