From 9679296d56e3c0a948b1b4dcce99fd3c9b253a3d Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Wed, 24 Oct 2012 11:41:57 +0900 Subject: 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 --- strace.1 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'strace.1') 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 -- cgit v1.2.3