summaryrefslogtreecommitdiff
path: root/defs.h
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 /defs.h
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 'defs.h')
-rw-r--r--defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/defs.h b/defs.h
index 7814bbd..d366b21 100644
--- a/defs.h
+++ b/defs.h
@@ -447,7 +447,8 @@ extern const struct xlat open_access_modes[];
#define TRACE_PROCESS 010 /* Trace process-related syscalls. */
#define TRACE_SIGNAL 020 /* Trace signal-related syscalls. */
#define TRACE_DESC 040 /* Trace file descriptor-related syscalls. */
-#define SYSCALL_NEVER_FAILS 0100 /* Syscall is always successful. */
+#define TRACE_MEMORY 0100 /* Trace memory mapping-related syscalls. */
+#define SYSCALL_NEVER_FAILS 0200 /* Syscall is always successful. */
typedef enum {
CFLAG_NONE = 0,