diff options
author | Josh Stone <jistone@redhat.com> | 2009-09-03 12:00:10 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-09-03 12:00:10 -0700 |
commit | 789448a36f57e53cc6a1878f7637998b0f15652c (patch) | |
tree | 790e6f8631684a1c99ead9c79c8d009025cd0165 /dwflpp.h | |
parent | 7fdd3e2c61874abd631de5038d846dffb6f5bc5f (diff) | |
download | systemtap-steved-789448a36f57e53cc6a1878f7637998b0f15652c.tar.gz systemtap-steved-789448a36f57e53cc6a1878f7637998b0f15652c.tar.xz systemtap-steved-789448a36f57e53cc6a1878f7637998b0f15652c.zip |
Fetch the blacklist section only when needed
We only check blacklisting on kernel probes, so it's a waste to dig up
the section name otherwise.
* dwflpp.cxx (dwflpp::blacklisted_p): Lookup the section directly.
(relocate_address::relocate_address): Don't do blacklisting here.
* tapsets.cxx (dwarf_query::add_probe_point): Don't carry the blacklist
section directly anymore.
Diffstat (limited to 'dwflpp.h')
-rw-r--r-- | dwflpp.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -268,13 +268,10 @@ struct dwflpp const std::string& filename, int line, const std::string& module, - const std::string& section, Dwarf_Addr addr, bool has_return); - Dwarf_Addr relocate_address(Dwarf_Addr addr, - std::string& reloc_section, - std::string& blacklist_section); + Dwarf_Addr relocate_address(Dwarf_Addr addr, std::string& reloc_section); Dwarf_Addr literal_addr_to_sym_addr(Dwarf_Addr lit_addr); |