LinuxPerf.jl icon indicating copy to clipboard operation
LinuxPerf.jl copied to clipboard

Does this only support x86_64

Open Zentrik opened this issue 1 year ago • 1 comments

It looks to me that syscall numbers differ on different platforms, so this code is only going to work on x86_64 as https://github.com/torvalds/linux/blob/v4.17/arch/x86/entry/syscalls/syscall_32.tbl#L17 says perf_event_open is 336 on i686 https://github.com/JuliaPerf/LinuxPerf.jl/blob/b7653aa80ce8e53c101157b592b80c6d2100c87e/src/LinuxPerf.jl#L158-L168

If this package only supports x86_64 I think it makes sense to add to the readme.

Zentrik avatar May 08 '24 12:05 Zentrik

It should be easy enough to add the branches, but yes I think only x86_64 has ever been tested

vchuravy avatar May 08 '24 15:05 vchuravy