linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/4] coresight: Add ETR-PERF polling.
@ 2021-07-13 12:15 Daniel Kiss
  2021-07-13 12:15 ` [PATCHv2 1/4] coresight: tmc-etr: Use handle->head from perf_output_handle directly Daniel Kiss
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Daniel Kiss @ 2021-07-13 12:15 UTC (permalink / raw)
  To: coresight
  Cc: denik, leo.yan, linux-arm-kernel, mathieu.poirier, mike.leach,
	suzuki.poulose, Daniel Kiss

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

-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-09-01 18:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13 12:15 [PATCHv2 0/4] coresight: Add ETR-PERF polling Daniel Kiss
2021-07-13 12:15 ` [PATCHv2 1/4] coresight: tmc-etr: Use handle->head from perf_output_handle directly Daniel Kiss
2021-07-13 12:15 ` [PATCHv2 2/4] coresight: tmc-etr: Track perf handler Daniel Kiss
2021-08-25 17:02   ` Mathieu Poirier
2021-08-25 19:09     ` Mathieu Poirier
2021-07-13 12:15 ` [PATCHv2 3/4] coresight: etm-perf: Export etm_event_cpu_path Daniel Kiss
2021-07-13 12:15 ` [PATCHv2 4/4] coresight: Add ETR-PERF polling Daniel Kiss
2021-08-26 16:41   ` Mathieu Poirier
2021-08-26 17:32   ` Mathieu Poirier
2021-08-31 13:31     ` Mike Leach
2021-09-01 18:02       ` Mathieu Poirier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).