WSL2-Linux-Kernel/tools/perf/scripts/python
Adrian Hunter bc5fce3dff perf scripts python: intel-pt-events.py: Fix printing of switch events
commit 0f80bfbf49 upstream.

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: a92bf335fd ("perf scripts python: intel-pt-events.py: Add branches to script")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Riccardo Mancini <rickyman7@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20211215080636.149562-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-05 12:42:40 +01:00
..
Perf-Trace-Util perf scripting python: Add perf_sample_srcline() and perf_sample_srccode() 2021-06-01 10:04:35 -03:00
bin perf scripts python: Fix passing arguments to stackcollapse report 2021-09-10 11:45:19 -03:00
check-perf-trace.py perf script python: add Python3 support to check-perf-trace.py 2019-03-06 18:10:46 -03:00
compaction-times.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00
event_analyzing_sample.py perf script python: Add Python3 support to event_analyzing_sample.py 2019-03-06 18:11:11 -03:00
export-to-postgresql.py perf scripts python: export-to-postgresql.py: Fix struct.pack() int argument 2020-07-03 08:15:02 -03:00
export-to-sqlite.py perf scripts python: export-to-sqlite.py: Export switch events 2019-07-10 12:37:35 -03:00
exported-sql-viewer.py perf scripting python: exported-sql-viewer.py: Factor out libxed.py 2021-06-01 10:05:08 -03:00
failed-syscalls-by-pid.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00
flamegraph.py perf flamegraph: flamegraph.py script improvements 2021-08-30 18:22:23 -03:00
futex-contention.py perf script: Add min, max to futex-contention output, in addition to avg 2020-09-23 12:58:53 -03:00
intel-pt-events.py perf scripts python: intel-pt-events.py: Fix printing of switch events 2022-01-05 12:42:40 +01:00
libxed.py perf scripting python: exported-sql-viewer.py: Factor out libxed.py 2021-06-01 10:05:08 -03:00
mem-phys-addr.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00
net_dropmonitor.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00
netdev-times.py perf tools: Fix various typos in comments 2021-03-23 17:13:43 -03:00
powerpc-hcalls.py perf script python: Add Python3 support to powerpc-hcalls.py 2019-02-25 17:16:57 -03:00
sched-migration.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00
sctop.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00
stackcollapse.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00
stat-cpi.py perf script python: Add Python3 support to stat-cpi.py 2019-02-25 17:17:07 -03:00
syscall-counts-by-pid.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00
syscall-counts.py perf script python: Remove mixed indentation 2019-03-06 18:09:14 -03:00