From 840489846051292305b56243feba9807ba06039e Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 21 Mar 2007 01:58:10 +0000 Subject: 2007-03-20 Frank Ch. Eigler 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 PR 4224. * sym.c (_stp_module_relocate): Support kernel relocations. 2007-03-20 Frank Ch. Eigler * symbols.c (_stp_do_symbols): Add cautionary blurb for important setup of _stp_modules[0]->text. --- session.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'session.h') 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 seen_errors; unsigned num_errors () { return seen_errors.size(); } -- cgit