Patent ID: 7669189

Claim:
A computer-implemented method of monitoring memory accesses for a computer program including a plurality of processes, the computer-implemented method comprising: receiving input to monitor memory accesses to a memory region that is shared by the plurality of processes included in the computer program; directing each of the plurality of processes to monitor memory accesses to the memory region; monitoring memory accesses to the memory region using each of the plurality of processes, wherein each of the plurality of processes performs the monitoring without using a process external to the computer program; writing to a log of memory accesses to the memory region by the plurality of processes, wherein each entry in the log comprises an address of the memory region being accessed, a value stored at the address of the memory region being accessed, an identifier of a process performing accessing of the address of the memory region being accessed, and a listing of a stack of functions leading to accessing of the address of the memory region being accessed; and setting a configuration parameter to control a number of functions that will be recorded for each entry of the log in the listing of the stack of functions.