From: Andi Kleen <andi@firstfloor.org>
To: Noah Luther <nluther@vt.edu>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: perf branch
Date: Mon, 14 Apr 2014 10:41:07 -0700 [thread overview]
Message-ID: <87a9bnizbg.fsf@tassilo.jf.intel.com> (raw)
In-Reply-To: <CAH+i1GK4QdEzoa05PUN-Zx8Gzr2-w0RY631a9MzvTvyMAs1fGg@mail.gmail.com> (Noah Luther's message of "Sun, 13 Apr 2014 23:55:53 -0400")
Noah Luther <nluther@vt.edu> writes:
> Hello,
>
> I am trying to use perf to trace branches as described by the 'perf
> branch' subcommand. Is there support through perf_event_open to access
> the buffer storing branch traces? I saw Akihiro Nagai's presentation
> on 'perf branch', but haven't yet figured out how to enable BTS and
> access the buffer based on the documentation on this page:
>
> http://web.eece.maine.edu/~vweaver/projects/perf_events/perf_event_open.html
>
> If there are any resources that might be of use to me, I would
> appreciate any assistance.
perf branch never made it, but you can use
perf record -e branches:u -c1 ...
perf script
Also the latest GDB snapshots have builtin support for BTS through
perf in a somewhat more convenient interface.
Keep in mind that BTS is quite slow and often cannot keep up.
In the future ProcessorTrace will be better.
-Andi
--
ak@linux.intel.com -- Speaking for myself only
prev parent reply other threads:[~2014-04-14 17:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 3:55 perf branch Noah Luther
2014-04-14 12:53 ` Christopher Covington
2014-04-14 17:41 ` Andi Kleen [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=87a9bnizbg.fsf@tassilo.jf.intel.com \
--to=andi@firstfloor.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=nluther@vt.edu \
/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