System call inout/output arg processing
[lttng-modules.git] / instrumentation / syscalls / headers / syscalls_pointers_override.h
index a6721f1a9ee33ad30ba5d54e71dd34386226ef8f..6dba8d5af53849693a225b043ca0456259293f79 100644 (file)
@@ -7,13 +7,13 @@ SC_TRACE_EVENT(sys_execve,
        TP_PROTO(sc_exit(long ret,) const char *filename, char *const *argv, char *const *envp),
        TP_ARGS(sc_exit(ret,) filename, argv, envp),
        TP_STRUCT__entry(sc_exit(__field(long, ret))
-               __string_from_user(filename, filename)
-               __field_hex(char *const *, argv)
-               __field_hex(char *const *, envp)),
+               sc_in(__string_from_user(filename, filename))
+               sc_in(__field_hex(char *const *, argv))
+               sc_in(__field_hex(char *const *, envp))),
        TP_fast_assign(sc_exit(tp_assign(ret, ret))
-               tp_copy_string_from_user(filename, filename)
-               tp_assign(argv, argv)
-               tp_assign(envp, envp)),
+               sc_in(tp_copy_string_from_user(filename, filename))
+               sc_in(tp_assign(argv, argv))
+               sc_in(tp_assign(envp, envp))),
        TP_printk()
 )
 
@@ -24,16 +24,16 @@ SC_TRACE_EVENT(sys_clone,
        TP_ARGS(sc_exit(ret,) clone_flags, newsp, parent_tid, child_tid),
        TP_STRUCT__entry(
                sc_exit(__field(long, ret))
-               __field_hex(unsigned long, clone_flags)
-               __field_hex(unsigned long, newsp)
-               __field_hex(void *, parent_tid)
-               __field_hex(void *, child_tid)),
+               sc_in(__field_hex(unsigned long, clone_flags))
+               sc_in(__field_hex(unsigned long, newsp))
+               sc_in(__field_hex(void *, parent_tid))
+               sc_in(__field_hex(void *, child_tid))),
        TP_fast_assign(
                sc_exit(tp_assign(ret, ret))
-               tp_assign(clone_flags, clone_flags)
-               tp_assign(newsp, newsp)
-               tp_assign(parent_tid, parent_tid)
-               tp_assign(child_tid, child_tid)),
+               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()
 )
 
@@ -45,14 +45,14 @@ SC_TRACE_EVENT(sys_getcpu,
        TP_ARGS(sc_exit(ret,) cpup, nodep, tcache),
        TP_STRUCT__entry(
                sc_exit(__field(long, ret))
-               __field_hex(unsigned *, cpup)
-               __field_hex(unsigned *, nodep)
-               __field_hex(void *, tcache)),
+               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))
-               tp_assign(cpup, cpup)
-               tp_assign(nodep, nodep)
-               tp_assign(tcache, tcache)),
+               sc_out(tp_assign(cpup, cpup))
+               sc_out(tp_assign(nodep, nodep))
+               sc_inout(tp_assign(tcache, tcache))),
        TP_printk()
 )
 
This page took 0.025109 seconds and 4 git commands to generate.