Add a data pointer to all tracepoint probe callbacks
[ust.git] / include / ust / ust_trace.h
index 098c5f8f6f0230e31b28bb157b34e7e0d4ffee68..e1b02576d6ef93b88c45bca1cdcdcf071e355d09 100644 (file)
@@ -58,7 +58,7 @@
        struct trace_raw_##name {                                       \
                tstruct                                                 \
        };                                                              \
-       static void trace_printf_##name(proto)                          \
+       static void trace_printf_##name(void *dummy, proto)             \
        {                                                               \
                struct trace_raw_##name entry_struct, *__entry;         \
                __entry = &entry_struct;                                \
@@ -68,8 +68,9 @@
        }                                                               \
        static void __attribute__((constructor)) init_##name()          \
        {                                                               \
+               void *dummy;                                            \
                printf("connecting tracepoint " #name "\n");            \
-               register_trace_##name(trace_printf_##name);             \
+               register_trace_##name(trace_printf_##name, dummy);      \
        }
 
 
This page took 0.023251 seconds and 4 git commands to generate.