Hello

I'm trying to create a Valgrind tool that will print VEX IR only for IR
blocks corresponding to the code of the input program and will exclude IR
blocks corresponding to libraries.
I have used ppIRSB() inside the instrument function of the tool to print
VEX IR for every IR block encountered.

I have tried a simple program for testing this:
int main() { return 2+3; }
However, this seems to print VEX IR for libraries as well.
Is there a way to exclude blocks corresponding to libraries?

I believe one way could be to construct a call-graph by starting from the
main() function and only print blocks corresponding to functions that are
present in the call-graph.
As I understand, callgrind constructs a call-graph and keeps track of
function names. Can callgrind's call-graph construction be repurposed to
obtain a call-graph starting from main()?

Any help with this would be appreciated.

Thanks
Yashas

-- 


Disclaimer:- This footer text is to convey that this email is sent by one 
of the users of IITH. So, do not mark it as SPAM.
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to