Commit 2e5a94f2 authored by Yuanfang Zhang's avatar Yuanfang Zhang Committed by Greg Kroah-Hartman
Browse files

coresight: Only register perf symlink for sinks with alloc_buffer



[ Upstream commit 12d9a9dd ]

Ensure that etm_perf_add_symlink_sink() is only called for devices
that implement the alloc_buffer operation. This prevents invalid
symlink creation for dummy sinks that do not implement alloc_buffer.

Without this check, perf may attempt to use a dummy sink that lacks
alloc_buffer operationsu to initialise perf's ring buffer, leading
to runtime failures.

Fixes: 9d3ba0b6 ("Coresight: Add coresight dummy driver")
Signed-off-by: default avatarYuanfang Zhang <quic_yuanfang@quicinc.com>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250630-etm_perf_sink-v1-1-e4a7211f9ad7@quicinc.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 50c3564c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment