|
From: Mikael J. <ma...@mi...> - 2012-07-22 18:18:06
|
Hi, I'm working on a tool to intercept store/load access to memory in order to do sort-of a manual garbage collector. The tool is based on memcheck and lackey. The issue I'm facing is that the custom client allocator gives me an address in client space (obviously), whereas the instrument callback w/ has addresses in host space. Example: -> new block 0x41C7028 Ist_Store: Write at 0x384D3024. What I want to do is to map the addresses I get from the various Ist_* into the address the client is using. I can't find anything obvious, except for the note inside lk_main.c that "There is no consideration of virtual-to-physical address mapping. This may not matter for many purposes.". Well, for me it matter, but I don't know how to do the mapping myself. Where do I look? Thanks in advance, -- Mikael Jansson http://mikael.jansson.be |