X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fust%2Fdefine_trace.h;h=3d2954167f10031963c2819c832af0f7dedc8e34;hb=8d71973c9b5596f5732741975d4334a3abb3ba2a;hp=9fa2c30d415ad4a987443670c34b0e04c4393292;hpb=22d7294822cce9fdc893b8ab272e322270456ac9;p=ust.git diff --git a/include/ust/define_trace.h b/include/ust/define_trace.h index 9fa2c30..3d29541 100644 --- a/include/ust/define_trace.h +++ b/include/ust/define_trace.h @@ -3,8 +3,8 @@ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * License as published by the Free Software Foundation; + * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -32,33 +32,33 @@ * modules must be used. */ -#ifdef CREATE_TRACE_POINTS +#ifdef TRACEPOINT_CREATE_PROBES /* Prevent recursion */ -#undef CREATE_TRACE_POINTS +#undef TRACEPOINT_CREATE_PROBES #include -#undef TRACE_EVENT -#define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ - DEFINE_TRACE(name) +#undef TRACEPOINT_EVENT +#define TRACEPOINT_EVENT(name, proto, args, tstruct, assign, print) \ + DEFINE_TRACEPOINT(name) -#undef TRACE_EVENT_FN -#define TRACE_EVENT_FN(name, proto, args, tstruct, \ +#undef TRACEPOINT_EVENT_FN +#define TRACEPOINT_EVENT_FN(name, proto, args, tstruct, \ assign, print, reg, unreg) \ - DEFINE_TRACE_FN(name, reg, unreg) + DEFINE_TRACEPOINT_FN(name, reg, unreg) -#undef DEFINE_TRACE_EVENT -#define DEFINE_TRACE_EVENT(template, name, proto, args) \ - DEFINE_TRACE(name) +#undef DEFINE_TRACEPOINT_EVENT +#define DEFINE_TRACEPOINT_EVENT(template, name, proto, args) \ + DEFINE_TRACEPOINT(name) -#undef DEFINE_TRACE_EVENT_PRINT -#define DEFINE_TRACE_EVENT_PRINT(template, name, proto, args, print) \ - DEFINE_TRACE(name) +#undef DEFINE_TRACEPOINT_EVENT_PRINT +#define DEFINE_TRACEPOINT_EVENT_PRINT(template, name, proto, args, print) \ + DEFINE_TRACEPOINT(name) -#undef DECLARE_TRACE -#define DECLARE_TRACE(name, proto, args) \ - DEFINE_TRACE(name) +#undef DECLARE_TRACEPOINT +#define DECLARE_TRACEPOINT(name, proto, args) \ + DEFINE_TRACEPOINT(name) #undef TRACE_INCLUDE #undef __TRACE_INCLUDE @@ -82,21 +82,21 @@ #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) -/* Make all open coded DECLARE_TRACE nops */ -#undef DECLARE_TRACE -#define DECLARE_TRACE(name, proto, args) +/* Make all open coded DECLARE_TRACEPOINT nops */ +#undef DECLARE_TRACEPOINT +#define DECLARE_TRACEPOINT(name, proto, args) #ifndef CONFIG_NO_EVENT_TRACING #include #endif -#undef TRACE_EVENT -#undef TRACE_EVENT_FN -#undef DECLARE_TRACE_EVENT_CLASS -#undef DEFINE_TRACE_EVENT -#undef DEFINE_TRACE_EVENT_PRINT +#undef TRACEPOINT_EVENT +#undef TRACEPOINT_EVENT_FN +#undef DECLARE_TRACEPOINT_EVENT_CLASS +#undef DEFINE_TRACEPOINT_EVENT +#undef DEFINE_TRACEPOINT_EVENT_PRINT #undef TRACE_HEADER_MULTI_READ -#undef DECLARE_TRACE +#undef DECLARE_TRACEPOINT /* Only undef what we defined in this file */ #ifdef UNDEF_TRACE_INCLUDE_FILE @@ -110,6 +110,6 @@ #endif /* We may be processing more files */ -#define CREATE_TRACE_POINTS +#define TRACEPOINT_CREATE_PROBES -#endif /* CREATE_TRACE_POINTS */ +#endif /* TRACEPOINT_CREATE_PROBES */