You can enable ARM_PTDUMP when building the Linux kernel so the kernel page 
tables can be dumped out, for user space you can check '/proc/pid/pagemap'.

On 06/02/2014 03:05, "Peng Wei" 
<[email protected]<mailto:[email protected]>> wrote:

Hi there,

I wanna try to categorize each memory references (physical address) to system 
references, user references and shared-library references. System references 
means that those references will access to OS code or data, shared-library 
references means that those references will access to shared binary libraries, 
and so on. However, I don't know how to distinguish them. Are there any files 
that records how the virtual address of each process is mapped?

FYI, I found from google that the /proc/[pid]/maps file stored mapping 
information for each process, but I only found from those files that 1) the 
virtual pape distribution rather than VA->PA mapping; 2) some shared library, 
and syscall mapping but no OS kernel code or data mapping.

Could anybody tell me how to find that kind of information from gem5, for 
example, what should I do to find which physical pages are arranged to store OS 
kernel or data, which pages are arranged for application code or data?

Thanks very much.

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered 
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to