From: Linu Cherian <lcherian@marvell.com>
To: James Clark <james.clark@linaro.org>
Cc: "coresight@lists.linaro.org" <coresight@lists.linaro.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <shuah@kernel.org>,
<linux-kselftest@vger.kernel.org>, <sgoutham@marvell.com>,
<gcherian@marvell.com>, Mike Leach <mike.leach@linaro.org>,
Suzuki K Poulose <Suzuki.Poulose@arm.com>,
Leo Yan <leo.yan@arm.com>
Subject: Re: [PATCH] selftests: arm coresight: sysfsmode testing
Date: Mon, 16 Dec 2024 11:05:41 +0530 [thread overview]
Message-ID: <20241216053541.GC1224111@hyd1403.caveonetworks.com> (raw)
In-Reply-To: <1b7aaa17-48b7-45cd-b468-ef54ca048e31@linaro.org>
Hi James,
On 2024-12-04 at 16:45:42, James Clark (james.clark@linaro.org) wrote:
>
>
> On 29/11/2024 8:38 am, Linu Cherian wrote:
> > Add sysfs mode selftest for ARM Coresight hardware tracer.
> >
> > Signed-off-by: Linu Cherian <lcherian@marvell.com>
> > ---
> > .../drivers/hwtracing/coresight/Makefile | 5 +
> > .../hwtracing/coresight/sysfs_test_trace.sh | 144 ++++++++++++++++++
> > 2 files changed, 149 insertions(+)
> > create mode 100644 tools/testing/selftests/drivers/hwtracing/coresight/Makefile
>
> Hi Linu,
>
> You need to add this path into TARGETS for make install to work:
>
> TARGETS += drivers/dma-buf
> +TARGETS += drivers/hwtracing/coresight
> TARGETS += drivers/s390x/uvdevice
Sure will add that.
Thanks.
>
>
> > create mode 100755 tools/testing/selftests/drivers/hwtracing/coresight/sysfs_test_trace.sh
> >
> > diff --git a/tools/testing/selftests/drivers/hwtracing/coresight/Makefile b/tools/testing/selftests/drivers/hwtracing/coresight/Makefile
> > new file mode 100644
> > index 000000000000..7dc68ae1c0a9
> > --- /dev/null
> > +++ b/tools/testing/selftests/drivers/hwtracing/coresight/Makefile
> > @@ -0,0 +1,5 @@
> > +# SPDX-License-Identifier: GPL-2.0
> > +
> > +TEST_PROGS = sysfs_test_trace.sh
> > +
> > +include ../../../lib.mk
> > diff --git a/tools/testing/selftests/drivers/hwtracing/coresight/sysfs_test_trace.sh b/tools/testing/selftests/drivers/hwtracing/coresight/sysfs_test_trace.sh
> > new file mode 100755
> > index 000000000000..0d6307fff1d2
> > --- /dev/null
> > +++ b/tools/testing/selftests/drivers/hwtracing/coresight/sysfs_test_trace.sh
> > @@ -0,0 +1,144 @@
> > +#!/bin/sh
> > +# SPDX-License-Identifier: GPL-2.0
> > +# Copyright (C) 2024 Marvell.
> > +
> > +# Test Arm CoreSight trace capture in sysfs mode
> > +# Based on tools/perf/tests/shell/test_arm_coresight.sh
> > +
> > +glb_err=0
> > +
> > +arm_cs_report() {
> > + if [ $2 != 0 ]; then
> > + echo "$1: FAIL"
> > + glb_err=$2
> > + else
> > + echo "$1: PASS"
> > + fi
> > +}
> > +
> > +is_device_sink() {
> > + # If the node of "enable_sink" is existed under the device path, this
> > + # means the device is a sink device.
> > +
>
> Looks like you still need the skip for TPIU here the same as the Perf test.
> It's an external sink and doesn't have a readable file so the test fails.
>
> With those changes, looks good. Thanks for adding the first sysfs test.
> Hopefully we can expand them more in the future.
>
> Reviewed-by: James Clark <james.clark@linaro.org>
>
>
next prev parent reply other threads:[~2024-12-16 5:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-29 8:38 [PATCH] selftests: arm coresight: sysfsmode testing Linu Cherian
2024-12-04 0:23 ` Shuah Khan
2024-12-04 11:18 ` James Clark
2024-12-16 5:35 ` Linu Cherian
2024-12-04 11:15 ` James Clark
2024-12-16 5:35 ` Linu Cherian [this message]
2024-12-16 5:50 ` Linu Cherian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241216053541.GC1224111@hyd1403.caveonetworks.com \
--to=lcherian@marvell.com \
--cc=Suzuki.Poulose@arm.com \
--cc=coresight@lists.linaro.org \
--cc=gcherian@marvell.com \
--cc=james.clark@linaro.org \
--cc=leo.yan@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mike.leach@linaro.org \
--cc=sgoutham@marvell.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox