detailed syscall tracing (work in progress)
[lttng-modules.git] / probes / lttng-events.h
index d517da725d580a0f1f61a35e61aa960abdc7390f..925e12daaec0eb249a029abab1c57a577c221b6e 100644 (file)
@@ -211,12 +211,16 @@ static void __event_probe__##_name(void *__data, _proto);
 
 #include "lttng-events-reset.h"        /* Reset all macros within TRACE_EVENT */
 
+#ifndef TP_PROBE_CB
+#define TP_PROBE_CB(_template) &__event_probe__##_template
+#endif
+
 #undef DEFINE_EVENT
 #define DEFINE_EVENT(_template, _name, _proto, _args)                         \
                {                                                              \
                        .fields = __event_fields___##_template,                \
                        .name = #_name,                                        \
-                       .probe_callback = (void *) &__event_probe__##_template,\
+                       .probe_callback = (void *) TP_PROBE_CB(_template),     \
                        .nr_fields = ARRAY_SIZE(__event_fields___##_template), \
                        .owner = THIS_MODULE,                                  \
                },
@@ -539,6 +543,7 @@ static void __event_probe__##_name(void *__data, _proto)                  \
 #define module_exit_eval1(_token, _system)     module_exit(_token##_system)
 #define module_exit_eval(_token, _system)      module_exit_eval1(_token, _system)
 
+#ifndef TP_MODULE_OVERRIDE
 static int TP_ID(__lttng_events_init__, TRACE_SYSTEM)(void)
 {
        wrapper_vmalloc_sync_all();
@@ -553,6 +558,7 @@ static void TP_ID(__lttng_events_exit__, TRACE_SYSTEM)(void)
 }
 
 module_exit_eval(__lttng_events_exit__, TRACE_SYSTEM);
+#endif
 
 #undef module_init_eval
 #undef module_exit_eval
This page took 0.029099 seconds and 4 git commands to generate.