Opened 5 years ago
Last modified 5 years ago
#15592 new enhancement
Utilize -msave-args where possible to print kernel arguments on x86_64
Reported by: | waddlesplash | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Build System | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Clang now supports -msave-args, which generates code that pushes arguments onto the stack in addition to passing them in registers on x86_64, to make stack traces easier.
There is a patch for GCC to do the same, I don't know if it has been upstreamed: https://marc.info/?l=openbsd-cvs&m=149325133003425&w=2
Note:
See TracTickets
for help on using tickets.
There's a performance impact to this, so it is to be enabled only when KDEBUG >= 2 I suppose?