Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
26 Views

Using PIN to get physical memory address

Is it possible to get physical address accesses of a program with the help of PIN? I didn't see related things in the document

Can someone shed a light on that?

0 Kudos
3 Replies
Highlighted
Beginner
26 Views

Assume there is a memory instruction and it is going to load something. An address is generated and I want to record that. At application level, the address is virtual, but the at the end of the day, there should be a physical address for cache/memory lookup.

I found this topic, but didn't found anything more than that.

 

0 Kudos
Highlighted
Black Belt
26 Views

In Linux systems there is an interface that a user process can use to convert from Virtual to Physical addresses:  /proc/self/pagemap

Use of the interface is documented at https://www.kernel.org/doc/Documentation/vm/pagemap.txt

Additional information about the page's translation is available using /proc/kpageflags, but that requires root access.

"Dr. Bandwidth"
0 Kudos
Highlighted
Beginner
26 Views

Thank  you very much. I am working on that will come back if there is any issue...

0 Kudos