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 /tapsets.cxx | |
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 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 15491d55..e0768868 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -965,12 +965,11 @@ dwarf_query::add_probe_point(const string& funcname, { string reloc_section; // base section for relocation purposes Dwarf_Addr reloc_addr; // relocated - string blacklist_section; // linking section for blacklist purposes const string& module = dw.module_name; // "kernel" or other assert (! has_absolute); // already handled in dwarf_builder::build() - reloc_addr = dw.relocate_address(addr, reloc_section, blacklist_section); + reloc_addr = dw.relocate_address(addr, reloc_section); if (sess.verbose > 1) { @@ -982,12 +981,11 @@ dwarf_query::add_probe_point(const string& funcname, else if (has_process) clog << " process=" << module; if (reloc_section != "") clog << " reloc=" << reloc_section; - if (blacklist_section != "") clog << " section=" << blacklist_section; clog << " pc=0x" << hex << addr << dec; } bool bad = dw.blacklisted_p (funcname, filename, line, module, - blacklist_section, addr, has_return); + addr, has_return); if (sess.verbose > 1) clog << endl; |