coresight-tpdm: Add integration test support
authorMao Jinlong <quic_jinlmao@quicinc.com>
Tue, 17 Jan 2023 14:57:04 +0000 (06:57 -0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 20 Jan 2023 11:39:03 +0000 (11:39 +0000)
commit436cca9a2c0f05a3802a6a5a7c6849853590f919
tree0fc87925a9ca64703354aca9cf6e9a29612502a3
parent1f00465d7fc742543ebc096879bddc01ee4a5993
coresight-tpdm: Add integration test support

Integration test for tpdm can help to generate the data for
verification of the topology during TPDM software bring up.

Sample:
echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink
echo 1 > /sys/bus/coresight/devices/tpdm0/enable_source
echo 1 > /sys/bus/coresight/devices/tpdm0/integration_test
echo 2 > /sys/bus/coresight/devices/tpdm0/integration_test
cat /dev/tmc_etf0 > /data/etf-tpdm0.bin

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230117145708.16739-6-quic_jinlmao@quicinc.com
Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm [new file with mode: 0644]
drivers/hwtracing/coresight/coresight-tpdm.c
drivers/hwtracing/coresight/coresight-tpdm.h