Implement event notifiers for syscalls
[lttng-modules.git] / include / instrumentation / syscalls / headers / syscalls_unknown.h
index 79939c80ca89a70ac0a80ddac8d8351e193782e6..38add19ffae8f389b6956a903b3e1dda9ad8bac5 100644 (file)
@@ -9,7 +9,7 @@
 #define UNKNOWN_SYSCALL_NRARGS 6
 
 #undef TP_PROBE_CB
-#define TP_PROBE_CB(_template)          &syscall_entry_probe
+#define TP_PROBE_CB(_template)          &syscall_entry_event_probe
 
 LTTNG_TRACEPOINT_EVENT(syscall_entry_unknown,
        TP_PROTO(int id, unsigned long *args),
@@ -29,7 +29,27 @@ LTTNG_TRACEPOINT_EVENT(compat_syscall_entry_unknown,
 )
 
 #undef TP_PROBE_CB
-#define TP_PROBE_CB(_template)          &syscall_exit_probe
+#define TP_PROBE_CB(_template)          &syscall_entry_event_notifier_probe
+
+LTTNG_TRACEPOINT_EVENT(syscall_notifier_entry_unknown,
+       TP_PROTO(int id, unsigned long *args),
+       TP_ARGS(id, args),
+       TP_FIELDS(
+               ctf_integer(int, id, id)
+               ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS)
+       )
+)
+LTTNG_TRACEPOINT_EVENT(compat_syscall_notifier_entry_unknown,
+       TP_PROTO(int id, unsigned long *args),
+       TP_ARGS(id, args),
+       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_event_probe
 
 LTTNG_TRACEPOINT_EVENT(syscall_exit_unknown,
        TP_PROTO(int id, long ret, unsigned long *args),
This page took 0.024153 seconds and 4 git commands to generate.