]> sourceware.org Git - systemtap.git/commit
PR10461: Probe identical functions only once
authorJosh Stone <jistone@redhat.com>
Wed, 12 Aug 2009 00:01:35 +0000 (17:01 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 12 Aug 2009 00:13:49 +0000 (17:13 -0700)
commit857bdfd1bec07003d3d92aaacf6ba578057324ef
tree370fb15a1865f9cba0c8129141d543d9093d3ef7
parent9922bd3d9ce58712cf570abefbafebaf3f407ffe
PR10461: Probe identical functions only once

In C++ especially, a function definition in a header may be compiled
into multiple CUs, but the linker will merge those into a single output
function.  We don't want to place multiple probes on the same function.

The dupe-detection from the alias code (commit 1c6b77e5) already tracks
identical functions within a CU, so I've just lifted this to instead
track function entrypcs at the module level.

* dwflpp.cxx (dwflpp::iterate_over_functions): Remove dupe checks.
* tapsets.cxx (dwarf_query): Add alias_dupes set to the query.
  (dwarf_query::handle_query_module): Reset the dupes for each module.
  (query_dwarf_func): Check that we only probe each entrypc once.
dwflpp.cxx
tapsets.cxx
This page took 0.028652 seconds and 5 git commands to generate.