|
From: Paweł <paw...@gm...> - 2010-04-14 08:01:02
|
Hi I need to list all executed basic blocks in a program. Since speed is critical, I want to modify exp-bbv, to handle only BBs, not instructions. In short: I want to list, not count, basic blocks only, how to do that? Thanks, Paul |
|
From: Brad H. <br...@fr...> - 2010-04-17 00:11:10
|
On Wednesday 14 April 2010 06:00:57 pm Paweł wrote: > I need to list all executed basic blocks in a program. Since speed is > critical, I want to modify exp-bbv, to handle only BBs, not instructions. > > In short: I want to list, not count, basic blocks only, how to do that? I don't have an easy answer for this with valgrind, but if speed is really critical, maybe valgrind isn't the best tool for this task. Perhaps a lightweight tool like pin or dynamorio would be more suitable? I think there is even an example in dynamiorio that does basically what you're asking for, if you munge some debug macros. I'm not that familiar with pin, so it may or may not be suitable. [There might be good reasons why you want to use valgrind, so apologies for the off-topic followup.] Brad |
|
From: Julian S. <js...@ac...> - 2010-04-19 07:07:44
|
On Saturday 17 April 2010, Brad Hards wrote: > On Wednesday 14 April 2010 06:00:57 pm Paweł wrote: > > I need to list all executed basic blocks in a program. Since speed is > > critical, I want to modify exp-bbv, to handle only BBs, not instructions. > > > > In short: I want to list, not count, basic blocks only, how to do that? Use a cut-down version of --tool=lackey. I'm sure it can already do that, if you have a look at its command line arguments. J |