Skip to content

How could magic trace be made to work on...

Tudor Brindus edited this page Mar 30, 2022 · 6 revisions

AMD

AMD chips don't have an equivalent to Intel PT. We'd love to add support as soon as they make one.

ARM

ARM has CoreSight which looks a lot like it could support something like magic-trace, but we don't have any in-house expertise with it. If you know how this could work, please let us know!

Windows

Windows doesn't have perf, and magic-trace leans pretty heavily on perf to interpret Intel PT output. It would be a very large project to interact directly with Intel PT across both Linux and Windows. Just one of the files in perf that's responsible for this is ~4000 lines of code.

One thing that might help people with Windows applications is using Proton to run their Windows application on Linux. Standard perf tools should just work on that, and therefore so should magic-trace.

OSX

This has the same problem as Windows support, except you don't have the option of using Proton. I know this isn't a great answer, but try porting your application (or at least the part of your application that you want to test) to Linux.

VMs

KVM 5.0+ has support. You'll probably need to copy whatever changes they made into the hypervisor you want to use.

We'd really love for magic-trace to work in public clouds. But it's on the owners of those clouds to enable Intel PT before it can. There's nothing we can do about it until they do; talk to your sales rep!