Page 1 of 1
instruction histogram

Posted:
Fri Sep 16, 2011 2:58 am
by mahmood
Dear all
I want to know if PAPI is able to create a histogram of retired instruction. This will help to find if a program is branch intensive, load/store intensive, integer ALU intensive and so on. Will PAPI do that?
Re: instruction histogram

Posted:
Fri Sep 16, 2011 10:36 am
by danterpstra
PAPI counts events. Those events could be retired instructions, retired branches, retired loads, etc. Depending on how many counters your processor supports and which events are countable by that processor, it would be possible to count events in each of these categories and build your own histogram.
Re: instruction histogram

Posted:
Fri Sep 16, 2011 12:21 pm
by mahmood
Let me ask in this way.
Suppose a program contains:
add....
mov...
fadd....
load....
mov...
load....
What I want is this histogram:
add: 1
fadd: 1
mov: 2
load: 2
Is PAPI capable of doing that?
Re: instruction histogram

Posted:
Fri Sep 16, 2011 1:43 pm
by vweaver1
no, PAPI cannot do that.
You want a tool like Intel's pin which I think includes a tool that does exactly what you describe.
Re: instruction histogram

Posted:
Sat Sep 17, 2011 3:17 am
by mahmood
ok I will ask them. thanks