linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] perf cs_etm: Basic support for virtual/kernel timestamps
@ 2022-05-04 15:02 German Gomez
  2022-05-04 15:02 ` [PATCH 1/4] perf pmu: Add function to check if a pmu file exists German Gomez
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: German Gomez @ 2022-05-04 15:02 UTC (permalink / raw)
  To: linux-kernel, linux-perf-users, acme
  Cc: German Gomez, Mike Leach, Leo Yan, John Garry, Will Deacon,
	Mathieu Poirier, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Namhyung Kim, coresight, linux-arm-kernel

Hi,

This change has a soft dependency on [1], but assuming the name/location
of the new sysfs interface (ts_source) doesn't change, it should be safe
to apply.

The new 'ts_source' interface allows perf to detect if the timestamps in
the trace correspond to the value of CNTVCT_EL0, which we can convert to
a perf timestamp and store it in the instruction and branch samples.

Due to the way the trace is compressed and decoded by OpenCSD, we only
know the precise time of the first instruction in a range, but I think
for now this is better than not having timestamps at all...

Thanks,
German

[1] https://lore.kernel.org/all/20220503123537.1003035-1-german.gomez@arm.com/

German Gomez (4):
  perf pmu: Add function to check if a pmu file exists
  perf cs_etm: Keep separate symbols for ETMv4 and ETE parameters
  perf cs_etm: Record ts_source in AUXTRACE_INFO for ETMv4 and ETE
  perf cs_etm: Set the time field in the synthetic samples

 tools/perf/arch/arm/util/cs-etm.c |  89 +++++++++++++++++++--
 tools/perf/util/cs-etm.c          | 126 +++++++++++++++++++++++++-----
 tools/perf/util/cs-etm.h          |  13 ++-
 tools/perf/util/pmu.c             |  17 ++++
 tools/perf/util/pmu.h             |   2 +
 5 files changed, 221 insertions(+), 26 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-05-11 11:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04 15:02 [PATCH 0/4] perf cs_etm: Basic support for virtual/kernel timestamps German Gomez
2022-05-04 15:02 ` [PATCH 1/4] perf pmu: Add function to check if a pmu file exists German Gomez
2022-05-10 16:41   ` Arnaldo Carvalho de Melo
2022-05-11 11:49     ` German Gomez
2022-05-04 15:02 ` [PATCH 2/4] perf cs_etm: Keep separate symbols for ETMv4 and ETE parameters German Gomez
2022-05-04 15:02 ` [PATCH 3/4] perf cs_etm: Record ts_source in AUXTRACE_INFO for ETMv4 and ETE German Gomez
2022-05-04 15:02 ` [PATCH 4/4] perf cs_etm: Set the time field in the synthetic samples German Gomez
2022-05-05  9:56 ` [PATCH 0/4] perf cs_etm: Basic support for virtual/kernel timestamps Mike Leach

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).