Finding a profiler that works, damnit
Finding a profiler that works, damnit
Posted Mar 24, 2010 2:25 UTC (Wed) by chantecode (subscriber, #54535)In reply to: Finding a profiler that works, damnit by foom
Parent article: KVM, QEMU, and kernel project management
It doesn't look usable by perf though.
We often save the stacktraces from an NMI path (covers all hardware pmu events). So this operation must be as fast and simple as possible.
With such DWARF based thing, we'd need to find where is mapped this section for the current task, we also need to be lucky enough for this page to be available (we can't do much from NMI, it's a best effort trial), and it may be unlikely considering this DWARF section is mostly used for debugging. Then if we are lucky enough, we need to parse all these DWARF infos, and finally walk the stack based on these info, which is probably much slower than a fast frame pointer walking.
This seems to me really too complicated, too slow and unlikely to work most of the time.
