diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/tracetool/format/d.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/tracetool/format/d.py b/scripts/tracetool/format/d.py index 353722f89c..ebfb714200 100644 --- a/scripts/tracetool/format/d.py +++ b/scripts/tracetool/format/d.py @@ -57,6 +57,12 @@ def generate(events, backend, group): # Avoid it by changing probe type to signed char * beforehand. if type_ == 'int8_t *': type_ = 'signed char *' + + # SystemTap dtrace(1) emits a warning when long long is used + type_ = type_.replace('unsigned long long', 'uint64_t') + type_ = type_.replace('signed long long', 'int64_t') + type_ = type_.replace('long long', 'int64_t') + if name in RESERVED_WORDS: name += '_' args.append(type_ + ' ' + name) |