Compile-time stack validation
Compile-time stack validation
Posted Oct 6, 2015 18:50 UTC (Tue) by nix (subscriber, #2304)In reply to: Compile-time stack validation by skissane
Parent article: Compile-time stack validation
The right approach is probably to deduplicate the DWARF at compile time, write it out in a much more compact form suitable for the stacktracer, and link it into the kernel, perhaps compressed. This is what DTrace does for kernel type resolution (though obviously it is doing this to a different bit of the DWARF, the type info, which needs more deduplication but doesn't need any kernel runtime support at all, since the userspace tool does all the necessary processing: I don't think this is possible for stack backtraces, as I note above).