summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-04-08 13:14:24 -0500
committerDavid Smith <dsmith@redhat.com>2009-04-08 13:14:24 -0500
commit117bcbe45ff448c0913007d31cfa2be78caeb4ba (patch)
tree04146d5242aa844a673cb47b3a5bc9dcd7ca1c69 /runtime/sym.c
parentf149549158a3d6dcb1118323d1dbcec27c4b3bbe (diff)
downloadsystemtap-steved-117bcbe45ff448c0913007d31cfa2be78caeb4ba.tar.gz
systemtap-steved-117bcbe45ff448c0913007d31cfa2be78caeb4ba.tar.xz
systemtap-steved-117bcbe45ff448c0913007d31cfa2be78caeb4ba.zip
Added '#ifdef STP_NEED_VMA_TRACKER' around code that needs it.
2009-04-08 David Smith <dsmith@redhat.com> * runtime/sym.c: Added '#ifdef STP_NEED_VMA_TRACKER' around code that needs it.
Diffstat (limited to 'runtime/sym.c')
-rw-r--r--runtime/sym.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/sym.c b/runtime/sym.c
index 835e1b46..7b918428 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -30,6 +30,7 @@ static void _stp_sym_init(void)
}
}
+#ifdef STP_NEED_VMA_TRACKER
/* Callback that needs to be registered (in tapsets.cxx for
emit_module_init) for every user task path or pid for which we
might need symbols or unwind info. */
@@ -76,6 +77,7 @@ static int _stp_tf_munmap_cb(struct stap_task_finder_target *tgt,
stap_remove_vma_map_info(tsk->group_leader, addr, addr + length, 0);
return 0;
}
+#endif
/* XXX: this needs to be address-space-specific. */
static unsigned long _stp_module_relocate(const char *module, const char *section, unsigned long offset)
@@ -128,7 +130,6 @@ static unsigned long _stp_module_relocate(const char *module, const char *sectio
return 0;
}
-
/* Return module owner and, if sec != NULL, fills in closest section
of the address if found, return NULL otherwise.
XXX: needs to be address-space-specific. */