diff options
author | Josh Stone <jistone@redhat.com> | 2009-09-09 15:45:28 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-09-10 13:20:24 -0700 |
commit | 9aa8ffcea9980d24cc9c9f13d9dd51e46e6283bf (patch) | |
tree | a82b5fbeae54d67d9bc047bc0591c34f34c4205e /util.h | |
parent | eaec8e2b4cf10fc293a0cb2524692ae25a810ec9 (diff) | |
download | systemtap-steved-9aa8ffcea9980d24cc9c9f13d9dd51e46e6283bf.tar.gz systemtap-steved-9aa8ffcea9980d24cc9c9f13d9dd51e46e6283bf.tar.xz systemtap-steved-9aa8ffcea9980d24cc9c9f13d9dd51e46e6283bf.zip |
PR10594: Provide a cached dwarf_getscopes_die
This avoids repeated DIE traversal by caching all parents on the first
call, so future calls are just a simple walk up parent links.
* dwflpp.cxx (dwflpp::getscopes_die): New cached function that mimics
libdw's dwarf_getscopes_die using cached parent links.
(dwflpp::cache_die_parents): New function to build the parent cache.
(dwflpp::~dwflpp): Clean up the parent caches.
(dwflpp::iterate_over_labels): Use the cached getscopes_die.
(dwflpp::find_variable_and_frame_base): Ditto.
* tapsets.cxx (dwarf_derived_probe::saveargs): Ditto.
(uprobe_derived_probe::saveargs): Ditto.
(dwarf_var_expanding_visitor::visit_target_symbol_context): Ditto.
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions