我需要每个进程访问的页面序列,例如:-
Process 1 access its Virtual page 2
then Process 2 access its Virtual page 10
then Process 1 access its virtual page 7
and so on ..
#in Linux environment
对此的任何帮助表示赞赏。
我需要每个进程访问的页面序列,例如:-
Process 1 access its Virtual page 2
then Process 2 access its Virtual page 10
then Process 1 access its virtual page 7
and so on ..
#in Linux environment
对此的任何帮助表示赞赏。
我不知道任何实用程序会给出问题中提到的确切输出,但您可以查看这些链接:
http://www.makelinux.net/ldd3/chp-15-sect-1 http://www.ualberta.ca/CNS/RESEARCH/LinuxClusters/mem.html
提到的命令是:
cat /proc/<pid>/maps
您需要通读这两个链接以理解它,并可能根据您的需要修改输出。
I know this is an old questions, but I thought may be someone in the future might get into the same problem.
I know that you can write a tool for PIN, which is a dynamic binary instrumentation tool, that can do this for you. They have hooks that you can run just before or after a memory instruction is executed. You can use these hooks to dump the address targeted by that instruction.