|
From: Sanjay H A <san...@ly...> - 2008-03-04 14:31:07
|
Hi all <br> <br>I want to collect Basic Block Ids ( similar to the trace given by PIN -intel) of an program. <br> <br>Anyone knows how to collect the Basic Block IDs using Valgrind <br> <br>I used the below command <br> <br>valgrind --tool=lackey --trace-superblocks=yes <your-program> <br> <br>It gives Super Block addresses like : SB 329f500a80 <br> SB 329f5011a1 <br> .... <br> <br>Instead of this, I want to collect Basic Block Ids like : 10 <br> 6 <br> 4 <br> .... <br> <br>Can anyone help? <br> <br>Thanx <br>Cheers <br>Sanjay <br> <br> |
|
From: Nicholas N. <nj...@cs...> - 2008-03-04 21:11:54
|
On Tue, 4 Mar 2008, Sanjay H A wrote: > I want to collect Basic Block Ids ( similar to the trace given by PIN > -intel) of an program. > > Anyone knows how to collect the Basic Block IDs using Valgrind > > I used the below command > > valgrind --tool=lackey --trace-superblocks=yes > > It gives Super Block addresses like : SB 329f500a80 > SB 329f5011a1 > .... > > Instead of this, I want to collect Basic Block Ids like : 10 > 6 > 4 > .... Does the address not suffice as an ID? If not, could you map addresses onto small integers? It shouldn't be hard to modify Lackey to do this. Nick |