X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fsyscalls%2Fheaders%2Fsyscalls_unknown.h;h=c72e7d0e8c1b32e219d7c738ea92e8417b302743;hb=dc5cd5702b74d72f0db0141c6d888a1d820aed9c;hp=6ff640e42ed110a6aadc38c9802bf8f49364458f;hpb=d42918696623476bb957eae99718e10f7959b320;p=lttng-modules.git diff --git a/instrumentation/syscalls/headers/syscalls_unknown.h b/instrumentation/syscalls/headers/syscalls_unknown.h index 6ff640e4..c72e7d0e 100644 --- a/instrumentation/syscalls/headers/syscalls_unknown.h +++ b/instrumentation/syscalls/headers/syscalls_unknown.h @@ -1,7 +1,7 @@ #if !defined(_TRACE_SYSCALLS_UNKNOWN_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SYSCALLS_UNKNOWN_H -#include "../../../probes/lttng-tracepoint-event.h" +#include #include #define UNKNOWN_SYSCALL_NRARGS 6 @@ -10,66 +10,44 @@ #define TP_PROBE_CB(_template) &syscall_entry_probe LTTNG_TRACEPOINT_EVENT(syscall_entry_unknown, - TP_PROTO(unsigned int id, unsigned long *args), + TP_PROTO(int id, unsigned long *args), TP_ARGS(id, args), - TP_STRUCT__entry( - __field(unsigned int, id) - __array(unsigned long, args, UNKNOWN_SYSCALL_NRARGS) - ), - TP_fast_assign( - tp_assign(id, id) - tp_memcpy(args, args, UNKNOWN_SYSCALL_NRARGS * sizeof(*args)) - ), - TP_printk() + TP_FIELDS( + ctf_integer(int, id, id) + ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS) + ) ) LTTNG_TRACEPOINT_EVENT(compat_syscall_entry_unknown, - TP_PROTO(unsigned int id, unsigned long *args), + TP_PROTO(int id, unsigned long *args), TP_ARGS(id, args), - TP_STRUCT__entry( - __field(unsigned int, id) - __array(unsigned long, args, UNKNOWN_SYSCALL_NRARGS) - ), - TP_fast_assign( - tp_assign(id, id) - tp_memcpy(args, args, UNKNOWN_SYSCALL_NRARGS * sizeof(*args)) - ), - TP_printk() + TP_FIELDS( + ctf_integer(int, id, id) + ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS) + ) ) #undef TP_PROBE_CB #define TP_PROBE_CB(_template) &syscall_exit_probe LTTNG_TRACEPOINT_EVENT(syscall_exit_unknown, - TP_PROTO(unsigned int id, long ret, unsigned long *args), + TP_PROTO(int id, long ret, unsigned long *args), TP_ARGS(id, ret, args), - TP_STRUCT__entry( - __field(unsigned int, id) - __field(long, ret) - __array(unsigned long, args, UNKNOWN_SYSCALL_NRARGS) - ), - TP_fast_assign( - tp_assign(id, id) - tp_assign(ret, ret) - tp_memcpy(args, args, UNKNOWN_SYSCALL_NRARGS * sizeof(*args)) - ), - TP_printk() + TP_FIELDS( + ctf_integer(int, id, id) + ctf_integer(long, ret, ret) + ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS) + ) ) LTTNG_TRACEPOINT_EVENT(compat_syscall_exit_unknown, - TP_PROTO(unsigned int id, long ret, unsigned long *args), + TP_PROTO(int id, long ret, unsigned long *args), TP_ARGS(id, ret, args), - TP_STRUCT__entry( - __field(unsigned int, id) - __field(long, ret) - __array(unsigned long, args, UNKNOWN_SYSCALL_NRARGS) - ), - TP_fast_assign( - tp_assign(id, id) - tp_assign(ret, ret) - tp_memcpy(args, args, UNKNOWN_SYSCALL_NRARGS * sizeof(*args)) - ), - TP_printk() + TP_FIELDS( + ctf_integer(int, id, id) + ctf_integer(long, ret, ret) + ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS) + ) ) #endif /* _TRACE_SYSCALLS_UNKNOWN_H */ /* This part must be outside protection */ -#include "../../../probes/define_trace.h" +#include