Add sys_open filename (x86_64)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 27 Sep 2011 12:17:43 +0000 (08:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 27 Sep 2011 12:17:43 +0000 (08:17 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers_override.h

index 0cdb32a1d41e2daa8b1df196e2f9528f0cd85e1a..ccbca10d125a90c8d252d95109608882756fda8a 100644 (file)
@@ -1,5 +1,16 @@
 #ifndef CREATE_SYSCALL_TABLE
 
+#define OVERRIDE_sys_open
+TRACE_EVENT(sys_open,
+       TP_PROTO(const char * filename, int flags, int mode),
+       TP_ARGS(filename, flags, mode),
+       TP_STRUCT__entry(__string(filename, filename) __field(int, flags) __field(int, mode)),
+       TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(flags, flags) tp_assign(mode, mode)),
+       TP_printk()
+)
+
 #else  /* CREATE_SYSCALL_TABLE */
 
+TRACE_SYSCALL_TABLE(sys_open, sys_open, 2, 3)
+
 #endif /* CREATE_SYSCALL_TABLE */
This page took 0.026597 seconds and 4 git commands to generate.