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

Leo Yan leo.yan at arm.com
Wed May 21 05:54:04 PDT 2025


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(-)

-- 
2.34.1




More information about the linux-arm-kernel mailing list