Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Using PIN to get physical memory address

morca
Beginner
336 Views

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
morca
Beginner
336 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.

 

McCalpinJohn
Black Belt
336 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.

morca
Beginner
336 Views

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

Reply