aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracetool/format
diff options
context:
space:
mode:
authorLluís Vilanova <vilanova@ac.upc.edu>2014-08-18 15:02:07 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-09-26 09:34:38 +0100
commit2321442920ab67a1c196d4a53dd564726370946d (patch)
treeb237b6c9e7a236d176f9b2fdaf8bf8b793c1e83d /scripts/tracetool/format
parent1ba50f4ea01b26abe9dac95ba531533e17109826 (diff)
downloadqemu-2321442920ab67a1c196d4a53dd564726370946d.zip
qemu-2321442920ab67a1c196d4a53dd564726370946d.tar.gz
qemu-2321442920ab67a1c196d4a53dd564726370946d.tar.bz2
trace: [ust] Fix format string computation in tcg-enabled events
TCG-enabled events start with two format strings. Delay per-argument format computation until requested ('Event.formats'). Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/tracetool/format')
-rw-r--r--scripts/tracetool/format/ust_events_h.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool/format/ust_events_h.py b/scripts/tracetool/format/ust_events_h.py
index d189899..3e8a7cd 100644
--- a/scripts/tracetool/format/ust_events_h.py
+++ b/scripts/tracetool/format/ust_events_h.py
@@ -65,7 +65,7 @@ def generate(events, backend):
types = e.args.types()
names = e.args.names()
- fmts = e.arg_fmts
+ fmts = e.formats()
for t,n,f in zip(types, names, fmts):
if ('char *' in t) or ('char*' in t):
out(' ctf_string(' + n + ', ' + n + ')')