News for hackers. Stuff that matters.
Re:Dwarf-Based Stack Walking Using eBPF by simscitizen on Tuesday November 29, 2022 @03:45PM (#33793044)
Frame pointers are enabled by default on macOS and iOS and I can't understand why they aren't enabled by default elsewhere. It just makes it so much easier to debug and profile things.

See for instance Apple's ARM64 calling convention: https://developer.apple.com/documentation/xcode/writing-arm6...

"The frame pointer register (x29) must always address a valid frame record. Some functions — such as leaf functions or tail calls — may opt not to create an entry in this list. As a result, stack traces are always meaningful, even without debug information."

Re:Dwarf-Based Stack Walking Using eBPF by saagarjha on Wednesday November 30, 2022 @04:50AM (#33798789)
Apple relies on this heavily when doing systemwide performance profiling. It's good practice!