There is program running which has globally initialized large arrays. I want to verify which index of that large array is getting accessed from another program running in the same machine simultaneously.
I saw how to get a set of pages in the physical memory for a given process proc_id and I also saw how the physical memory of system can be accessed directly. But how to verify which block is getting accessed currently.
How to access the global data segment access pattern of another process is the question. If anyone can direct me to any code example or any api that has this functionality it would be helpful.