| Kamal R. Prasad 2005-04-21, 5:59 pm |
| There is a memory map segment-wise in /usr/include/var/seg.h.
Can someone tell me how to locate allocated/unallocated spaces in the process heap?
Solaris/Linux use avl trees which can be parsed to detrmine valid/invalid addresses.
regards
-kamal
kamalp@acm.org (Kamal R. Prasad) wrote in message news:<181e352f.0504190512.56d9514a@posting.google.com>...
> Hello,
>
> I am looking for fields in struct user which will provide me the
> memory map of the process. It means, I want the virtual address of
> text, data, stack and heap. Also, the req is to get about the same
> data as shown by procmap below.
> I noticed that there is unsigned long long loader[84];
> What does that field do?
> -----------------------------
> # procmap 1
> 1 : /etc/init
> 10000000 36K read/exec init
> 200003e0 165K read/write init
> d007f0f8 2K read/exec /usr/lib/libcrypt.a
> f00e6508 0K read/write /usr/lib/libcrypt.a
> d004e000 195K read/exec /usr/lib/libpthreads.a
> f012a000 16K read/write /usr/lib/libpthreads.a
> d004a000 14K read/exec /usr/lib/libpthreads.a
> f00e7000 265K read/write /usr/lib/libpthreads.a
> d021b6c0 2284K read/exec /usr/lib/libc.a
> f0049a50 621K read/write /usr/lib/libc.a
> Total 3601K
> ----------------------------
> thanks
> -kamal
|