How to generate a listing of branches with Intel Pin tool?

Viewed 2044

I am relatively new to using the Intel Pin tool for code instrumentation and I am attempting to study Branch Prediction. Specifically, I would like to generate a listing of all the branches, their branch targets, and whether they are taken/not taken. I know there are pintools in the SimpleExamples for generating memory address traces such as the "pinatrace.cpp" tool, but I don't see any that suit my needs for listing branches.

Is there an existing pintool somewhere in the examples that I can use, or will I need to write a new pintool?

I am using pin-2.14 on a Linux computer.

Thanks!

1 Answers
Related