summaryrefslogtreecommitdiffstats
path: root/tapset/context-symbols.stp
Commit message (Collapse)AuthorAgeFilesLines
* Fixed PR 11425 by fixing probefunc() when used with kprobe.function.David Smith2010-03-231-1/+1
| | | | | * tapset/context-symbols.stp: Fixed probefunc() by looking for '"' as the end of the function name along with '@'.
* PR11015 Support shared library reloading (in different processes)Mark Wielaard2009-12-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/task_finder_vma.c (stap_remove_vma_map_info): Return negative status on failure. (stap_find_vma_map_info): Likewise. (stap_find_vma_map_info_user): New function. (stap_drop_vma_maps): New function. * runtime/sym.h (addr): Renamed to static_addr, to store addresses for sections which are always mapped at the same address. (_stp_module_relocate): Add extra struct task_struct *tsk argument. * runtime/sym.c (_stp_tf_exec_cb): New callback, calls stap_drop_vma_maps. (_stp_tf_mmap_cb): Don't store address in module.section, but call stap_add_vma_map_info() per tsk->group_leader for matched module. Don't register empty/null modules. (_stp_module_relocate): Take extra struct task_struct *tsk argument, cache last tsk used. Only use section->static_addr for none dynamic modules. Use stap_find_vma_map_info_user() to locate dynamic modules. (_stp_mod_sec_lookup): Add extra argument unsigned long *rel_addr to optionally store relative address when module/section found. (_stp_kallsyms_lookup): Use _stp_mod_sec_lookup to find relative address. (_stp_sym_init): Register _stp_tf_exec_cb in stap_task_finder_target. Add error check to see if task finder could be initialized. * dwflpp.cxx (emit_address): Pass NULL for kernel/modules and current for user tasks to _stp_module_relocate. * runtime/transport/symbols.c (_stp_do_relocation): Set new static_addr _stp_section field. * runtime/unwind.c (adjustStartLoc): Take new struct task_struct *tsk argument and pass to stap_find_vma_map_info_user and _stp_module_relocate to find adjusted addr. (_stp_search_unwind_hdr): Pass through struct task_struct *tsk. (unwind_frame): Likewise. * tapset/context-symbols.stp (probemod): Add NULL to _stp_mod_sec_lookup call to indicate we aren't interested in relative address. * tapsets.cxx (dwarf_derived_probe_group::emit_module_init): Pass NULL to _stp_module_relocate to indicate kernel/module address.
* tapset docs cleanupFrank Ch. Eigler2009-09-291-1/+1
| | | | | | | | | | | | | | Several problems: some invalid <command> etc. directives in the tapset embedded docs; some analysis about the non-generation of the pdf; some cleanup of the generated man pages. * configure.ac (BUILD_PDFREFDOCS): Correct condition typo, but still leave disabled. * doc/SystemTap_Tapset_Reference/Makefile.am (XMLTOMANPARMS): Add, to disable noise "AUTHORS" / "COPYRIGHT" sections. * tapset/*.stp: Removed several docbook-y markup that is not valid in kerneldoc.
* Spelling fixes in the tapsetsJosh Stone2009-09-161-3/+3
|
* Remove documentation weirdness FIXME in tapset print_stack().Mark Wielaard2009-04-211-2/+2
| | | | | | Weirdness was fixed in commit d4db5608. * tapset/context-symbols.stp (print_stack): Remove FIXME.
* Create usymname and usymdata variant that trigger STP_NEED_VMA_TRACKER.Mark Wielaard2009-04-071-2/+2
| | | | | | | | | * tapset/context-symbols.stp (syname, symdata): Pass NULL for kernel address. * tapset/ucontext-symbols.stp: New file defining usymname and usymdata. * testsuite/systemtap.context/usymbols.exp: Use usymname, remove STP_NEED_VMA_TRACKER hack. * testsuite/buildok/usymdata.stp: New test. * testsuite/buildok/usymname.stp: Likewise.
* PR6580: Implement symname, symdata and modname context functions.Mark Wielaard2009-04-021-7/+53
| | | | | | | | | | | | | | | | | | This adds a couple of the suggested context/stack revamp functions from PR6580. In particular it replaces the symbolname() function that sneaked in with the pr6866 branch merge with the suggested symname(). * runtime/sym.c (_stp_mod_sec_lookup): Make section optional. (_stp_symbol_snprint): Provide a way to get optional module info. * tapset/context-symbols.stp: Replace symbolname() with symname(), add modname() and symdata(). (probemod): Implement pc based fallback. * tapset/context-unwind.stp (caller): Adjust for _stp_symbol_snprint change. * testsuite/systemtap.context/usymbols.exp: Use new symname. * testsuite/buildok/modname.stp: New test. * testsuite/buildok/symdata.stp: Likewise. * testsuite/buildok/symname.stp: Likewise.
* Merge branch 'master' into pr6866Mark Wielaard2009-03-171-11/+12
|\ | | | | | | | | Resolved conflicts: runtime/task_finder.c: name vs path.
| * minor editsddomingo2009-03-171-1/+1
| |
| * minor editsddomingo2009-03-171-7/+4
| |
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | | | | | tapsetdescription for man page generator (in development)
| * minor revision, added tagddomingo2009-03-021-2/+2
| |
* | context-symbols.stp (probefunc): Call _stp_symbol_snprint with current task.Mark Wielaard2008-12-151-4/+1
| |
* | PR6866: First pass at translating addresses to symbol names through vma.Mark Wielaard2008-12-101-0/+8
|/
* PR 6965: tweak symbol/unwind control macros to STP_NEED_{UNWIND,SYMBOL}_DATAFrank Ch. Eigler2008-11-281-3/+3
|
* PR6965 - Conditionally compile symbol table. Split context.stp into 3 files.Elliott Baron2008-11-281-0/+95