X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=probes%2Flttng-events.h;h=dacce7bd287f0413da50861ac71de3a396e8d951;hb=f62b389ebaba6abc93afb2cf9fbdf2fe0b632077;hp=38c61cd85dfb8ffd2057c756f8d9597be7658ac2;hpb=a509e13364a2d024a2ae2acbeee3ac4ac2634842;p=lttng-modules.git diff --git a/probes/lttng-events.h b/probes/lttng-events.h index 38c61cd8..dacce7bd 100644 --- a/probes/lttng-events.h +++ b/probes/lttng-events.h @@ -1,7 +1,7 @@ #include #include #include -#include /* for vmalloc_sync_all() */ +#include "../wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */ #include "../wrapper/ringbuffer/frontend_types.h" #include "../ltt-events.h" #include "../ltt-tracer-core.h" @@ -53,6 +53,28 @@ struct lttng_event_desc { TRACE_EVENT(name, PARAMS(proto), PARAMS(args), \ PARAMS(tstruct), PARAMS(assign), PARAMS(print)) \ +/* + * Stage 0.1 of the trace events. + * + * Create dummy trace calls for each events, verifying that the LTTng module + * TRACE_EVENT headers match the kernel arguments. Will be optimized out by the + * compiler. + */ + +#include "lttng-events-reset.h" /* Reset all macros within TRACE_EVENT */ + +#undef TP_PROTO +#define TP_PROTO(args...) args + +#undef TP_ARGS +#define TP_ARGS(args...) args + +#undef DEFINE_EVENT +#define DEFINE_EVENT(_template, _name, _proto, _args) \ +void trace_##_name(proto); + +#include TRACE_INCLUDE(TRACE_INCLUDE_FILE) + /* * Stage 1 of the trace events. * @@ -573,7 +595,7 @@ static int TP_ID(__lttng_events_init__, TRACE_SYSTEM)(void) int ret; int i; - vmalloc_sync_all(); + wrapper_vmalloc_sync_all(); ret = TP_ID(__lttng_types_init__, TRACE_SYSTEM)(); if (ret) return ret;