aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Emil Jahren <jonemilj@gmail.com>2018-01-29 05:16:48 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2018-02-19 13:09:44 +0000
commit61b01bbc6c27f06f4732aedcb6554e135f41b760 (patch)
tree77b226b14a9b8f410d0ce2313df8346721e7c888
parentfb1a66bc01b6f7376b452a313538a472451a0ba4 (diff)
tracetool: For ust trace bool type as ctf_integer
Previously functions having arguments of type bool was not traced properly. The bool arguments were missing from the trace. Signed-off-by: Jon Emil Jahren <jonemilj@gmail.com> Message-id: 20180129041648.30884-3-jonemilj@gmail.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--scripts/tracetool/format/ust_events_h.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/tracetool/format/ust_events_h.py b/scripts/tracetool/format/ust_events_h.py
index 514294c2cc..4e95e9b3f9 100644
--- a/scripts/tracetool/format/ust_events_h.py
+++ b/scripts/tracetool/format/ust_events_h.py
@@ -79,7 +79,8 @@ def generate(events, backend, group):
out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n + ')')
elif ("ptr" in t) or ("*" in t):
out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n + ')')
- elif ('int' in t) or ('long' in t) or ('unsigned' in t) or ('size_t' in t):
+ elif ('int' in t) or ('long' in t) or ('unsigned' in t) \
+ or ('size_t' in t) or ('bool' in t):
out(' ctf_integer(' + t + ', ' + n + ', ' + n + ')')
elif ('double' in t) or ('float' in t):
out(' ctf_float(' + t + ', ' + n + ', ' + n + ')')