summaryrefslogtreecommitdiffstats
path: root/tapset/context-unwind.stp
Commit message (Collapse)AuthorAgeFilesLines
* set the IP in return probes to the returned-to instructionTim Moore2009-12-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | It's easily available in kretprobes and uretprobes and is consistent with the rest of the program state. * translate.cxx (emit_common_header) : add uretprobe_instance to context. * tapsets.cxx (common_probe_entryfn_prologue): Initialize ri in context to 0. (dwarf_derived_probe_group::emit_module_decls): Change IP to return address in kretprobes. (uprobe_derived_probe_group::emit_module_decls): enter_uretprobe_probe: set ri (uretprobe_instance) in context. Change IP to return address in uretprobes. Don't emit uprobe include and #define * runtime/runtime.h : Add includes and #define for uprobes. * runtime/stack.c (_stp_stack_print, _stp_stack_snprint): Add extra argument for uretprobe_instance. * tapset/context-unwind.stp (print_backtrace, backtrace): Pass NULL for uretprobe_instance to _stp_stack_print. * tapset/ucontext-unwind.stp (print_ubacktrace, ubacktrace): pass uretprobe_instance to _stp_stack_print * testsuite/systemtap.context/uprobe_uaddr.exp : new test for uaddr in function probes * testsuite/systemtap.context/uprobe_uaddr.stp : new file
* tapset docs cleanupFrank Ch. Eigler2009-09-291-3/+3
| | | | | | | | | | | | | | 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.
* Add task_backtrace systemtap function.William Cohen2009-09-171-0/+13
|
* Spelling fixes in the tapsetsJosh Stone2009-09-161-1/+1
|
* Implement caller:string() in terms of symname() and caller_addr().Mark Wielaard2009-05-131-8/+5
| | | | | * tapset/context-unwind.stp (caller): Implement as stap function using symname(), caller_addr() and sprintf().
* Pass task from tapset, through stack and unwind functions for lookup.Mark Wielaard2009-04-201-2/+2
| | | | | | | | | | | | | | | | | * runtime/stack-arm.c (__stp_stack_print): Take struct task_struct *. * runtime/stack-ia64.c (__stp_stack_print): Likewise. * runtime/stack-ppc64.c (__stp_stack_print): Likewise. * runtime/stack-s390.c (__stp_stack_print): Likewise. * runtime/stack-i386.c (__stp_stack_print): Likewise. And add check and pass to unwind() and _stp_func_print(). * runtime/stack-x86_64.c: Likewise. * runtime/stack.c *_stp_stack_print): Take and pass on task_struct. (_stp_stack_snprint): Likewise. * runtime/unwind.c (unwind): Take and use task_struct for _stp_mod_sec_lookup(). * tapset/context-unwind.stp (print_backtrace): Pass NULL to _stp_stack_print(). (backtrace): Pass NULL to _stp_stack_snprint().
* PR6580: Implement symname, symdata and modname context functions.Mark Wielaard2009-04-021-1/+1
| | | | | | | | | | | | | | | | | | 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-6/+10
|\ | | | | | | | | Resolved conflicts: runtime/task_finder.c: name vs path.
| * minor editsddomingo2009-03-171-5/+5
| |
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | | | | | tapsetdescription for man page generator (in development)
* | Merge branch 'master' into pr6866Mark Wielaard2009-02-201-8/+9
|\| | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog: Removed runtime/ChangeLog: Removed runtime/sym.c: Merged runtime/task_finder.c: Merged tapset/ChangeLog: Removed testsuite/ChangeLog: Removed
| * PR9810: Mostly revert "PR6961: initial sketch: set up dummy pt_regs for ↵Frank Ch. Eigler2009-02-031-8/+9
| | | | | | | | non-trap based probes"
* | PR6866: First pass at translating addresses to symbol names through vma.Mark Wielaard2008-12-101-1/+2
|/
* PR6961: initial sketch: set up dummy pt_regs for non-trap based probesFrank Ch. Eigler2008-12-091-9/+8
|
* PR 6965: tweak symbol/unwind control macros to STP_NEED_{UNWIND,SYMBOL}_DATAFrank Ch. Eigler2008-11-281-6/+6
|
* PR6965 - Conditionally compile symbol table. Split context.stp into 3 files.Elliott Baron2008-11-281-0/+71