Skip to content

coresight: Add ETR-PERF polling.

Daniel Kiss linux-arm-kernel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesIn review
  2. v14 patches 30 repliesSuperseded

Changes in v2 from the cover letter

* tmc-etr: Advance buffer pointer in sync buffer refactored to use the buffer directly
* New config option to enable polling.
* Code of polling is simplified based on the commments.
* Fix event allocation issue by changing to GFP_ATOMIC.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4coresight: tmc-etr: Use handle->head from perf_output_handle directly.drivers/hwtracing/coresight/coresight-tmc-etr.c+5 -80 replies
2/4coresight: tmc-etr: Track perf handler.drivers/hwtracing/coresight/coresight-tmc-etr.c drivers/hwtracing/coresight/coresight-tmc.h+6 -22 replies
3/4coresight: etm-perf: Export etm_event_cpu_path.drivers/hwtracing/coresight/coresight-etm-perf.c drivers/hwtracing/coresight/coresight-etm-perf.h+2 -10 replies
4/4coresight: Add ETR-PERF polling.Documentation/ABI/testing/sysfs-bus-coresight-devices-tmc drivers/hwtracing/coresight/Kconfig drivers/hwtracing/coresight/Makefile +5 more+359 -04 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchDenis Nikitin
1/4
2/4
3/4
4/4T-b

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

Read the v2 thread

Cover letter [PATCHv2 0/4] coresight: Add ETR-PERF polling.

This series adds a feature to ETR-PERF that sync the ETR buffer to perf periodically. This is really handy when the system wide trace is used because in this case the perf won't sync during the trace. In a per-thread setup the traced program might not go to the kernel frequvently enought to collect trace. Polling helps in both usecases. Can be used with strobing. Tuning polling period is challanging, I'm working on an additional patch that adds some metrics to help tune the polling period.

Changes from v1:
* tmc-etr: Advance buffer pointer in sync buffer refactored to use the buffer directly
* New config option to enable polling.
* Code of polling is simplified based on the commments.
* Fix event allocation issue by changing to GFP_ATOMIC.

Daniel Kiss (4):
coresight: tmc-etr: Use handle->head from perf_output_handle directly.
coresight: tmc-etr: Track perf handler.
coresight: etm-perf: Export etm_event_cpu_path.
coresight: Add ETR-PERF polling.

 .../testing/sysfs-bus-coresight-devices-tmc   |   8 +
 drivers/hwtracing/coresight/Kconfig           |  12 +
 drivers/hwtracing/coresight/Makefile          |   1 +
 .../hwtracing/coresight/coresight-etm-perf.c  |  10 +-
 .../hwtracing/coresight/coresight-etm-perf.h  |   1 +
 .../coresight/coresight-etr-perf-polling.c    | 275 ++++++++++++++++++
 .../coresight/coresight-etr-perf-polling.h    |  38 +++
 .../hwtracing/coresight/coresight-tmc-core.c  |   4 +
 .../hwtracing/coresight/coresight-tmc-etr.c   |  32 +-
 drivers/hwtracing/coresight/coresight-tmc.h   |   2 +
 10 files changed, 372 insertions(+), 11 deletions(-)
 create mode 100644 drivers/hwtracing/coresight/coresight-etr-perf-polling.c
 create mode 100644 drivers/hwtracing/coresight/coresight-etr-perf-polling.h
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel