All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <daahern@cisco.com>
To: Arun Sharma <asharma@fb.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: perf script and raw events?
Date: Tue, 22 Mar 2011 17:17:34 -0600	[thread overview]
Message-ID: <4D892E0E.3010505@cisco.com> (raw)
In-Reply-To: <20110322224116.GA3794@dev1756.snc6.facebook.com>



On 03/22/11 16:41, Arun Sharma wrote:
> David,
> 
> # perf record -agR -e cycles -- sleep 1
> # perf script
> 
> gives me nice list of stack traces. However if I use
> a raw event such as:
> 
> # perf record -agR -e r53003c -- sleep 1
> # perf script

Works fine for me (with your raw patch for perf-script):

# /tmp/build-perf/perf record -agR -e r53003c -- sleep 1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.147 MB perf.data (~6438 samples) ]

# /tmp/build-perf/perf script

perf 27684 [000] 180983.511378: raw 0x53003c:
        ffffffff810d696b put_mems_allowed ([kernel.kallsyms])
        ffffffff810cbfa9 perf_mmap_alloc_page ([kernel.kallsyms])
        ffffffff810ccd13 perf_mmap ([kernel.kallsyms])
        ffffffff810f1772 mmap_region ([kernel.kallsyms])
        ffffffff810f1c02 do_mmap_pgoff ([kernel.kallsyms])

...

What is that raw event? Where do you find the encodings for raw events?

David

> 
> I get no traces and perf script immediately exits. Do you know why?
> 
>  -Arun

       reply	other threads:[~2011-03-22 23:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20110322224116.GA3794@dev1756.snc6.facebook.com>
2011-03-22 23:17 ` David Ahern [this message]
2011-03-23  0:44   ` perf script and raw events? Lin Ming
2011-03-23  1:25   ` 陳韋任

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=4D892E0E.3010505@cisco.com \
    --to=daahern@cisco.com \
    --cc=asharma@fb.com \
    --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 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.