From: mathieu.poirier@linaro.org (Mathieu Poirier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/11] coresight: etm4x: adding config and traceid registers
Date: Tue, 5 Apr 2016 11:53:43 -0600 [thread overview]
Message-ID: <1459878832-15219-3-git-send-email-mathieu.poirier@linaro.org> (raw)
In-Reply-To: <1459878832-15219-1-git-send-email-mathieu.poirier@linaro.org>
Adding new sysFS management interface to query the configuration
and the traceid registers. Both are required to convey information
to the perf cmd line tools when using ETMv4 tracers as PMU.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x | 13 +++++++++++++
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 4 ++++
2 files changed, 17 insertions(+)
diff --git a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x b/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x
index 2355ed8ae31f..36258bc1b473 100644
--- a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x
+++ b/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x
@@ -359,6 +359,19 @@ Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Print the content of the Peripheral ID3 Register
(0xFEC). The value is taken directly from the HW.
+What: /sys/bus/coresight/devices/<memory_map>.etm/mgmt/trcconfig
+Date: February 2016
+KernelVersion: 4.07
+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
+Description: (R) Print the content of the trace configuration register
+ (0x010) as currently set by SW.
+
+What: /sys/bus/coresight/devices/<memory_map>.etm/mgmt/trctraceid
+Date: February 2016
+KernelVersion: 4.07
+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
+Description: (R) Print the content of the trace ID register (0x040).
+
What: /sys/bus/coresight/devices/<memory_map>.etm/trcidr/trcidr0
Date: April 2015
KernelVersion: 4.01
diff --git a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
index 5db0de7d4e0e..39a8b077e0c2 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
+++ b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
@@ -1972,6 +1972,8 @@ coresight_simple_func(trcoslsr, TRCOSLSR);
coresight_simple_func(trcpdcr, TRCPDCR);
coresight_simple_func(trcpdsr, TRCPDSR);
coresight_simple_func(trclsr, TRCLSR);
+coresight_simple_func(trcconfig, TRCCONFIGR);
+coresight_simple_func(trctraceid, TRCTRACEIDR);
coresight_simple_func(trcauthstatus, TRCAUTHSTATUS);
coresight_simple_func(trcdevid, TRCDEVID);
coresight_simple_func(trcdevtype, TRCDEVTYPE);
@@ -1985,6 +1987,8 @@ static struct attribute *coresight_etmv4_mgmt_attrs[] = {
&dev_attr_trcpdcr.attr,
&dev_attr_trcpdsr.attr,
&dev_attr_trclsr.attr,
+ &dev_attr_trcconfig.attr,
+ &dev_attr_trctraceid.attr,
&dev_attr_trcauthstatus.attr,
&dev_attr_trcdevid.attr,
&dev_attr_trcdevtype.attr,
--
2.1.4
next prev parent reply other threads:[~2016-04-05 17:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-05 17:53 [PATCH 00/11] coresight: next v4.6-rc2 Mathieu Poirier
2016-04-05 17:53 ` Mathieu Poirier [this message]
2016-04-05 17:53 ` [PATCH 03/11] coresight: etm4x: splitting struct etmv4_drvdata Mathieu Poirier
2016-04-05 17:53 ` [PATCH 04/11] coresight: etm4x: splitting etmv4 default configuration Mathieu Poirier
2016-04-05 17:53 ` [PATCH 05/11] coresight: etm4x: unlocking tracers in default arch init Mathieu Poirier
2016-04-05 17:53 ` [PATCH 06/11] coresight: etm4x: moving etm_drvdata::enable to atomic field Mathieu Poirier
2016-04-05 17:53 ` [PATCH 07/11] coresight: etm4x: implementing user/kernel mode tracing Mathieu Poirier
2016-04-05 17:53 ` [PATCH 08/11] coresight: etm4x: implementing the perf PMU API Mathieu Poirier
2016-04-05 17:53 ` [PATCH 09/11] coresight: moving coresight_simple_func() to header file Mathieu Poirier
2016-04-05 17:53 ` [PATCH 10/11] coresight: etb10: splitting sysFS "status" entry Mathieu Poirier
2016-04-05 17:53 ` [PATCH 11/11] coresight: removing gratuitous boot time log messages Mathieu Poirier
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=1459878832-15219-3-git-send-email-mathieu.poirier@linaro.org \
--to=mathieu.poirier@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).