]> sourceware.org Git - systemtap.git/commit
library probes: don't add libraries to visited_modules
authorJonathan Lebon <jlebon@redhat.com>
Tue, 6 May 2014 20:39:04 +0000 (16:39 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Tue, 27 May 2014 14:14:02 +0000 (10:14 -0400)
commit2a52b3e446dce0bc8c5a06a40f8b52232b1e99b1
tree124bdcc32ea7774b832a4737dc91364edf9ee13d
parent590c625cf34c95e50ea69f776de1a7bad777741d
library probes: don't add libraries to visited_modules

The dwarf_query's visited_modules set is used to keep track of which
modules are visited for suggestions. It works by emptying out the visited
modules into the dwarf_builder's modules_seen after we're done iterating
through the modules. By the end, modules_seen contains the full list of
modules to suggest from.

Since .library(glob) probes resolve to multiple probes for each matching
library, dwarf_builder's modules_seen will already pick each of them up
from the individually created dwarf_query objects.

So in the end, the modules_seen from which we make suggestions will
already contain them.
tapsets.cxx
This page took 0.288943 seconds and 5 git commands to generate.