From: Mathieu Desnoyers Date: Tue, 27 Sep 2011 12:17:43 +0000 (-0400) Subject: Add sys_open filename (x86_64) X-Git-Tag: v2.0-pre9~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=75db8f8a5b0a8b13618f76c152c6d4bb313242e8;p=lttng-modules.git Add sys_open filename (x86_64) Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers_override.h b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers_override.h index 0cdb32a1..ccbca10d 100644 --- a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers_override.h +++ b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers_override.h @@ -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 */