[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] tracetool: For ust trace bool type as ctf_integ
From: |
Jon Emil Jahren |
Subject: |
[Qemu-devel] [PATCH 2/2] tracetool: For ust trace bool type as ctf_integer |
Date: |
Mon, 29 Jan 2018 05:16:48 +0100 |
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 <address@hidden>
---
scripts/tracetool/format/ust_events_h.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 + ')')
--
2.14.3