mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] Split Coresight decode by aux records
@ 2021-02-09  9:58 James Clark
  2021-02-09  9:58 ` [RFC PATCH 1/5] perf cs-etm: Split up etm queue setup function James Clark
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: James Clark @ 2021-02-09  9:58 UTC (permalink / raw)
  To: coresight
  Cc: al.grant, branislav.rankov, denik, James Clark, John Garry,
	Will Deacon, Mathieu Poirier, Leo Yan, Mike Leach, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, linux-arm-kernel,
	linux-kernel

The following patches fix opening perf.data files that have timestamps
(ordered data), aren't recorded with --per-thread, and that have
discontinuous data in a single aux trace buffer.

I have some open questions:
 * Can cs_etm__update_queues() be removed from cs_etm__flush_events()?
 * Why does the second commit start making some files process correctly?
 * Is it ok to wait for the flush to start processing? Previously
   processing happened when the first aux record was delivered to
   cs_etm__process_event().
 * Do the aux records need to be saved into a new buffer or can they
   be pulled from elsewhere?

I also have some further changes to make to make per-thread mode work
where the cpu field of the sample is set to -1. And when there are
no timestamps cs_etm__process_timeless_queues() is used, which is a
completely different code path.

Thanks
James

James Clark (5):
  perf cs-etm: Split up etm queue setup function
  perf cs-etm: Only search timestamp in current sample's queue.
  perf cs-etm: Save aux records in each etm queue
  perf cs-etm: don't process queues until cs_etm__flush_events
  perf cs-etm: split decode by aux records.

 tools/perf/util/cs-etm.c | 200 +++++++++++++++++++++++----------------
 1 file changed, 121 insertions(+), 79 deletions(-)

-- 
2.28.0


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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09  9:58 [RFC PATCH 0/5] Split Coresight decode by aux records James Clark
2021-02-09  9:58 ` [RFC PATCH 1/5] perf cs-etm: Split up etm queue setup function James Clark
2021-02-09  9:58 ` [RFC PATCH 2/5] perf cs-etm: Only search timestamp in current sample's queue James Clark
2021-02-09  9:58 ` [RFC PATCH 3/5] perf cs-etm: Save aux records in each etm queue James Clark
2021-02-09  9:58 ` [RFC PATCH 4/5] perf cs-etm: don't process queues until cs_etm__flush_events James Clark
2021-02-09  9:58 ` [RFC PATCH 5/5] perf cs-etm: split decode by aux records James Clark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®