diff options
| author | Adrian Hunter <[email protected]> | 2021-12-15 08:06:36 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-12-28 20:26:25 +0000 |
| commit | 0f80bfbf4919e32f52fe1312c3900ff4fbb7eeb9 (patch) | |
| tree | 3821b3382d4ac9fc2cd820ec557553db41b47a70 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | perf script: Fix CPU filtering of a script's switch events (diff) | |
| download | kernel-0f80bfbf4919e32f52fe1312c3900ff4fbb7eeb9.tar.gz kernel-0f80bfbf4919e32f52fe1312c3900ff4fbb7eeb9.zip | |
perf scripts python: intel-pt-events.py: Fix printing of switch events
The intel-pt-events.py script displays only the last of consecutive switch
statements but that may not be the last switch event for the CPU. Fix by
keeping a dictionary of last context switch keyed by CPU, and make it
possible to see all switch events by adding option --all-switch-events.
Fixes: a92bf335fd82eeee ("perf scripts python: intel-pt-events.py: Add branches to script")
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Riccardo Mancini <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
