This patch series is to support for using 'perf script' for CoreSight trace disassembler, for this purpose this patch series adds a new python script to parse CoreSight tracing event and use command 'objdump' for disassembled lines, finally this can generate readable program execution flow for reviewing tracing data.
Patch 0001 is the prerequisite to add addr into sample dict, so this value can be used by python script to analyze instruction range.
Patch 0002 is to add python script for trace disassembler.
Patch 0003 is to add doc to explain python script usage and give example for it.
This patch series has been tested on Hikey (ARM64 octa CA53 cores). The script is expected to extend a bit to support ARM32 platform, but I am lacking ARM32 platform for testing on it, so firstly upstream to support ARM64 platform firstly.
You are very welcome to test the script in this patch series, your testing result and suggestion are very valuable to perfect this script to cover more cases, at the end we will have more confidence to upstream into mainline kernel.
Leo Yan (3): perf script python: Add addr into perf sample dict perf script python: Add script for CoreSight trace disassembler coresight: Document for CoreSight trace disassembler
Documentation/trace/coresight.txt | 52 ++++ tools/perf/scripts/python/arm-cs-trace-disasm.py | 324 +++++++++++++++++++++ .../util/scripting-engines/trace-event-python.c | 2 + 3 files changed, 378 insertions(+) create mode 100644 tools/perf/scripts/python/arm-cs-trace-disasm.py