3 ms·
One thing I was curious about but couldn’t work out from reading online is whether hardware-assisted tracing is supported. (see https://www.linaro.org/blog/cor
by dan-robertson 3y ago
One thing I was curious about but couldn’t work out from reading online is whether hardware-assisted tracing is supported. (see https://www.linaro.org/blog/coresight-perf-and-the-opencsd-library/ https://www.linaro.org/blog/coresight-perf-and-the-opencsd-l... or https://www.youtube.com/watch?v=Gm2ZXIB18PQ https://www.youtube.com/watch?v=Gm2ZXIB18PQ for descriptions. This uses the ARM CoreSight/Embedded Trace Macrocells feature. The Intel equivalent is something called Intel Processor Trace. MacOS doesn’t seem to expose this tracing functionality in the way that perf on linux may, and the publically released Darwin source code seems to barely mention it). Has anyone here installed Linux on an M1/2 computer and checked if the hwtracing support works?
- zamadatix 3y agoIf you know of a quick and easy way to test I'd be glad to report the result. I have an M2 running the Fedora version of Asahi.
- dan-robertson 3y agoI realise now that I’m not sure the hwtracing stuff was upstreamed. But you could try poking around with some of the ls commands from the linked blog post above. If you’re feeling ambitious I guess you could try recreating the demo from the video (the blog post seems to be lacking an easy to copy perf record command).