summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-03-15 15:29:01 +0100
committerMark Wielaard <mjw@redhat.com>2009-03-15 19:57:50 +0100
commitbb64f40b58a64a9ae065dba5058463ac604c3896 (patch)
treec92161be2223c3c2a41647c57e20ab92c9047c5b /tapsets.cxx
parent20f933f0749322bc9787cc1972698a7aeffb08df (diff)
downloadsystemtap-steved-bb64f40b58a64a9ae065dba5058463ac604c3896.tar.gz
systemtap-steved-bb64f40b58a64a9ae065dba5058463ac604c3896.tar.xz
systemtap-steved-bb64f40b58a64a9ae065dba5058463ac604c3896.zip
Move vma module tracking from pr6866 branch to master.
* tapsets.cxx (utrace_derived_probe_group::emit_module_decls): Always emit vm callback probe for __stp_tf_vm_cb. * runtime/task_finder.c (__stp_tf_vm_cb): Always expose, move _stp_dbug statements under ifdef DEBUG_TASK_FINDER_VMA. Find and record corresponding module when vm_path not NULL. * runtime/task_finder_vma.c (struct __stp_tf_vma_entry): Add _stp_module. (stap_add_vma_map_info): Add _stp_module argument and assign. (__stp_tf_get_vma_entry_addr): New static function to get the __stp_tf_vma_entry given an address.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index b02e2cce..6efcb3af 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -7172,10 +7172,8 @@ utrace_derived_probe_group::emit_module_decls (systemtap_session& s)
// Emit a "fake" probe decl that is really a hook for to get
// our vm_callback called.
string path = it->first;
- s.op->newline() << "#ifdef DEBUG_TASK_FINDER_VMA";
emit_vm_callback_probe_decl (s, true, path, (int64_t)0,
"__stp_tf_vm_cb");
- s.op->newline() << "#endif";
for (unsigned i = 0; i < it->second.size(); i++)
{
@@ -7193,10 +7191,8 @@ utrace_derived_probe_group::emit_module_decls (systemtap_session& s)
{
// Emit a "fake" probe decl that is really a hook for to get
// our vm_callback called.
- s.op->newline() << "#ifdef DEBUG_TASK_FINDER_VMA";
emit_vm_callback_probe_decl (s, false, "", it->first,
"__stp_tf_vm_cb");
- s.op->newline() << "#endif";
for (unsigned i = 0; i < it->second.size(); i++)
{