summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
authorfche <fche>2007-03-21 01:58:10 +0000
committerfche <fche>2007-03-21 01:58:10 +0000
commit840489846051292305b56243feba9807ba06039e (patch)
treedff5fc8d30d0060c8bd734e4ba3d1eb80b207d40 /session.h
parent6fa8d6e2a8378bfaee0e8e1af8cc707b4e14aab3 (diff)
downloadsystemtap-steved-840489846051292305b56243feba9807ba06039e.tar.gz
systemtap-steved-840489846051292305b56243feba9807ba06039e.tar.xz
systemtap-steved-840489846051292305b56243feba9807ba06039e.zip
2007-03-20 Frank Ch. Eigler <fche@elastic.org>
PR 4224. * tapsets.cxx (add_probe_point): Make kernel implicitly relocated relative to the _stext symbol. (dwarf_derived_probe ctor, emit_module_decls): Cooperate. (lookup_symbol_address): New function. (dwarf_builder::build): Call it thrice. (in_kprobes_function): Simplify. * session.h (systemtap_session): Rename cached symbol addresses. * translate.cxx, elaborate.cxx: Corresponding tweaks. 2007-03-20 Frank Ch. Eigler <fche@elastic.org> PR 4224. * sym.c (_stp_module_relocate): Support kernel relocations. 2007-03-20 Frank Ch. Eigler <fche@elastic.org> * symbols.c (_stp_do_symbols): Add cautionary blurb for important setup of _stp_modules[0]->text.
Diffstat (limited to 'session.h')
-rw-r--r--session.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/session.h b/session.h
index 956d4394..7798b32f 100644
--- a/session.h
+++ b/session.h
@@ -93,7 +93,7 @@ struct systemtap_session
bool merge;
int buffer_size;
unsigned perfmon;
- bool symtab;
+ bool symtab; /* true: emit symbol table at translation time; false: let staprun do it. */
bool prologue_searching;
// Cache data
@@ -136,10 +136,11 @@ struct systemtap_session
translator_output* op;
unparser* up;
- // kprobes_text data
- bool kprobes_text_initialized;
- Dwarf_Addr kprobes_text_start;
- Dwarf_Addr kprobes_text_end;
+ // some symbol addresses
+ // XXX: these belong elsewhere; perhaps the dwflpp instance
+ Dwarf_Addr sym_kprobes_text_start;
+ Dwarf_Addr sym_kprobes_text_end;
+ Dwarf_Addr sym_stext;
std::set<std::string> seen_errors;
unsigned num_errors () { return seen_errors.size(); }