This is a great tool to have profiling data for "-fomit-frame-pointer" compiled code! Question: How hard is it to add ARM architectures?
We would have to modify the BPF code to handle saved return addresses in arm64, which as far as I am aware are not defined by the ABI, so they might be at any offset from the previous frame's stack pointer (what DWARF calls CFA).
There's (at least) these other things that we might want to look into, such as:
- split stacks
- pointer authentication
- unwind tables stored in a different ELF section