mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] perf: Allow TIME_CONV to be backwards-compatible and dump it
@ 2021-04-12  8:34 Leo Yan
  2021-04-12  8:34 ` [PATCH v1 1/3] perf jit: Let convert_timestamp() to be backwards-compatible Leo Yan
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Leo Yan @ 2021-04-12  8:34 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Adrian Hunter, Peter Zijlstra,
	Ingo Molnar, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Namhyung Kim, Ian Rogers, Gustavo A. R. Silva, Steve MacLean,
	Yonatan Goldschmidt, Kan Liang, linux-kernel
  Cc: Leo Yan

The event PERF_RECORD_TIME_CONV was extended for clock parameters, but
the tool fails to be backwards-compatible for the old event format.

Based on checking the event size, this patch series can decide if the
extended clock parameters are contained in the perf event or not.  This
allows the event PERF_RECORD_TIME_CONV to be backwards-compatible.

The last patch also is introduced for dumping the event, for both the
old and latest event formats.

The patch set has been tested on Arm64 HiSilicon D06 platform.

Leo Yan (3):
  perf jit: Let convert_timestamp() to be backwards-compatible
  perf session: Add swap operation for event TIME_CONV
  perf session: Dump PERF_RECORD_TIME_CONV event

 tools/perf/util/jitdump.c | 31 +++++++++++++++++++++----------
 tools/perf/util/session.c | 35 +++++++++++++++++++++++++++++++++--
 tools/perf/util/tsc.c     | 31 +++++++++++++++++++++++++++++++
 tools/perf/util/tsc.h     |  4 ++++
 4 files changed, 89 insertions(+), 12 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-04-26  7:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12  8:34 [PATCH v1 0/3] perf: Allow TIME_CONV to be backwards-compatible and dump it Leo Yan
2021-04-12  8:34 ` [PATCH v1 1/3] perf jit: Let convert_timestamp() to be backwards-compatible Leo Yan
2021-04-26  5:55   ` Adrian Hunter
2021-04-12  8:34 ` [PATCH v1 2/3] perf session: Add swap operation for event TIME_CONV Leo Yan
2021-04-26  5:40   ` Adrian Hunter
2021-04-26  6:44     ` Leo Yan
2021-04-26  7:26       ` Adrian Hunter
2021-04-26  7:39         ` Leo Yan
2021-04-12  8:34 ` [PATCH v1 3/3] perf session: Dump PERF_RECORD_TIME_CONV event Leo Yan
2021-04-26  6:10   ` Adrian Hunter
2021-04-26  1:41 ` [PATCH v1 0/3] perf: Allow TIME_CONV to be backwards-compatible and dump it Leo Yan

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®