Skip to content

perf: cs-etm: Coresight decode and disassembly improvements

James Clark linux-arm-kernel linux-perf-users lkml 3 versions – Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 4 repliesApplied
  2. v27 patches 13 repliesSuperseded
  3. v18 patches 3 repliesSuperseded

Changes in v3 from the cover letter

* Check validity of start stop arguments
* Make test work if Perf was installed
* Document that start and stop time are monotonic clock values

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7perf cs-etm: Don't flush when packet_queue fills uptools/perf/util/cs-etm.c+18 -70 replies
2/7perf cs-etm: Use new OpenCSD consistency checkstools/perf/util/cs-etm-decoder/cs-etm-decoder.c+6 -10 replies
3/7perf scripting python: Add function to get a config valuetools/perf/Documentation/perf-script-python.txt tools/perf/scripts/python/Perf-Trace-Util/Context.c tools/perf/util/config.c +1 more+35 -10 replies
4/7perf scripts python cs-etm: Update to use argparsetools/perf/scripts/python/arm-cs-trace-disasm.py+10 -180 replies
5/7perf scripts python cs-etm: Improve argumentstools/perf/scripts/python/arm-cs-trace-disasm.py+55 -80 replies
6/7perf scripts python cs-etm: Add start and stop argumentstools/perf/scripts/python/arm-cs-trace-disasm.py+38 -20 replies
7/7perf test: cs-etm: Test Coresight disassembly scripttools/perf/tests/shell/test_arm_coresight_disasm.sh+65 -01 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchLeo YanGanapatrao Kulkarni
SeriesT-b
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] perf: cs-etm: Coresight decode and disassembly improvements

A set of changes that came out of the issues reported here [1].

* First 2 patches fix a decode bug in Perf and add support for new consistency checks in OpenCSD
* The remaining ones make the disassembly script easier to test and use. This also involves adding a new Python binding to Perf to get a config value (perf_config_get())

[1]: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Changes since V2:
* Check validity of start stop arguments
* Make test work if Perf was installed
* Document that start and stop time are monotonic clock values

Changes since V1:
* Keep the flush function for discontinuities
* Still remove the flush when the buffer fills, but now add cs_etm__end_block() for the end trace. That way we won't drop the last branch stack if the instruction sample period wasn't hit at the very end.

James Clark (7):
perf cs-etm: Don't flush when packet_queue fills up perf cs-etm: Use new OpenCSD consistency checks perf scripting python: Add function to get a config value perf scripts python cs-etm: Update to use argparse perf scripts python cs-etm: Improve arguments perf scripts python cs-etm: Add start and stop arguments perf test: cs-etm: Test Coresight disassembly script

 .../perf/Documentation/perf-script-python.txt |   2 +-
 .../scripts/python/Perf-Trace-Util/Context.c  |  11 ++
 .../scripts/python/arm-cs-trace-disasm.py     | 127 ++++++++++++++----
 .../tests/shell/test_arm_coresight_disasm.sh  |  65 +++++++++
 tools/perf/util/config.c                      |  22 +++
 tools/perf/util/config.h                      |   1 +
 .../perf/util/cs-etm-decoder/cs-etm-decoder.c |   7 +-
 tools/perf/util/cs-etm.c                      |  25 +++-
 8 files changed, 225 insertions(+), 35 deletions(-)
 create mode 100755 tools/perf/tests/shell/test_arm_coresight_disasm.sh
Signature · 1 line
2.34.1