Add script to automate the syscall extraction process
[lttng-modules.git] / instrumentation / syscalls / headers / arm-32-syscalls-3.4.25_pointers_override.h
index d515e1d06ba4303894a0b699aa653f2cd515431d..ab325c7c245e299e8254b6be823bb38b1c9d6f11 100644 (file)
@@ -1,31 +1,41 @@
 
 #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
 
-SC_LTTNG_TRACEPOINT_EVENT(mmap2,
-       TP_PROTO(void *addr, size_t len, int prot,
-                 int flags, int fd, off_t pgoff),
-       TP_ARGS(addr, len, prot, flags, fd, pgoff),
-       TP_FIELDS(
-               ctf_integer_hex(void *, addr, addr)
-               ctf_integer(size_t, len, len)
-               ctf_integer(int, prot, prot)
-               ctf_integer(int, flags, flags)
-               ctf_integer(int, fd, fd)
-               ctf_integer(off_t, pgoff, pgoff)
+#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)
-#define OVERRIDE_TABLE_32_mmap2
-TRACE_SYSCALL_TABLE(mmap2, mmap2, 192, 6)
 
 #endif /* CREATE_SYSCALL_TABLE */
 
This page took 0.023143 seconds and 4 git commands to generate.