On Monday 28 February 2011, Elie Shaccour wrote:
> consider the following abstract code:
> jne .L2
> add
> sub
> 
> .L2:
> add
> sub
> 
> If the jump is taken 4 times and not taken once,in counting the number of
> times each asm executed I get the following:
> 5
> 1
> 1
> 1
> 1
> 4
> 4
> 
> is there a way to get:
> 5
> 1
> 1
> 5
> 5

In the callgrind output, the first output on each line will be the instruction 
address.
By summing up the numbers for each instruction address you should come up with 
what you
want. KCachegrind does the same. Or do I miss something?

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to