Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4975 Discussions

Using PIN to get physical memory address

morca
Beginner
864 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
864 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
McCalpinJohn
Honored Contributor III
864 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.

0 Kudos
morca
Beginner
864 Views

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

0 Kudos
Reply