diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-03-17 09:13:02 +0100 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2013-03-17 09:13:02 +0100 |
commit | 37d32c38f6614919defcd3c24136322b1cdaa8f7 (patch) | |
tree | 3ffb118884c38de25da7bae5733a19a4d80f4980 /man5 | |
parent | 70a97b165ddaddb5d61576acad717cdae48738b9 (diff) |
proc.5: Document the "pathname" field of /proc/PID/maps
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man5')
-rw-r--r-- | man5/proc.5 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/man5/proc.5 b/man5/proc.5 index cd41e064..6755f62c 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -367,6 +367,30 @@ p = private (copy on write) 0 indicates that no inode is associated with the memory region, as the case would be with BSS (uninitialized data). +"pathname" will be usually be the file that is backing the mapping. For ELF +files, You can easily coordinate with the "offset" field by looking at the +Offset field in the ELF's program headers (`readelf -l`). + +There are additional helpful pseudo paths: + +.nf +.in +5 +[stack] = The initial process's (aka the main thread's) stack +[stack:#] = A thread's stack (where the # is the thread's TID) +[vdso] = The virtual dynamically linked shared object +[heap] = The process's heap (no joke!) +.in +.fi + +The TID syntax was added in Linux 3.4. It corresponds to the +.IR /proc/[pid]/task/[TID]/ +path. + +If the field is blank, this is an anonymous mapping as obtained via the +.BR mmap (2) +function. There is no easy way to coordinate this back to a process's +source short of running it through gdb/strace/etc... Sorry! + Under Linux 2.0 there is no field giving pathname. .TP .I /proc/[pid]/mem |