Noah Luther <nlut...@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

-- 
a...@linux.intel.com -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to