how to get the info like "vmmap"?
how to get the info like "vmmap"?
- Subject: how to get the info like "vmmap"?
- From: "周章林" <email@hidden>
- Date: Sat, 12 May 2007 16:11:47 +0800
Hi,all,
I just want get the memory infomation of a process like what vmmap get.
==== Non-writable regions for process 7250
__PAGEZERO 00000000-00001000 [ 4K] ---/--- SM=NUL /usr/bin/vi
__TEXT 00001000-000ef000 [ 952K] r-x/rwx SM=COW /usr/bin/vi
__LINKEDIT 00101000-00103000 [ 8K] r--/rwx SM=COW /usr/bin/vi
__TEXT 8fe00000-8fe52000 [ 328K] r-x/rwx SM=COW /usr/lib/dyld
__LINKEDIT 8fe5c000-8fe70000 [ 80K] r--/rwx SM=COW /usr/lib/dyld
I know use vm_region to get part of info, but how to know one region's related module name
like 00000000-00001000 is /usr/bin/vi, but 8fe5c000-8fe70000 is /usr/lib/dyld
--
周章林
北京邮电大学
网络与交换国家重点实验室
Linker Zhou
Beijing University of Posts & Telecommunications (BUPT)
State Key Lab of Network & Switching
tel:(8610)62283130-22
Mobile:13810008973
e-mail:
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden