Jiri Slaby wrote:
But the storage increase is several orders of magnitude smaller than using DWARF data. Then we could use ORC. Which is a reason of NOT having framepointers in
On 18. 11. 24, 16:22, Neal Gompa wrote: the kernel, while being able to unwind.
ORC exists only for kernel, while this proposal involves enabling frame pointers for user space application, no? User space analogue of ORC is probably SFrame propsal (https://sourceware.org/binutils/wiki/sframe), but it's still "in the making" and needs proper integration into the kernel (and especially with BPF it will require even more work). All that is planned and there is interest in making this happen (myself included), but this is not a viable alternative for frame pointers as of right now and, probably, for at least next few years until Clang gets supports for SFrame, kernel supports lands, and BPF support exists *and* various BPF-based tools and profilers adopt a new asynchronous way of capturing stack traces (that's what's needed to be able to use SFrame from BPF side). So all in all, I don't think there is any realistic alternative to frame pointers now and for the foreseeable future.