]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tracetool: For ust trace bool type as ctf_integer
authorJon Emil Jahren <jonemilj@gmail.com>
Mon, 29 Jan 2018 04:16:48 +0000 (05:16 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 19 Feb 2018 13:09:44 +0000 (13:09 +0000)
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>
scripts/tracetool/format/ust_events_h.py

index 514294c2cc2eeb1b62250fcf1ce0ec3028c039da..4e95e9b3f905dd99dcf6bc5337873000e0eeea71 100644 (file)
@@ -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 + ')')