[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b1ffbdda-f5b9-46da-bc78-e90ccfa41344@linaro.org>
Date: Mon, 23 Dec 2024 14:38:28 +0000
From: James Clark <james.clark@...aro.org>
To: Linu Cherian <lcherian@...vell.com>, suzuki.poulose@....com,
mike.leach@...aro.org
Cc: linux-arm-kernel@...ts.infradead.org, coresight@...ts.linaro.org,
linux-kernel@...r.kernel.org, shuah@...nel.org,
linux-kselftest@...r.kernel.org, sgoutham@...vell.com, gcherian@...vell.com
Subject: Re: [PATCH v2] selftests: arm coresight: sysfsmode testing
On 19/12/2024 2:24 pm, Linu Cherian wrote:
> Add sysfs mode selftest for ARM Coresight hardware tracer.
>
> The test will run below sequence for all possible sinks for every
> trace source available on the system.
> 1. Enable source and sink device to start tracing in sysfs mode
> 3. Run a standard dd command to be traced
> 4. Stop tracing
> 5. Readback tracedata
>
> - Test case is pass if the readback of tracedata is success else
> failure.
> - In case of ETR sink, the test is run with both default buffer mode and
> reserved buffer mode(if available).
>
> Sample output:
>
> selftests: drivers/hwtracing/coresight: sysfs_test_trace.sh
> Running sysfs trace with default settings
> 64+0 records in
> 64+0 records out
> 67108864 bytes (67 MB, 64 MiB) copied, 0.196945 s, 341 MB/s
> 32+0 records in
> 32+0 records out
> 16384 bytes (16 kB, 16 KiB) copied, 0.000805288 s, 20.3 MB/s
> CoreSight path testing (CPU0 -> tmc_etf0): PASS
>
> Signed-off-by: Linu Cherian <lcherian@...vell.com>
> ---
> Changelog from v1:
> - Added test description in commit message suggested by Shuah
> - Added config dependency file suggested by Shuah
> - Added TARGETS as suggested by James
> - Skipped TPIU as suggested by James
> - Added Reviewed-by tag
>
>
> tools/testing/selftests/Makefile | 1 +
> .../drivers/hwtracing/coresight/Makefile | 5 +
> .../drivers/hwtracing/coresight/config | 7 +
> .../hwtracing/coresight/sysfs_test_trace.sh | 146 ++++++++++++++++++
> 4 files changed, 159 insertions(+)
> create mode 100644 tools/testing/selftests/drivers/hwtracing/coresight/Makefile
> create mode 100644 tools/testing/selftests/drivers/hwtracing/coresight/config
> create mode 100755 tools/testing/selftests/drivers/hwtracing/coresight/sysfs_test_trace.sh
>
Reviewed-by: James Clark <james.clark@...aro.org>
Powered by blists - more mailing lists