|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PULL v2 03/25] trace: fix handling of char** in UST backend
From: Daniel P. Berrangé <berrange@xxxxxxxxxx>
The UST trace backend fails to compile on version 2.14.0, as we
pass a "char **" arg as to ctf_string(), which only expects 'char *'.
It should instead be treated the same way as generic pointers, and
emitted as hex.
Reviewed-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
Message-id: 20261102142844.3464712-4-berrange@xxxxxxxxxx
Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
---
scripts/tracetool/format/ust_events_h.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/tracetool/format/ust_events_h.py
b/scripts/tracetool/format/ust_events_h.py
index cee7970a403..76c883bc5c0 100644
--- a/scripts/tracetool/format/ust_events_h.py
+++ b/scripts/tracetool/format/ust_events_h.py
@@ -72,7 +72,9 @@ def generate(events, backend, group):
names = e.args.names()
fmts = e.formats()
for t,n,f in zip(types, names, fmts):
- if ('char *' in t) or ('char*' in t):
+ if ('char **' in t) or ('char**' in t):
+ out(' ctf_integer_hex(' + t + ', ' + n + ', ' + n +
')')
+ elif ('char *' in t) or ('char*' in t):
out(' ctf_string(' + n + ', ' + n + ')')
elif ("%p" in f) or ("x" in f) or ("PRIx" in f):
out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n +
')')
--
2.56.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |