Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

coresight: Don't reject unrecognized ETMv3 format attributes

config isn't the only field, there are also config1, config2, etc.
Rejecting unrecognized attributes is therefore inconsistent as it wasn't
done for all fields. It was only necessary when we were directly
programming attr->config into ETMCR and didn't hide the unsupported
fields, but now it's not needed so remove it.

Reviewed-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Tested-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20251128-james-cs-syncfreq-v8-7-4d319764cc58@linaro.org

authored by

James Clark and committed by
Suzuki K Poulose
d633fd22 a1d19cd2

-7
-7
drivers/hwtracing/coresight/coresight-etm3x-core.c
··· 333 333 if (config->mode) 334 334 etm_config_trace_mode(config); 335 335 336 - /* 337 - * At this time only cycle accurate, return stack and timestamp 338 - * options are available. 339 - */ 340 - if (attr->config & ~ETM3X_SUPPORTED_OPTIONS) 341 - return -EINVAL; 342 - 343 336 config->ctrl = 0; 344 337 345 338 if (ATTR_CFG_GET_FLD(attr, cycacc))