summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-06-16 12:18:21 -0500
committerDavid Smith <dsmith@redhat.com>2009-06-16 12:18:21 -0500
commit96b190d404d24eb7349adae6e2d57eb5c9f6c26a (patch)
treee5c21100e11479dc1706b1942e1a39fd646d8615 /tapsets.cxx
parent657ff134aef7f7fb8e6d7ff687c46d1819f60550 (diff)
parentde7c5583f657bb42980f66d3b88572241b676f76 (diff)
downloadsystemtap-steved-96b190d404d24eb7349adae6e2d57eb5c9f6c26a.tar.gz
systemtap-steved-96b190d404d24eb7349adae6e2d57eb5c9f6c26a.tar.xz
systemtap-steved-96b190d404d24eb7349adae6e2d57eb5c9f6c26a.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 5e9deb9b..843b6017 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -3482,9 +3482,9 @@ dwarf_builder::build(systemtap_session & sess,
do
{
set<string>::iterator pb;
- pb = probes_handled.find(probe_table.mark_name);
+ pb = probes_handled.find(probe_table.probe_name);
if (pb == probes_handled.end())
- probes_handled.insert (probe_table.mark_name);
+ probes_handled.insert (probe_table.probe_name);
else
return;
@@ -3504,6 +3504,13 @@ dwarf_builder::build(systemtap_session & sess,
new_base->body = svv.require (new_base->body);
probe_table.convert_location(new_base, new_location);
derive_probes(sess, new_base, finished_results);
+ if (sess.listing_mode)
+ {
+ finished_results.back()->locations[0]->components[0]->functor = TOK_FUNCTION;
+ finished_results.back()->locations[0]->components[0]->arg = new literal_string (module_name);
+ finished_results.back()->locations[0]->components[1]->functor = TOK_MARK;
+ finished_results.back()->locations[0]->components[1]->arg = new literal_string (probe_table.probe_name.c_str());
+ }
}
while (probe_table.get_next_probe());
return;