Lines Matching full:coresight
2 Coresight - HW Assisted Tracing on ARM
11 Coresight is an umbrella of technologies allowing for the debugging of ARM
24 flows through the coresight system (via ATB bus) using links that are connecting
25 the emanating source to a sink(s). Sinks serve as endpoints to the coresight
28 host without fear of filling up the onboard coresight memory buffer.
30 At typical coresight system would look like this::
85 a way to aggregate and distribute signals between CoreSight components.
87 The coresight framework provides a central point to represent, configure and
88 manage coresight devices on a platform. This first implementation centers on
133 See Documentation/devicetree/bindings/arm/coresight.txt for details.
142 The coresight framework provides a central point to represent, configure and
143 manage coresight devices on a platform. Any coresight compliant device can
154 show up under /sys/bus/coresight/devices, as showns here for a TC2 platform::
156 root:~# ls /sys/bus/coresight/devices/
203 The devices that appear on the "coresight" bus were named the same as their
209 root:~# ls /sys/bus/coresight/devices/
235 root:~# ls /sys/bus/coresight/devices/
247 Each CoreSight component has a ``connections`` directory which will contain
248 links to other CoreSight components. This allows the user to explore the trace
257 linaro-developer:~# ls - l /sys/bus/coresight/devices/etm0/connections
264 linaro-developer:~# ls -l /sys/bus/coresight/devices/funnel2/connections
274 linaro-developer:~# ls -l /sys/bus/coresight/devices/funnel0/connections
283 linaro-developer:~# ls -l /sys/bus/coresight/devices/tmc_etf0/connections
291 linaro-developer:~# ls -l /sys/bus/coresight/devices/funnel4/connections
299 linaro-developer:~# ls -l /sys/bus/coresight/devices/replicator0/connections
307 linaro-developer:~# ls -l /sys/bus/coresight/devices/tmc_etr0/connections
318 via the CTM. See (Documentation/trace/coresight/coresight-ect.rst)
322 linaro-developer:~# ls -l /sys/bus/coresight/devices/cti_sys0/connections
333 There are two ways to use the Coresight framework:
336 2. interacting directly with the Coresight devices using the sysFS interface.
339 requires a deep understanding of the Coresight HW. The following sections
344 Before trace collection can start, a coresight sink needs to be identified.
349 root:/sys/bus/coresight/devices# ls
352 root:/sys/bus/coresight/devices# ls 20010000.etb
354 root:/sys/bus/coresight/devices# echo 1 > 20010000.etb/enable_sink
355 root:/sys/bus/coresight/devices# cat 20010000.etb/enable_sink
357 root:/sys/bus/coresight/devices#
364 root:/sys/bus/coresight/devices# echo 1 > 2201c000.ptm/enable_source
365 root:/sys/bus/coresight/devices# cat 2201c000.ptm/enable_source
367 root:/sys/bus/coresight/devices# cat 20010000.etb/status
376 root:/sys/bus/coresight/devices#
380 root:/sys/bus/coresight/devices# echo 0 > 2201c000.ptm/enable_source
381 root:/sys/bus/coresight/devices#
385 root:/sys/bus/coresight/devices# dd if=/dev/20010000.etb \
390 root:/sys/bus/coresight/devices#
396 wealth of possibilities that coresight provides.
451 Coresight tracers are represented using the Perf framework's Performance
454 scheduled. When configured in a system, Coresight PMUs will be listed when
468 A Coresight PMU works the same way as any other PMU, i.e the name of the PMU is
470 Coresight system will typically have more than one sink, the name of the sink to
478 On older kernels, this may need to be found from the list of coresight devices,
479 available under ($SYSFS)/bus/coresight/devices/::
481 root:~# ls /sys/bus/coresight/devices/
494 More information on the above and other example on how to use Coresight with
589 As with any other CoreSight component, specifics about the STM tracer can be
592 root@genericarmv8:~# ls /sys/bus/coresight/devices/stm0
600 root@genericarmv8:~# echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink
601 root@genericarmv8:~# echo 1 > /sys/bus/coresight/devices/stm0/enable_source
621 (Documentation/trace/coresight/coresight-ect.rst) [#fourth]_.
623 CoreSight System Configuration
626 CoreSight components can be complex devices with many programming options.
630 A CoreSight System Configuration manager is provided to allow these complex programming
634 (Documentation/trace/coresight/coresight-config.rst) [#fifth]_.
637 .. [#first] Documentation/ABI/testing/sysfs-bus-coresight-devices-stm
643 .. [#fourth] Documentation/trace/coresight/coresight-ect.rst
645 .. [#fifth] Documentation/trace/coresight/coresight-config.rst