[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210410050046.5394-1-leo.yan@linaro.org>
Date: Sat, 10 Apr 2021 13:00:40 +0800
From: Leo Yan <leo.yan@...aro.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Al Grant <Al.Grant@....com>,
John Garry <john.garry@...wei.com>,
Will Deacon <will@...nel.org>,
Mathieu Poirier <mathieu.poirier@...aro.org>,
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>,
Adrian Hunter <adrian.hunter@...el.com>,
Dave Martin <Dave.Martin@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
James Clark <James.Clark@....com>
Cc: Leo Yan <leo.yan@...aro.org>
Subject: [PATCH v3 0/6] perf arm-spe: Enable timestamp
This patch set is to enable timestamp for Arm SPE trace. It reads out
TSC parameters from the TIME_CONV event, the parameters are used for
conversion between timer counter and kernel time and which is applied
for Arm SPE samples.
This version dropped the change for adding hardware clock parameters
into auxtrace info, alternatively, it utilizes the TIME_CONV event to
extract the clock parameters which is used for timestamp calculation.
This patch set can be clearly applied on perf/core branch with:
commit 2c0cb9f56020 ("perf test: Add a shell test for 'perf stat --bpf-counters' new option")
Ths patch series has been tested on Hisilicon D06 platform.
Changes from v2:
* Changed to use TIME_CONV event for extracing clock parameters (Al).
Changes from v1:
* Rebased patch series on the latest perf/core branch;
* Fixed the patch for dumping TSC parameters to support both the
older and new auxtrace info format.
Leo Yan (6):
perf arm-spe: Remove unused enum value ARM_SPE_PER_CPU_MMAPS
perf arm-spe: Save clock parameters from TIME_CONV event
perf arm-spe: Convert event kernel time to counter value
perf arm-spe: Assign kernel time to synthesized event
perf arm-spe: Bail out if the trace is later than perf event
perf arm-spe: Don't wait for PERF_RECORD_EXIT event
tools/perf/util/arm-spe.c | 66 +++++++++++++++++++++++++++++++++------
tools/perf/util/arm-spe.h | 1 -
2 files changed, 56 insertions(+), 11 deletions(-)
--
2.25.1
Powered by blists - more mailing lists