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>
This commit is contained in:
Lluís Vilanova 2014-08-18 15:02:07 +02:00 committed by Stefan Hajnoczi
parent 1ba50f4ea0
commit 2321442920
2 changed files with 11 additions and 10 deletions

View file

@ -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 + ')')