Cleanup: Move instrumentation/ headers to include/instrumentation/
[lttng-modules.git] / include / instrumentation / syscalls / headers / arm-32-syscalls_pointers_override.h
diff --git a/include/instrumentation/syscalls/headers/arm-32-syscalls_pointers_override.h b/include/instrumentation/syscalls/headers/arm-32-syscalls_pointers_override.h
new file mode 100644 (file)
index 0000000..68ba1c4
--- /dev/null
@@ -0,0 +1,43 @@
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
+
+#define OVERRIDE_TABLE_32_mmap2
+
+# ifndef CONFIG_UID16
+#  define OVERRIDE_32_getgroups16
+#  define OVERRIDE_32_setgroups16
+#  define OVERRIDE_32_lchown16
+#  define OVERRIDE_32_getresuid16
+#  define OVERRIDE_32_getresgid16
+#  define OVERRIDE_32_chown16
+# endif
+
+#ifndef CREATE_SYSCALL_TABLE
+
+#define OVERRIDE_32_pipe
+SC_LTTNG_TRACEPOINT_EVENT(pipe,
+       TP_PROTO(sc_exit(long ret,) int * fildes),
+       TP_ARGS(sc_exit(ret,) fildes),
+       TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
+               sc_out(ctf_user_array(int, fildes, fildes, 2))
+       )
+)
+
+#else  /* CREATE_SYSCALL_TABLE */
+
+# ifndef CONFIG_UID16
+#  define OVERRIDE_TABLE_32_getgroups16
+#  define OVERRIDE_TABLE_32_setgroups16
+#  define OVERRIDE_TABLE_32_lchown16
+#  define OVERRIDE_TABLE_32_getresuid16
+#  define OVERRIDE_TABLE_32_getresgid16
+#  define OVERRIDE_TABLE_32_chown16
+# endif
+
+#define OVERRIDE_TABLE_32_execve
+TRACE_SYSCALL_TABLE(execve, execve, 11, 3)
+#define OVERRIDE_TABLE_32_clone
+TRACE_SYSCALL_TABLE(clone, clone, 120, 5)
+
+#endif /* CREATE_SYSCALL_TABLE */
+
+
This page took 0.023489 seconds and 4 git commands to generate.