X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tools%2Flttng-gen-tp;h=e49083ba4dae4b8f2a82455cd5f6df9b6f4776f0;hb=26376e52acb66c6d55c35cb4339efb0b32d3644f;hp=b318d1cdcf8c592e8db6ff399b7d0125cd929ead;hpb=88c7c4eacbd4a98ad8e5df341ae2f1223b735194;p=lttng-ust.git diff --git a/tools/lttng-gen-tp b/tools/lttng-gen-tp index b318d1cd..e49083ba 100755 --- a/tools/lttng-gen-tp +++ b/tools/lttng-gen-tp @@ -19,13 +19,13 @@ class Usage(Exception): class HeaderFile: HEADER_TPL = """ -#undef TRACEPOINT_PROVIDER -#define TRACEPOINT_PROVIDER {providerName} +#undef LTTNG_UST_TRACEPOINT_PROVIDER +#define LTTNG_UST_TRACEPOINT_PROVIDER {providerName} -#undef TRACEPOINT_INCLUDE -#define TRACEPOINT_INCLUDE "./{headerFilename}" +#undef LTTNG_UST_TRACEPOINT_INCLUDE +#define LTTNG_UST_TRACEPOINT_INCLUDE "./{headerFilename}" -#if !defined({includeGuard}) || defined(TRACEPOINT_HEADER_MULTI_READ) +#if !defined({includeGuard}) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) #define {includeGuard} #include @@ -57,7 +57,7 @@ class HeaderFile: class CFile: FILE_TPL = """ -#define TRACEPOINT_CREATE_PROBES +#define LTTNG_UST_TRACEPOINT_CREATE_PROBES /* * The header containing our LTTNG_UST_TRACEPOINT_EVENTs. */ @@ -170,7 +170,7 @@ class TemplateFile: cleantext = re.sub("\s*", "", nolinecomment) # Remove multine C style comments nocomment = re.sub("/\*.*?\*/", "", cleantext) - entries = re.split("LTTNG_UST_TRACEPOINT_.*?", nocomment) + entries = re.split("^LTTNG_UST_TRACEPOINT_.*?", nocomment) for entry in entries: if entry != '': @@ -200,7 +200,7 @@ usage = """ When using the -o option, the OUTPUT_FILE must end with either .h, .c or .o The -o option can be repeated multiple times. - The template file must contains LTTNG_UST_TRACEPOINT_EVENT and TRACEPOINT_LOGLEVEL + The template file must contains LTTNG_UST_TRACEPOINT_EVENT and LTTNG_UST_TRACEPOINT_LOGLEVEL as per defined in the lttng/tracepoint.h file. See the lttng-ust(3) man page for more details on the format. """