Create override for sys_mmap
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Sep 2011 14:30:41 +0000 (10:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Sep 2011 14:30:41 +0000 (10:30 -0400)
based on mmap(2).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers_override.h

index 0cdb32a1d41e2daa8b1df196e2f9528f0cd85e1a..3c809254dbac6cd36fd58ce573dd1152d818122e 100644 (file)
@@ -1,5 +1,21 @@
+#define OVERRIDE_sys_mmap
+
 #ifndef CREATE_SYSCALL_TABLE
 
+
+TRACE_EVENT(sys_mmap,
+       TP_PROTO(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off),
+       TP_ARGS(addr, len, prot, flags, fd, off),
+       TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(size_t, len) __field(int, prot) __field(int, flags) __field(int, fd) __field(off_t, offset)),
+       TP_fast_assign(tp_assign(addr, addr) tp_assign(len, len) tp_assign(prot, prot) tp_assign(flags, flags) tp_assign(fd, fd) tp_assign(offset, off)),
+       TP_printk()
+)
+
+
 #else  /* CREATE_SYSCALL_TABLE */
 
+
+TRACE_SYSCALL_TABLE(sys_mmap, sys_mmap, 9, 6)
+
+
 #endif /* CREATE_SYSCALL_TABLE */
This page took 0.026153 seconds and 4 git commands to generate.