Skip to content

perf cs_etm: Basic support for virtual/kernel timestamps

German Gomez linux-arm-kernel linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf pmu: Add function to check if a pmu file existstools/perf/util/pmu.c tools/perf/util/pmu.h+19 -02 replies
2/4perf cs_etm: Keep separate symbols for ETMv4 and ETE parameterstools/perf/arch/arm/util/cs-etm.c tools/perf/util/cs-etm.c tools/perf/util/cs-etm.h+76 -220 replies
3/4perf cs_etm: Record ts_source in AUXTRACE_INFO for ETMv4 and ETEtools/perf/arch/arm/util/cs-etm.c tools/perf/util/cs-etm.c tools/perf/util/cs-etm.h+50 -00 replies
4/4perf cs_etm: Set the time field in the synthetic samplestools/perf/util/cs-etm.c+76 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] perf cs_etm: Basic support for virtual/kernel timestamps

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/[email protected]/

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(-)
Signature · 1 line
2.25.1