[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210428120915.7123-1-leo.yan@linaro.org>
Date: Wed, 28 Apr 2021 20:09:11 +0800
From: Leo Yan <leo.yan@...aro.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Steve MacLean <Steve.MacLean@...rosoft.com>,
Yonatan Goldschmidt <yonatan.goldschmidt@...nulate.io>,
Kan Liang <kan.liang@...ux.intel.com>,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Leo Yan <leo.yan@...aro.org>
Subject: [PATCH v3 0/4] perf: Allow TIME_CONV to be backwards-compatible and dump it
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 rebased on perf/core branch with:
commit 4c391ea001cb ("perf beauty: Fix fsconfig generator")
And the patches have been tested on Arm64 HiSilicon D06 platform.
Changes from v2:
* Fixed subject and commit log in patch 01.
Changes from v1:
* Changed from bool to __u8 for perf_record_time_conv (Adrain);
* Added helper event_contains() and used it (Adrian).
Leo Yan (4):
perf tool: Change fields type in perf_record_time_conv
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/lib/perf/include/perf/event.h | 7 +++++--
tools/perf/util/jitdump.c | 30 +++++++++++++++++++----------
tools/perf/util/session.c | 28 +++++++++++++++++++++++++--
tools/perf/util/tsc.c | 30 +++++++++++++++++++++++++++++
tools/perf/util/tsc.h | 4 ++++
5 files changed, 85 insertions(+), 14 deletions(-)
--
2.25.1
Powered by blists - more mailing lists