summaryrefslogtreecommitdiffstats
path: root/runtime/sym.h
Commit message (Collapse)AuthorAgeFilesLines
* Keep track of relocation section sizes.Mark Wielaard2009-04-141-0/+1
| | | | | | | | * runtime/sym.h (_stp_section): Add size field. * translate.cxx (dump_unwindsyms): Get start of module address space, turn seclist into vector of secname, size pairs, track relocation section size, or add module address range if no sections, output size in _stp_section list.
* Get the canonical path of the main file for comparison at runtime.Mark Wielaard2009-03-171-0/+1
| | | | | | | | | When given directly by the user through -d or in case of the kernel name and path might differ. path should be used for matching. * runtime/sym.h (_stp_module): Add path field. * runtime/task_finder.c (__stp_tf_vm_cb): Use module path to compare vm_path. * translate.cxx (dump_unwindsyms): Output canonical path.
* Use 'static' as much as possibleJosh Stone2009-01-281-3/+3
| | | | | | | | | | This change just inserts 'static' on runtime, tapset, and generated C functions and globals, so the compiler can do a better job of optimizing. My tests with small scripts show ~10% reduction in compile time and ~20% reduction in module size. Larger scripts may show less benefit, but I expect purely positive results.
* PR4886: weaken build-id failure semanticsFrank Ch. Eigler2008-10-071-6/+1
|
* PR4886: check build-id if able.Wenji Huang2008-10-061-0/+10
| | | | This provides sanity check of debuginfo file based on build-id. Many cases are considered, whether build-id exists in debuginfo file or not, whether module is loaded or not, whether build-id exists in runtime kernel/module. It will do work when LD >= 2.18 and kernel >=2.6.23, otherwise no check.
* Rename _stp_module module_base output to dwarf_module_base and document.Mark Wielaard2008-09-101-2/+5
|
* Record module base and use it for adjusting start locations in dwarf unwinder.Mark Wielaard2008-09-101-0/+2
|
* support multiple-relocatable-section modules such as hypothetical ↵Frank Ch. Eigler2008-07-171-16/+14
| | | | -ffunction-sections .ko's
* emit all symbol tables at compile time; don't do any module munging; new ↵Frank Ch. Eigler2008-07-041-43/+12
| | | | unwinder still disabled
* kretprobe trampoline fixesMartin Hunt2008-03-281-0/+1
| | | | | Recognize when a kretprobe trampoline was hit and continue with inexact stack dump. Also some testsuite changes.
* rebased unwind_branch on top of current masterFrank Ch. Eigler2008-03-251-10/+14
|
* 2008-02-27 Martin Hunt <hunt@redhat.com>hunt2008-02-271-32/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | * sym.h (_stp_module): Add text_size, lock, and unwind data pointer. * sym.c (_stp_find_module_by_addr): New function. (_stp_kallsyms_lookup): Call _stp_find_module_by_addr(). (_stp_get_unwind_info): New. * runtime.h: Move debug macros to debug.h. Include it. * debug.h: New file. * map.c: Update debug calls. * map-gen.c: Update debug calls. * pmap-gen.c: Update debug calls. * mempool.c: New file. * symbols.c: Use rwlocks. Use new dbug macros. Handle unwind info if present. * transport.c: Include mempool.c. Update dbug and kbug calls to new macros. * transport_msgs.h (_stp_command_name): Add struct containing message names for debugging. * control.c, procfs.c: Use new dbug macros. Use new mempool functions.
* 2007-07-09 Martin Hunt <hunt@redhat.com>hunt2007-07-091-1/+1
| | | | * sym.h (STP_MAX_MODULES): Raise limit to 256.
* 2007-03-21 Martin Hunt <hunt@redhat.com>hunt2007-03-211-0/+1
| | | | | | | | | | | * sym.h: Declare _stp_module_relocate. * sym.c (_stp_module_relocate): Add comments, reformat, add a way for "last" cached values to be cleared when modules are removed. (_stp_symbol_print): Simplify and remove static buffer. (_stp_symbol_snprint): Ditto. * symbols.c (_stp_del_module): Add a call to _stp_module_relocate to clear its cache.
* 2006-11-09 Martin Hunt <hunt@redhat.com>hunt2006-11-091-3/+3
| | | | * sym.h: Change int to int32_t.
* New dynamic module and symbol handling code.hunt2006-11-021-7/+46
|
* 2005-10-06 Frank Ch. Eigler <fche@elastic.org>fche2005-10-061-0/+25
PR 1332. * translate.cxx (emit_symbol_data): New function to transcribe a processed address->symbol lookup table, based upon /proc/kallsyms. 2005-10-06 Frank Ch. Eigler <fche@elastic.org> PR 1332. * sym.h: New file to declare explicit symbol table struct. * runtime.h (_stp_kallsyms_lookup_tabled): Use it if available. * sym.c (_stp_symbol_sprint): HAS_LOOKUP mooted. 2005-10-06 Frank Ch. Eigler <fche@elastic.org> PR 1132. * systemtap.samples/symbols.*: New test.