summaryrefslogtreecommitdiffstats
path: root/scripts/tracetool/backend/__init__.py
diff options
context:
space:
mode:
authorEduardo Habkost2018-06-19 21:45:49 +0200
committerStefan Hajnoczi2018-06-29 16:04:18 +0200
commit749c1d8e3e12c44247927d8f72f68ec0c0266f8b (patch)
treef483757cf4cc8606cfd7d34e37582ad5d581f84b /scripts/tracetool/backend/__init__.py
parentMerge remote-tracking branch 'remotes/berrange/tags/qio-next-pull-request' in... (diff)
downloadqemu-749c1d8e3e12c44247927d8f72f68ec0c0266f8b.tar.gz
qemu-749c1d8e3e12c44247927d8f72f68ec0c0266f8b.tar.xz
qemu-749c1d8e3e12c44247927d8f72f68ec0c0266f8b.zip
simpletrace: Convert name from mapping record to str
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 <ehabkost@redhat.com> Message-id: 20180619194549.15584-1-ehabkost@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/tracetool/backend/__init__.py')
0 files changed, 0 insertions, 0 deletions