summaryrefslogtreecommitdiff
path: root/strace.1
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-10-24 11:41:57 +0900
committerDmitry V. Levin <ldv@altlinux.org>2012-10-26 22:45:08 +0000
commit9679296d56e3c0a948b1b4dcce99fd3c9b253a3d (patch)
tree9b251140d159da1d1cfa9e7a9d6eebb3e840efec /strace.1
parent85c217849046414a98d2d90173960f39defc145f (diff)
downloadstrace-9679296d56e3c0a948b1b4dcce99fd3c9b253a3d.tar.gz
strace-9679296d56e3c0a948b1b4dcce99fd3c9b253a3d.tar.bz2
strace-9679296d56e3c0a948b1b4dcce99fd3c9b253a3d.tar.xz
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls. Affected syscalls are: break, brk, get_mempolicy, madvise, mbind, migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect, mremap, msync, munlock, munlockall, munmap, remap_file_pages, and set_mempolicy. * defs.h (TRACE_MEMORY): New macro. * syscall.c (lookup_class): Handle trace=memory option. * strace.1: Document it. * linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls. * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Diffstat (limited to 'strace.1')
-rw-r--r--strace.13
1 files changed, 3 insertions, 0 deletions
diff --git a/strace.1 b/strace.1
index faf4d45..f31b217 100644
--- a/strace.1
+++ b/strace.1
@@ -395,6 +395,9 @@ Trace all IPC related system calls.
.BR "\-e\ trace" = desc
Trace all file descriptor related system calls.
.TP
+.BR "\-e\ trace" = memory
+Trace all memory mapping related system calls.
+.TP
\fB\-e\ abbrev\fR=\fIset\fR
Abbreviate the output from printing each member of large structures.
The default is