diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-11-16 20:59:16 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-11-16 20:59:16 +0100 |
commit | 01a71905151a751fc81a5f58743f6915378be20a (patch) | |
tree | 46001c105439507da2ee5ae76d00d090e73613ac /runtime | |
parent | 1bc3d8e1a940e67d8e0e3f9a04cfc53d8bced85e (diff) | |
download | systemtap-steved-01a71905151a751fc81a5f58743f6915378be20a.tar.gz systemtap-steved-01a71905151a751fc81a5f58743f6915378be20a.tar.xz systemtap-steved-01a71905151a751fc81a5f58743f6915378be20a.zip |
Allow modules to trigger task_finder vma_tracker.
* runtime/sym.h: Define _stp_need_vma_tracker.
* translate.cxx (emit_symbol_data_done): Output _stp_need_vma_tracker value.
(c_unparser::emit_module_init): If STP_NEED_VMA_TRACKER isn't defined
check _stp_need_vma_tracker to call _stp_sym_init().
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/sym.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/sym.h b/runtime/sym.h index ca69345f..9f2bdfd0 100644 --- a/runtime/sym.h +++ b/runtime/sym.h @@ -66,6 +66,10 @@ static unsigned _stp_num_modules; /* load address, fixup by transport symbols _stp_do_relocation */ static unsigned long _stp_kretprobe_trampoline; +/* Indicates some modules requested the task finder to notify sym.c + _stp_sym_init () should track vma maps. */ +static char _stp_need_vma_tracker; + static unsigned long _stp_module_relocate (const char *module, const char *section, unsigned long offset); static struct _stp_module *_stp_get_unwind_info (unsigned long addr); |