- tp_assign(clone_flags, clone_flags)
- tp_assign(newsp, newsp)
- tp_assign(parent_tid, parent_tid)
- tp_assign(child_tid, child_tid)),
+ sc_exit(tp_assign(ret, ret))
+ sc_in(tp_assign(clone_flags, clone_flags))
+ sc_in(tp_assign(newsp, newsp))
+ sc_in(tp_assign(parent_tid, parent_tid))
+ sc_in(tp_assign(child_tid, child_tid))),
+ TP_printk()
+)
+
+/* present in 32, missing in 64 due to old kernel headers */
+#define OVERRIDE_32_getcpu
+#define OVERRIDE_64_getcpu
+SC_TRACE_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_STRUCT__entry(
+ sc_exit(__field(long, ret))
+ sc_out(__field_hex(unsigned *, cpup))
+ sc_out(__field_hex(unsigned *, nodep))
+ sc_inout(__field_hex(void *, tcache))),
+ TP_fast_assign(
+ sc_exit(tp_assign(ret, ret))
+ sc_out(tp_assign(cpup, cpup))
+ sc_out(tp_assign(nodep, nodep))
+ sc_inout(tp_assign(tcache, tcache))),