X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fust%2Ftracepoint-event.h;h=b4bd59cbaec3962cfea28c72d9c788b25b011d03;hb=d4419b81b243bc3a6bdd4a09b3ca2216d044a1c7;hp=402810f937879ba51c086f20a580c63ff6f06b8b;hpb=ea1b814fc5519e72a8858eb6e56452bb6883f611;p=lttng-ust.git diff --git a/include/ust/tracepoint-event.h b/include/ust/tracepoint-event.h index 402810f9..b4bd59cb 100644 --- a/include/ust/tracepoint-event.h +++ b/include/ust/tracepoint-event.h @@ -28,13 +28,19 @@ * TRACEPOINT_SYSTEM.h. This macro may be defined to tell * define_trace.h what file to include. Note, leave off the ".h". * - * TRACEPOINT_INCLUDE_PATH if the path is something other than core - * kernel include/trace then this macro can define the path to use. - * Note, the path is relative to tracepoint_event.h, not the file - * including it. Full path names for out of tree modules must be - * used. + * TRACEPOINT_INCLUDE_PATH if the path is something other than within + * the system's include/tracepoint/ path, then this macro can define + * the path to use. This path is relative to tracepoint-event.h, or + * to the include search path. Trick: Use a + * #define TRACEPOINT_INCLUDE_PATH . + * combined with -Ipath_to_header as compiler argument to allow + * searching for a header within your project build tree. */ +#ifdef __cplusplus +extern "C" { +#endif + #ifdef TRACEPOINT_CREATE_PROBES /* Prevent recursion */ @@ -109,3 +115,7 @@ #define TRACEPOINT_CREATE_PROBES #endif /* TRACEPOINT_CREATE_PROBES */ + +#ifdef __cplusplus +} +#endif