[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] simpletrace: Convert name from mapping record t
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] simpletrace: Convert name from mapping record to str |
Date: |
Wed, 27 Jun 2018 15:52:27 +0100 |
User-agent: |
Mutt/1.10.0 (2018-05-17) |
On Tue, Jun 19, 2018 at 04:45:49PM -0300, Eduardo Habkost wrote:
> The rest of the code assumes that idtoname is a (int -> str)
> dictionary, so convert the data accordingly.
>
> This is necessary to make the script work with Python 3 (where
> reads from a binary file return 'bytes' objects, not 'str').
>
> Fixes the following error:
>
> $ python3 ./scripts/simpletrace.py trace-events-all trace-27445
> b'object_class_dynamic_cast_assert' event is logged but is not \
> declared in the trace events file, try using trace-events-all instead.
>
> Signed-off-by: Eduardo Habkost <address@hidden>
> ---
> scripts/simpletrace.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I can now successfully run simpletrace.py using Python 3. Thanks!
Thanks, applied to my tracing-next tree:
https://github.com/stefanha/qemu/commits/tracing-next
Stefan
signature.asc
Description: PGP signature