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

Using PIN to get physical memory address

morca
Beginner
304 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
304 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
304 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
304 Views

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

Reply