Skip to content

Commit 01f96b8

Browse files
Mao JinlongSuzuki K Poulose
authored andcommitted
coresight: Add label sysfs node support
For some coresight components like CTI and TPDM, there could be numerous of them. From the node name, we can only get the type and register address of the component. We can't identify the HW or the system the component belongs to. Add label sysfs node support for showing the intuitive name of the device. Signed-off-by: Mao Jinlong <[email protected]> Reviewed-by: Mike Leach <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1ad38ef commit 01f96b8

11 files changed

+129
-2
lines changed

Documentation/ABI/testing/sysfs-bus-coresight-devices-cti

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,9 @@ Date: March 2020
239239
KernelVersion: 5.7
240240
Contact: Mike Leach or Mathieu Poirier
241241
Description: (Write) Clear all channel / trigger programming.
242+
243+
What: /sys/bus/coresight/devices/<cti-name>/label
244+
Date: Aug 2025
245+
KernelVersion 6.18
246+
Contact: Mao Jinlong <[email protected]>
247+
Description: (Read) Show hardware context information of device.

Documentation/ABI/testing/sysfs-bus-coresight-devices-dummy-source

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ KernelVersion: 6.14
1313
Contact: Mao Jinlong <[email protected]>
1414
Description: (R) Show the trace ID that will appear in the trace stream
1515
coming from this trace entity.
16+
17+
What: /sys/bus/coresight/devices/dummy_source<N>/label
18+
Date: Aug 2025
19+
KernelVersion 6.18
20+
Contact: Mao Jinlong <[email protected]>
21+
Description: (Read) Show hardware context information of device.

Documentation/ABI/testing/sysfs-bus-coresight-devices-etb10

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Description: (RW) Disables write access to the Trace RAM by stopping the
1919
into the Trace RAM following the trigger event is equal to the
2020
value stored in this register+1 (from ARM ETB-TRM).
2121

22+
What: /sys/bus/coresight/devices/<memory_map>.etb/label
23+
Date: Aug 2025
24+
KernelVersion 6.18
25+
Contact: Mao Jinlong <[email protected]>
26+
Description: (Read) Show hardware context information of device.
27+
2228
What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/rdp
2329
Date: March 2016
2430
KernelVersion: 4.7

Documentation/ABI/testing/sysfs-bus-coresight-devices-etm3x

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ KernelVersion: 4.4
251251
Contact: Mathieu Poirier <[email protected]>
252252
Description: (RO) Holds the cpu number this tracer is affined to.
253253

254+
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/label
255+
Date: Aug 2025
256+
KernelVersion 6.18
257+
Contact: Mao Jinlong <[email protected]>
258+
Description: (Read) Show hardware context information of device.
259+
254260
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmccr
255261
Date: September 2015
256262
KernelVersion: 4.4

Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,12 @@ Contact: Mathieu Poirier <[email protected]>
329329
Description: (RW) Access the selected single show PE comparator control
330330
register.
331331

332+
What: /sys/bus/coresight/devices/etm<N>/label
333+
Date: Aug 2025
334+
KernelVersion 6.18
335+
Contact: Mao Jinlong <[email protected]>
336+
Description: (Read) Show hardware context information of device.
337+
332338
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcoslsr
333339
Date: April 2015
334340
KernelVersion: 4.01

Documentation/ABI/testing/sysfs-bus-coresight-devices-funnel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ Date: November 2014
1010
KernelVersion: 3.19
1111
Contact: Mathieu Poirier <[email protected]>
1212
Description: (RW) Defines input port priority order.
13+
14+
What: /sys/bus/coresight/devices/<memory_map>.funnel/label
15+
Date: Aug 2025
16+
KernelVersion 6.18
17+
Contact: Mao Jinlong <[email protected]>
18+
Description: (Read) Show hardware context information of device.

Documentation/ABI/testing/sysfs-bus-coresight-devices-stm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ KernelVersion: 4.7
5151
Contact: Mathieu Poirier <[email protected]>
5252
Description: (RW) Holds the trace ID that will appear in the trace stream
5353
coming from this trace entity.
54+
55+
What: /sys/bus/coresight/devices/<memory_map>.stm/label
56+
Date: Aug 2025
57+
KernelVersion 6.18
58+
Contact: Mao Jinlong <[email protected]>
59+
Description: (Read) Show hardware context information of device.

Documentation/ABI/testing/sysfs-bus-coresight-devices-tmc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,9 @@ Contact: Anshuman Khandual <[email protected]>
107107
Description: (RW) Current Coresight TMC-ETR buffer mode selected. But user could
108108
only provide a mode which is supported for a given ETR device. This
109109
file is available only for TMC ETR devices.
110+
111+
What: /sys/bus/coresight/devices/<memory_map>.tmc/label
112+
Date: Aug 2025
113+
KernelVersion 6.18
114+
Contact: Mao Jinlong <[email protected]>
115+
Description: (Read) Show hardware context information of device.

Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,3 +272,9 @@ KernelVersion 6.15
272272
Contact: Jinlong Mao (QUIC) <[email protected]>, Tao Zhang (QUIC) <[email protected]>
273273
Description:
274274
(RW) Set/Get the enablement of the individual lane.
275+
276+
What: /sys/bus/coresight/devices/<tpdm-name>/label
277+
Date: Aug 2025
278+
KernelVersion 6.18
279+
Contact: Mao Jinlong <[email protected]>
280+
Description: (Read) Show hardware context information of device.

Documentation/ABI/testing/sysfs-bus-coresight-devices-trbe

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ Contact: Anshuman Khandual <[email protected]>
1212
Description: (Read) Shows if TRBE updates in the memory are with access
1313
and dirty flag updates as well. This value is fetched from
1414
the TRBIDR register.
15+
16+
What: /sys/bus/coresight/devices/trbe<cpu>/label
17+
Date: Aug 2025
18+
KernelVersion 6.18
19+
Contact: Mao Jinlong <[email protected]>
20+
Description: (Read) Show hardware context information of device.

0 commit comments

Comments
 (0)