标签:misc reg ati str following ESS not thread different
Each row in /proc/$PID/maps
describes a region of contiguous virtual memory in a process or thread. Each row has the following fields:
address perms offset dev inode pathname 08048000-08056000 r-xp 00000000 03:0c 64593 /usr/sbin/gpm
mprotect
system call.mmap
), this is the offset in the file where the mapping begins. If the memory was not mapped from a file, it‘s just 0.[heap]
, [stack]
, or [vdso]
. [vdso]
stands for virtual dynamic shared object. It‘s used by system calls to switch to kernel mode. Here‘s a good article about it.You might notice a lot of anonymous regions. These are usually created by mmap
but are not attached to any file. They are used for a lot of miscellaneous things like shared memory or buffers not allocated on the heap. For instance, I think the pthread library uses anonymous mapped regions as stacks for new threads.
标签:misc reg ati str following ESS not thread different
原文地址:https://www.cnblogs.com/cgc0415/p/8886251.html