Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1241599 > unrolled thread

[PATCH 0/6] coresight: next v4.3-rc4

Started byMathieu Poirier <mathieu.poirier@linaro.org>
First post2015-10-07 17:30 +0200
Last post2015-10-07 19:00 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/6] coresight: next v4.3-rc4  Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-07 17:30 +0200
    [PATCH 4/6] coresight: etm3x: adding cpu affinity to sysFS interface Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-07 17:30 +0200
      Re: [PATCH 4/6] coresight: etm3x: adding cpu affinity to sysFS  interface Greg KH <gregkh@linuxfoundation.org> - 2015-10-07 19:00 +0200

#1241599 — [PATCH 0/6] coresight: next v4.3-rc4

FromMathieu Poirier <mathieu.poirier@linaro.org>
Date2015-10-07 17:30 +0200
Subject[PATCH 0/6] coresight: next v4.3-rc4
Message-ID<qgYPf-kO-3@gated-at.bofh.it>
Good morning,

Please consider the following patches for merging in the 4.4 cycle.

Thanks,
Mathieu

Chunyan Zhang (1):
  Coresight: ETMv4: Prevent TRCRSCTLR0&1 from being accessed

Mathieu Poirier (5):
  coresight: fixing typographical error
  coresight: adding comments to remove ambiguity
  coresight: etm3x: adding cpu affinity to sysFS interface
  coresight: etm3x: breaking down sysFS status interface
  coresight: etm3x: making error message unambiguous

 .../ABI/testing/sysfs-bus-coresight-devices-etm3x  |  77 +++++++++++++--
 drivers/hwtracing/coresight/coresight-etm3x.c      | 107 ++++++++++++---------
 drivers/hwtracing/coresight/coresight-etm4x.c      |  22 +++--
 drivers/hwtracing/coresight/coresight.c            |   5 +
 include/linux/coresight.h                          |   2 +-
 5 files changed, 154 insertions(+), 59 deletions(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1241600 — [PATCH 4/6] coresight: etm3x: adding cpu affinity to sysFS interface

FromMathieu Poirier <mathieu.poirier@linaro.org>
Date2015-10-07 17:30 +0200
Subject[PATCH 4/6] coresight: etm3x: adding cpu affinity to sysFS interface
Message-ID<qgYPh-kO-51@gated-at.bofh.it>
In reply to#1241599
Without access to the device tree, it is impossible to know
what CPU a tracer is affined to.  As such adding a new sysFS
interface to convey the information.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 drivers/hwtracing/coresight/coresight-etm3x.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c
index bf2476ed9356..4797f56e7f13 100644
--- a/drivers/hwtracing/coresight/coresight-etm3x.c
+++ b/drivers/hwtracing/coresight/coresight-etm3x.c
@@ -1545,6 +1545,18 @@ static ssize_t status_show(struct device *dev,
 }
 static DEVICE_ATTR_RO(status);
 
+static ssize_t cpu_show(struct device *dev,
+			struct device_attribute *attr, char *buf)
+{
+	int val;
+	struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent);
+
+	val = drvdata->cpu;
+	return scnprintf(buf, PAGE_SIZE, "%d\n", val);
+
+}
+static DEVICE_ATTR_RO(cpu);
+
 static ssize_t traceid_show(struct device *dev,
 			    struct device_attribute *attr, char *buf)
 {
@@ -1621,6 +1633,7 @@ static struct attribute *coresight_etm_attrs[] = {
 	&dev_attr_timestamp_event.attr,
 	&dev_attr_status.attr,
 	&dev_attr_traceid.attr,
+	&dev_attr_cpu.attr,
 	NULL,
 };
 ATTRIBUTE_GROUPS(coresight_etm);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1241686 — Re: [PATCH 4/6] coresight: etm3x: adding cpu affinity to sysFS interface

FromGreg KH <gregkh@linuxfoundation.org>
Date2015-10-07 19:00 +0200
SubjectRe: [PATCH 4/6] coresight: etm3x: adding cpu affinity to sysFS interface
Message-ID<qh0em-2gu-5@gated-at.bofh.it>
In reply to#1241600
On Wed, Oct 07, 2015 at 09:26:41AM -0600, Mathieu Poirier wrote:
> Without access to the device tree, it is impossible to know
> what CPU a tracer is affined to.  As such adding a new sysFS
> interface to convey the information.
> 
> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>


No documentation for this new attribute?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web