-#define OVERRIDE_32_sys_getcpu
-#define OVERRIDE_64_sys_getcpu
-SC_TRACE_EVENT(sys_getcpu,
- TP_PROTO(unsigned __user *cpup, unsigned __user *nodep, void *tcache),
- TP_ARGS(cpup, nodep, tcache),
- TP_STRUCT__entry(
- __field_hex(unsigned *, cpup)
- __field_hex(unsigned *, nodep)
- __field_hex(void *, tcache)),
- TP_fast_assign(
- tp_assign(cpup, cpup)
- tp_assign(nodep, nodep)
- tp_assign(tcache, tcache)),
- TP_printk()
+#define OVERRIDE_32_getcpu
+#define OVERRIDE_64_getcpu
+SC_LTTNG_TRACEPOINT_EVENT(getcpu,
+ TP_PROTO(sc_exit(long ret,) unsigned __user *cpup, unsigned __user *nodep, void *tcache),
+ TP_ARGS(sc_exit(ret,) cpup, nodep, tcache),
+ TP_FIELDS(
+ sc_exit(ctf_integer(long, ret, ret))
+ sc_out(ctf_integer_hex(unsigned *, cpup, cpup))
+ sc_out(ctf_integer_hex(unsigned *, nodep, nodep))
+ sc_inout(ctf_integer_hex(void *, tcache, tcache))
+ )
+)
+
+#define OVERRIDE_32_pipe
+#define OVERRIDE_64_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))
+ )
+)
+
+#define OVERRIDE_32_pipe2
+#define OVERRIDE_64_pipe2
+SC_LTTNG_TRACEPOINT_EVENT(pipe2,
+ TP_PROTO(sc_exit(long ret,) int * fildes, int flags),
+ TP_ARGS(sc_exit(ret,) fildes, flags),
+ TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
+ sc_out(ctf_user_array(int, fildes, fildes, 2))
+ sc_in(ctf_integer(int, flags, flags))
+ )