|
From: adnan i. <adn...@se...> - 2010-10-20 16:58:30
|
Dear All, We are trying to port Valgrind to MIPS/Linux Architecture. When we enable instrumentation for tools (memcheck), the programs execute properly, however, instrumentation output is not displayed. For example, our client program has a malloc and that memory is not freed. When we run this program under valgrind with memcheck, memory leaks remain zero. Our observation shows that memcheck wrapper for malloc is replaced/redirected properly. The fact that this wrapper function actually gets called depends upon the macros in valgrind.h (VALGRIND_DO_CLIENT_REQUEST). We have implemented the code relating the magic sequence in VEX but this code never appears in the IR. Therefore, scheduler never receives the return code of VEX_JMP_TRC_CLIENTREQ. We are unable to figure out how magic sequence becomes part of the client code. Any thing that we are missing in the entire process? Thank you very much Adnan |