perf scripts python: exported-sql-viewer.py: Fix python3 support
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 27 Mar 2019 07:28:26 +0000 (09:28 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 28 Mar 2019 18:53:16 +0000 (15:53 -0300)
commit606bd60ab6fbcb7f73deeef4fa37cfd5e447a200
tree74ae7a03a6b2767c645d38aba8191b451509a81c
parent8453c936db20489dbf0957187dca9a2656a2a7b6
perf scripts python: exported-sql-viewer.py: Fix python3 support

Unlike python2, python3 strings are not compatible with byte strings.
That results in disassembly not working for the branches reports. Fixup
those places overlooked in the port to python3.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Fixes: beda0e725e5f ("perf script python: Add Python3 support to exported-sql-viewer.py")
Link: http://lkml.kernel.org/r/20190327072826.19168-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/exported-sql-viewer.py