The timestamp appears all zeros with latest kernel, which is caused by wrong bit field setting. The first patch fixes the regression.
The second patch refactors the ts_source_show() function. It simplifies the code for directly returning the TS value.
Changes from v1: - Retained the older condition check (Suzuki).
Leo Yan (2): coresight: etm4x: Fix timestamp bit field handling coresight: etm4x: Refactor returning TS field
drivers/hwtracing/coresight/coresight-etm4x-core.c | 2 +- drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 16 ++-------------- 2 files changed, 3 insertions(+), 15 deletions(-)