intel/libipt

macOS

Closed this issue · 4 comments

Hi, sir, Is there any way to make the code compiled on macOS?

It should build and run on macOS. I have not tested the latest macOS version, though.

It seems that a lot of libraries included in the project are linux-customed, such as linux/perf_event.

So is there an alternative to macOS?

Linux offers PT to user-space via the perf_event subsystem. There is code in libipt to correlate sideband and trace where both have been recorded via perf_event and there is documentation on how to do that.

The implementation allows other sideband formats to be added. As far as I know, neither Windows nor macOS provide PT to user-space so there is no explicit support for that.

The code should build and run on Windows and macOS so you could decode trace on those systems. If you recorded on Linux, for example, you should be able to decode the trace and correlate it to perf_event sideband. You also should be able to add a decoder for your own sideband format if you recorded via some custom driver.

Got it. Thx a lot!