WSL2-Linux-Kernel/tools/perf/scripts
Roman Lozko a6ef72c38c perf scripts intel-pt-events.py: Fix IPC output for Python 2
[ Upstream commit 1f64cfdebf ]

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: a483e64c0b ("perf scripting python: intel-pt-events.py: Add --insn-trace and --src-trace")
Signed-off-by: Roman Lozko <lozko.roma@gmail.com>
Acked-by: Adrian 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: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 11:50:19 +02:00
..
perl perf scripting perl: Add common_callchain to fix argument order 2020-03-11 11:20:24 -03:00
python perf scripts intel-pt-events.py: Fix IPC output for Python 2 2023-05-17 11:50:19 +02:00
Build perf tools: Rename build libperf to perf 2019-02-14 15:18:08 -03:00