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 (:doc:`coresight-ect`) [#fourth]_ for further details.
321 linaro-developer:~# ls -l /sys/bus/coresight/devices/cti_sys0/connections
332 There are two ways to use the Coresight framework:
335 2. interacting directly with the Coresight devices using the sysFS interface.
338 requires a deep understanding of the Coresight HW. The following sections
343 Before trace collection can start, a coresight sink needs to be identified.
348 root:/sys/bus/coresight/devices# ls
351 root:/sys/bus/coresight/devices# ls 20010000.etb
353 root:/sys/bus/coresight/devices# echo 1 > 20010000.etb/enable_sink
354 root:/sys/bus/coresight/devices# cat 20010000.etb/enable_sink
356 root:/sys/bus/coresight/devices#
363 root:/sys/bus/coresight/devices# echo 1 > 2201c000.ptm/enable_source
364 root:/sys/bus/coresight/devices# cat 2201c000.ptm/enable_source
366 root:/sys/bus/coresight/devices# cat 20010000.etb/status
375 root:/sys/bus/coresight/devices#
379 root:/sys/bus/coresight/devices# echo 0 > 2201c000.ptm/enable_source
380 root:/sys/bus/coresight/devices#
384 root:/sys/bus/coresight/devices# dd if=/dev/20010000.etb \
389 root:/sys/bus/coresight/devices#
395 wealth of possibilities that coresight provides.
450 Coresight tracers are represented using the Perf framework's Performance
453 scheduled. When configured in a system, Coresight PMUs will be listed when
467 A Coresight PMU works the same way as any other PMU, i.e the name of the PMU is
469 Coresight system will typically have more than one sink, the name of the sink to
477 On older kernels, this may need to be found from the list of coresight devices,
478 available under ($SYSFS)/bus/coresight/devices/::
480 root:~# ls /sys/bus/coresight/devices/
493 More information on the above and other example on how to use Coresight with
588 As with any other CoreSight component, specifics about the STM tracer can be
591 root@genericarmv8:~# ls /sys/bus/coresight/devices/stm0
599 root@genericarmv8:~# echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink
600 root@genericarmv8:~# echo 1 > /sys/bus/coresight/devices/stm0/enable_source
619 (:doc:`coresight-ect`) [#fourth]_.
622 .. [#first] Documentation/ABI/testing/sysfs-bus-coresight-devices-stm
628 .. [#fourth] Documentation/trace/coresight/coresight-ect.rst