Skip to content

Commit bb5293e

Browse files
Suzuki K Poulosemathieupoirier
authored andcommitted
coresight: trbe: Fix incorrect access of the sink specific data
The TRBE driver wrongly treats the aux private data as the TRBE driver specific buffer for a given perf handle, while it is the ETM PMU's event specific data. Fix this by correcting the instance to use appropriate helper. Cc: stable <[email protected]> Fixes: 3fbf7f0 ("coresight: sink: Add TRBE driver") Signed-off-by: Suzuki K Poulose <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] [Fixed 13 character SHA down to 12] Signed-off-by: Mathieu Poirier <[email protected]>
1 parent 0605b89 commit bb5293e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwtracing/coresight/coresight-trbe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static unsigned long __trbe_normal_offset(struct perf_output_handle *handle)
382382

383383
static unsigned long trbe_normal_offset(struct perf_output_handle *handle)
384384
{
385-
struct trbe_buf *buf = perf_get_aux(handle);
385+
struct trbe_buf *buf = etm_perf_sink_config(handle);
386386
u64 limit = __trbe_normal_offset(handle);
387387
u64 head = PERF_IDX2OFF(handle->head, buf);
388388

0 commit comments

Comments
 (0)