Hi Noah,

On 04/13/2014 11:55 PM, Noah Luther wrote:
> 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.

In the past I've found the test suite to be a useful reference. Here's a test
that looks like it might serve as a jumping-off point.

https://github.com/deater/perf_event_tests/blob/master/tests/record_sample/sample_branch_stack.c

Regards,
Christopher

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.
--
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