X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=tools%2Flttng-gen-tp;h=c3ee7c5e13d84fbc0655fe136f2741aba8b231e3;hb=dbcc2f9279a03c620350b4743467aa2f7cb7bf5f;hp=919f01a31d964b5fe150e7883ab4e9f43de045d3;hpb=7f2f82c3b336458e815e9a4ed100d7084c9e7138;p=lttng-ust.git diff --git a/tools/lttng-gen-tp b/tools/lttng-gen-tp index 919f01a3..c3ee7c5e 100755 --- a/tools/lttng-gen-tp +++ b/tools/lttng-gen-tp @@ -61,7 +61,7 @@ class CFile: /* * The header containing our LTTNG_UST_TRACEPOINT_EVENTs. */ -#define TRACEPOINT_DEFINE +#define LTTNG_UST_TRACEPOINT_DEFINE #include "{headerFilename}" """ @@ -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. """