Skip to content
Commit d28d95bc authored by james-c-linaro's avatar james-c-linaro Committed by Will Deacon
Browse files

perf: arm_spe: Add format option for discard mode



FEAT_SPEv1p2 (optional from Armv8.6) adds a discard mode that allows all
SPE data to be discarded rather than written to memory. Add a format
bit for this mode.

If the mode isn't supported, the format bit isn't published and attempts
to use it will result in -EOPNOTSUPP. Allocating an aux buffer is still
allowed even though it won't be written to so that old tools continue to
work, but updated tools can choose to skip this step.

Signed-off-by: james-c-linaro's avatarJames Clark <james.clark@linaro.org>
Reviewd-by: Yeo Reum Yun's avatarYeoreum Yun <yeoreum.yun@arm.com>
Link: https://lore.kernel.org/r/20250108142904.401139-2-james.clark@linaro.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent d00f343a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment