[PATCH v3 0/2] coresight: etm4x: Refactor trace filter

James Clark james.clark at linaro.org
Wed May 21 07:05:08 PDT 2025



On 21/05/2025 1:54 pm, Leo Yan wrote:
> This series is minor refactoring for trace filter and comes from the
> previous patch set [1].
> 
> The first patch introduces a new helper has_feat_trf() for detecing if
> FEAT_TRF is implemented. This is more readable.
> 
> The second patch refactors the ts_source_show() function.  It simplifies
> to directly return the TS value when FEAT_TRF is implemented.
> 
> [1] https://lore.kernel.org/linux-arm-kernel/20250519174945.2245271-1-leo.yan@arm.com/
> 
> Changes from v2:
> - Added the has_feat_trf() helper for more readable (James Clark)
> 
> 
> Leo Yan (2):
>    coresight: etm4x: Introduce has_feat_trf() helper
>    coresight: etm4x: Refactor returning TS field
> 
>   drivers/hwtracing/coresight/coresight-etm4x-core.c  |  8 ++++----
>   drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 18 +++---------------
>   drivers/hwtracing/coresight/coresight-etm4x.h       |  9 +++++++++
>   3 files changed, 16 insertions(+), 19 deletions(-)
> 

Reviewed-by: James Clark <james.clark at linaro.org>




More information about the linux-arm-kernel mailing list