|
From: Julian S. <js...@ac...> - 2006-01-11 12:57:25
|
> is my question: can I just obtain that by reading the current memory > contents at the given address at the time the instrumentation function > gets executed? From looking at the source code, I assume that yes, > because the instrumentation appears to be always after (later in the > basic block than) the instruction(s) it instruments. Could someone > please confirm or deny whether I understand the code correctly? I think that's right (not 100% sure). Use --tool=cachegrind --trace-flags=10001000 to see the relationship between the initial IR and the instrumented IR. The calls to simulation functions are grouped in sets of up to 8 for efficiency reasons, so the instrumented IR looks a bit strange at first. J |