Skip to content
Commit a6ef72c3 authored by Roman Lozko's avatar Roman Lozko Committed by Greg Kroah-Hartman
Browse files

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

[ Upstream commit 1f64cfde ]

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

Fixes: a483e64c

 ("perf scripting python: intel-pt-events.py: Add --insn-trace and --src-trace")
Signed-off-by: default avatarRoman Lozko <lozko.roma@gmail.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20230310150445.2925841-1-lozko.roma@gmail.com
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 53f7b55f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment