diff options
| author | Roman Lozko <[email protected]> | 2023-03-10 15:04:45 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-03-14 11:46:23 +0000 |
| commit | 1f64cfdebfe0494264271e8d7a3a47faf5f58ec7 (patch) | |
| tree | 869af89bec2163542c29e08307fa89adb5933729 /tools/perf/util/trace-event-scripting.c | |
| parent | perf tools bpf: Add vmlinux.h to .gitignore (diff) | |
| download | kernel-1f64cfdebfe0494264271e8d7a3a47faf5f58ec7.tar.gz kernel-1f64cfdebfe0494264271e8d7a3a47faf5f58ec7.zip | |
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.
Fixes: a483e64c0b62e93a ("perf scripting python: intel-pt-events.py: Add --insn-trace and --src-trace")
Signed-off-by: Roman Lozko <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Cc: Adrian Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
