diff options
| author | Christophe Leroy <[email protected]> | 2021-11-26 11:30:03 +0100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-11-29 22:49:29 +1100 |
| commit | cdc81aece8041fd5437bdabde6c543cdeb2891a8 (patch) | |
| tree | e2da7f1e649acd86509bddfd03e74554063b3b78 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 7dfbfb87c243cf08bc2b9cc23699ac207b726458 (diff) | |
powerpc/ptdump: Fix display a BAT's size unit
We have wrong units on BAT's sizes (G instead of M, M instead of ...)
---[ Instruction Block Address Translation ]---
0: 0xc0000000-0xc03fffff 0x00000000 4G Kernel x m
1: 0xc0400000-0xc05fffff 0x00400000 2G Kernel x m
2: 0xc0600000-0xc06fffff 0x00600000 1G Kernel x m
3: 0xc0700000-0xc077ffff 0x00700000 512M Kernel x m
4: 0xc0780000-0xc079ffff 0x00780000 128M Kernel x m
5: 0xc07a0000-0xc07bffff 0x007a0000 128M Kernel x m
6: -
7: -
This is because pt_dump_size() expects a size in Kbytes but
bat_show_603() gives the size in bytes.
To avoid risk of confusion, change pt_dump_size() to take bytes.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/f16c30f5c9185a63335322cf1a8b22f189d335ef.1637922595.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions