coresight: tmc-etr: Use perf_output_handle::head for AUX ring buffer
authorLeo Yan <leo.yan@linaro.org>
Sun, 12 Sep 2021 12:57:47 +0000 (20:57 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 27 Oct 2021 17:44:47 +0000 (11:44 -0600)
commitf36dec8da1a4a083c51e4d2297985d3648b6740f
tree689e82fa823a615136499293f9c4580dcc0c1d29
parentbd8d06886d0a9b59d020fdb2496c76db77816768
coresight: tmc-etr: Use perf_output_handle::head for AUX ring buffer

When enable the Arm CoreSight PMU event, the context for AUX ring buffer
is prepared in the structure perf_output_handle, and its field "head"
points the head of the AUX ring buffer and it is updated after filling
AUX trace data into buffer.

Current code uses an extra field etr_perf_buffer::head to maintain the
header for the AUX ring buffer which is not necessary; alternatively,
it's better to directly use perf_output_handle::head.

This patch removes the field etr_perf_buffer::head and directly uses
perf_output_handle::head for the head of AUX ring buffer.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20210912125748.2816606-2-leo.yan@linaro.org
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight-tmc-etr.c