Skip to contentSkip to conversation

Memory Mapping

DISCUSSION Lakshitha Harshan 2 participants 2 messages May 6, 2011

lore
Share & tools
lore
#0 lore raw

Hi all,

I want to get the access to task structs in domUs to get the memory addresses of code segments in each process. So how do I read/map the data correctly which I get through xc_map_foreign_range or xc_map_foreign_batch?

Thanks,
Harshan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 5 lines · Lakshitha Harshan

Hi all,

I want to get the access to task structs in domUs to get the memory addresses of code segments in each process. So how do I read/map the data correctly which I get through xc_map_foreign_range or xc_map_foreign_batch?

You mean, how do I identify that the blob of memory you mapped is a task struct? I would suggest you look in the debuggers (gdbsx for example) and see how they figure this out.