projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: liblttng-ust-fork Makefile flags mismatch
[lttng-ust.git]
/
tools
/
lttng-gen-tp
diff --git
a/tools/lttng-gen-tp
b/tools/lttng-gen-tp
index adaa278cb2919dc158d9e69c2be8d97d032e5838..5937dfdfe1793f61b46c43e544d41f2b109d0674 100755
(executable)
--- a/
tools/lttng-gen-tp
+++ b/
tools/lttng-gen-tp
@@
-31,8
+31,8
@@
class HeaderFile:
#undef TRACEPOINT_PROVIDER
#define TRACEPOINT_PROVIDER {providerName}
#undef TRACEPOINT_PROVIDER
#define TRACEPOINT_PROVIDER {providerName}
-#undef TRACEPOINT_INCLUDE
_FILE
-#define TRACEPOINT_INCLUDE
_FILE ./{headerFilename}
+#undef TRACEPOINT_INCLUDE
+#define TRACEPOINT_INCLUDE
"./{headerFilename}"
#ifdef __cplusplus
extern "C"{{
#ifdef __cplusplus
extern "C"{{
@@
-61,7
+61,9
@@
extern "C"{{
def write(self):
outputFile = open(self.outputFilename,"w")
def write(self):
outputFile = open(self.outputFilename,"w")
- includeGuard = self.outputFilename.upper().replace(".","_")
+ # Include guard macro will be created by uppercasing the filename and
+ # replacing all non alphanumeric characters with '_'
+ includeGuard = re.sub('[^0-9a-zA-Z]', '_', self.outputFilename.upper())
outputFile.write(HeaderFile.HEADER_TPL.format(providerName=self.template.domain,
includeGuard = includeGuard,
outputFile.write(HeaderFile.HEADER_TPL.format(providerName=self.template.domain,
includeGuard = includeGuard,
@@
-263,6
+265,9
@@
def main(argv=None):
# process arguments
for arg in args:
# process arguments
for arg in args:
+ if arg[-3:] != ".tp":
+ print arg + " does not end in .tp. Skipping."
+ continue
tpl = None
try:
tpl = None
try:
This page took
0.02355 seconds
and
4
git commands to generate.