History

perf scripts intel-pt-events.py: Fix IPC output for Python 2

Integers are not converted to floats during division in Python 2 which results in incorrect IPC values. Fix by switching to new division behavior.

Roman Lozko committed 3 years ago

Commit 1f64cfd1 parent 0e70f501 file · +1 −1Browse files

Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all

Unified · Split

tools/perf/scripts/python/intel-pt-events.py+1−1
@@ -11,7 +11,7 @@ · 10 unmodified lines
11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12# more details.12# more details.
13 13
14from __future__ import print_function14from __future__ import division, print_function
15 15
16import io16import io
17import os17import os