summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context
Commit message (Collapse)AuthorAgeFilesLines
* Small cleanup of context.exp.David Smith2010-03-241-15/+18
| | | | | * testsuite/systemtap.context/context.exp: Used "make -C $build_dir" to avoid using 'cd'. Added error handling.
* Update tests to check for uprobes instead of utrace.David Smith2010-03-092-4/+4
| | | | | | | * testsuite/systemtap.context/uprobe_stmt_num.exp: Change utrace test to uprobes test. * testsuite/systemtap.context/uprobe_uaddr.exp: Ditto. * testsuite/systemtap.base/bz5274.exp: Ditto.
* bz6436 backtraces from uprobesTim Moore2010-01-052-0/+17
| | | | | | | | | | | | | | | | | | | | | This implements proper unwinding from uprobes in the presence of uretprobe trampolines. * runtime/stack.c (_stp_stack_print): Rework for uprobe context case and refactor a bit. * runtime/uprobes2/uprobes.h (GET_PC_URETPROBE_NONE): new constant * runtime/uprobes2/uprobes.c (uprobe_get_pc): Support translating the trampoline function from uprobe context in addition to uretprobe context. * runtime/uprobes/uprobes.h (GET_PC_URETPROBE_NONE): ditto * runtime/uprobes/uprobes.c (uprobe_get_pc): ditto * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Initialize ri in context to GET_PC_URETPROBE_NONE in generated enter_uprobe_probe. * testsuite/systemtap.context/fib.stp: Add an option to do a backtrace on function entry. * testsuite/systemtap.context/fib.exp: Test backtrace in function entry (uprobe) probes.
* support for a brief backtrace formatTim Moore2009-12-173-0/+85
| | | | | | | | | | | | | | This only prints symbol+offset, or an address if the symbol isn't known. * runtime/runtime.h (SYM_VERBOSE_NO, SYM_VERBOSE_FULL, SYM_VERBOSE_BRIEF): new constants * runtime/stack.c (_stp_stack_print): support brief format * runtime/sym.c (_stp_func_print): ditto * tapset/ucontext-unwind.stp (print_ubacktrace_brief): new function * testsuite/systemtap.context/fib.c: new test program * testsuite/systemtap.context/fib.stp: new test * testsuite/systemtap.context/fib.exp: new test
* backtrace through uprobes trampoline.Tim Moore2009-12-171-0/+31
| | | | | | | | | | | | | | Only works in uretprobes for the moment. * runtime/stack-x86_64.c (__stp_stack_print): Rewrite trampoline PC addresses if necessary. * runtime/stack-i386.c (__stp_stack_print): ditto * runtime/stack-arm.c (__stp_stack_print): Add extra argument * runtime/stack-ppc.c (__stp_stack_print): ditto * runtime/stack-s390.c (__stp_stack_print): ditto * runtime/stack.c (_stap_stack_print): call __stp_stack_print with uretprobe_instance. * testsuite/systemtap.context/uprobe_backtrace.stp: new test
* set the IP in return probes to the returned-to instructionTim Moore2009-12-162-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | 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
* context.exp test improvements.David Smith2009-10-304-4/+6
| | | | | | | | * testsuite/systemtap.context/args.tcl: Increased timeout. If tests do timeout, fail (instead of silently failing). * testsuite/systemtap.context/num_args.tcl: Ditto. * testsuite/systemtap.context/backtrace.tcl: Increase timeout. * testsuite/systemtap.context/pid.tcl: Ditto.
* PR4186 cont'd: option #2: standardize on kernel ARCH/SUBARCH throughoutFrank Ch. Eigler2009-08-251-6/+3
| | | | | | | | * main.cxx (main): Perform equivalent sed by hand on uname()->machine. * stap.1.in: Clarify -a ARCH slightly. * tapsets.cxx (validate_module_elf): Accept "arm*"for EM_ARM. * tapset/**, testsuite/**: Removed/collapsed "i386"/"i686" branches, renamed "ppc64"->"powerpc" and "s390x"->"s390".
* Improved context.exp error handling.David Smith2009-08-113-10/+8
| | | | | | | | | | * testsuite/systemtap.context/context.exp: Makes sure errors are output to the log file. Also, a Makefile is copied with 'cp -p' to avoid make erroring out if the Makefile's date is in the future (as can be the case if running the test over nfs). * testsuite/systemtap.context/args.tcl: Makes sure 'close' errors are ignored. * testsuite/systemtap.context/backtrace.tcl: Ditto.
* PR10486 Raise default MAXSTRINGLEN.Mark Wielaard2009-08-071-2/+2
| | | | | | | | * translate.cxx (translate_pass): Raise MAXSTRINGLEN to 256 for 32bit arches and to 512 for 64bit arches. * testsuite/systemtap.context/backtrace.tcl: Don't set MAXSTRINGLEN. * testsuite/systemtap.exelib/ustack.tcl: Likewise. * testsuite/systemtap.string/str_replace.exp: Explicitly set MAXSTRINGLEN.
* Add testcase for PR10458, PR10459 and PR10454.Mark Wielaard2009-07-313-0/+102
| | | | | | | | Last test currently disabled because PR10454 is still open. * testsuite/systemtap.context/uprobe_stmt_num.exp: New file. * testsuite/systemtap.context/uprobe_stmt_num.stp: Likewise. * testsuite/systemtap.context/uprobe_stmt_num.c: Likewise.
* Fix arguments to mktemp with less than 6 X'sEugeniy Meshcheryakov2009-05-051-1/+1
|
* Add comment to try -d kernel -d systemtap_test_module1 on backtrace.tcl test.Mark Wielaard2009-04-201-0/+1
|
* Create usymname and usymdata variant that trigger STP_NEED_VMA_TRACKER.Mark Wielaard2009-04-071-3/+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-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.
* Check for utrace in usymbols.exp.Mark Wielaard2009-04-021-2/+3
|
* Merge branch 'master' into pr6866Mark Wielaard2009-04-015-4/+5
|\
| * testsuite/systemtap.context/*.tcl: Don't wait 4 whole minutes for timeout.Mark Wielaard2009-04-014-4/+4
| |
| * context.exp: log which subtest is being sourced.Mark Wielaard2009-04-011-0/+1
| |
* | Wrap vma callbacks in STP_NEED_VMA_TRACKER.Mark Wielaard2009-04-011-1/+3
| | | | | | | | | | | | | | | | Will be defined by new ucontext symbol stapset. * tapset.cxx: Wrap all vma callbacks in STP_NEED_VMA_TRACKER. * testsuite/systemtap.context/usymbols.exp: Define STP_NEED_VMA_TRACKER explicitly for now.
* | Emit vma callbacks for uprobes.Mark Wielaard2009-03-201-1/+2
| | | | | | | | | | | | | | | | * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Emit vma callbacks. (uprobe_derived_probe_group::emit_module_init): Activate vma callbacks. * testsuite/systemtap.context/usymbols.exp: Track through uprobes, so as to make sure we have the symbols.
* | Merge branch 'master' into pr6866Mark Wielaard2009-02-202-0/+25
|\| | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog: Removed runtime/ChangeLog: Removed runtime/sym.c: Merged runtime/task_finder.c: Merged tapset/ChangeLog: Removed testsuite/ChangeLog: Removed
| * Move symbols.exp and symbols.stp to systemtap.context directory.William Cohen2009-02-062-0/+25
| |
* | Merge branch 'master' into pr6866.Mark Wielaard2009-01-231-1/+1
|\|
| * PR9699: correct tcl syntax in test caseFrank Ch. Eigler2009-01-061-1/+1
| |
* | Compile and use helper usymbols_lib.c library for usymbols.exp test.Mark Wielaard2008-12-153-30/+67
| |
* | PR6866: First pass at translating addresses to symbol names through vma.Mark Wielaard2008-12-102-0/+110
|/
* Add [u_]register() and *_arg() support for s390x.Jim Keniston2008-11-191-0/+1
|
* Improved error handling of num_args.tcl testcase.David Smith2008-11-121-1/+4
| | | | | | | 2008-11-12 David Smith <dsmith@redhat.com> * systemtap.context/num_args.tcl: Improved error handling of testcase.
* Enable and update numeric-arg tests.Jim Keniston2008-06-102-15/+19
|
* Added systemtap.context/num_args test.Jim Keniston2008-06-042-0/+111
|
* PR6429: testsuite update for inexact backtrace toleranceFrank Ch. Eigler2008-06-031-17/+17
|
* Revert "testsuite: use catch{close}catch{wait} to ensure child process ↵Frank Ch. Eigler2008-05-283-3/+7
| | | | | | pipe/zombie cleanup" This reverts commit 7938bd829dfd82c40b35d536b5913e666c1454d2.
* testsuite: use catch{close}catch{wait} to ensure child process pipe/zombie ↵Frank Ch. Eigler2008-05-273-7/+3
| | | | cleanup
* kretprobe trampoline fixesMartin Hunt2008-03-282-67/+83
| | | | | Recognize when a kretprobe trampoline was hit and continue with inexact stack dump. Also some testsuite changes.
* PR5770: false systemtap/eof/timeout messages in testsuite.logfche2008-02-233-3/+3
| | | | | | | 2008-02-23 Frank Ch. Eigler <fche@elastic.org> * */*.exp: Change all "send \003" to "exec kill -INT -<pgrp>" in order to more reliably kill an inferior stap/stapio/staprun process group.
* 2008-02-12 Frank Ch. Eigler <fche@elastic.org>fche2008-02-135-7/+24
| | | | | | | | * systemtap.context/context.exp: Build temporary modules under build tree, to tolerate read-only source trees. * {args,backtrace,pid}.tcl: Corresponding changes. * systemtap_test_module2.c: Add a bunch of asm("")'s to prevent inlining even better than noinline does.
* 2008-02-06 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-02-062-4/+10
| | | | | | | | | | | | * stack-ia64.c (__stp_show_stack_sym): Skip printing symbol if (ip == REG_IP(regs)). 2008-02-06 Masami Hiramatsu <mhiramat@redhat.com> * systemtap.context/backtrace.tcl: Fixed regular expressions and Added new expression for return probe on ia64. * systemtap.context/backtrace.stp(print_all_trace_info): Added trace point output before calling print_stack().
* 2008-02-06 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-02-061-2/+1
| | | | | | | | | | | * systemtap.base/procfs.exp: Added PROCFS.ko cleanup. * systemtap.context/context.exp: Added cleanup call. * systemtap.printf/end1b.exp: Passed evaluated command string to as_root. * systemtap.printf/mixed_outb.exp: Ditto. * systemtap.printf/out1b.exp: Ditto. * systemtap.printf/out2b.exp: Ditto. * systemtap.printf/out3b.exp: Ditto.
* 2008-01-07 William Cohen <wcohen@redhat.com>wcohen2008-01-071-4/+5
| | | | | | | | | | * testsuite/lib/systemtap.exp (as_root): new proc. * testsuite/systemtap.context/context.exp: * testsuite/systemtap.printf/end1b.exp: * testsuite/systemtap.printf/mixed_outb.exp: * testsuite/systemtap.printf/out1b.exp: * testsuite/systemtap.printf/out2b.exp: * testsuite/systemtap.printf/out3b.exp: Use as_root proc.
* 2007-10-16 Martin Hunt <hunt@redhat.com>hunt2007-10-171-3/+3
| | | | | | | | | | | | | | | | | | PR 5000 * systemtap.printf/bin3.stp. Removed. * systemtap.printf/bin3a.stp. Renamed bin3.stp. * systemtap.printf/bin4.stp. Removed. * systemtap.printf/bin4a.stp. Renamed bin4.stp. * systemtap.printf/bin5.stp. Removed. * systemtap.printf/bin5a.stp. Renamed bin5.stp. * systemtap.printf/bin3.exp: Don't run bin3a.stp. * systemtap.printf/bin4.exp: Don't run bin4a.stp. * systemtap.printf/bin5.exp: Don't run bin5a.stp. Increase reliability under loads. * systemtap.samples/pfaults.exp: Increase MAXACTION. * systemtap.context/backtrace.tcl: Handle just a single userspace address.
* 2007-09-25 Martin Hunt <hunt@redhat.com>hunt2007-09-251-2/+2
| | | | | * systemtap.context/backtrace.tcl: Handle single line timer.profile backtraces.
* 2007-09-12 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-09-123-9/+108
| | | | | | | | PR 4633 * systemtap.context/backtrace.stp: Add testcases for the return probe and the profile probe. * systemtap.context/backtrace.tcl: Ditto. * /systemtap.context/systemtap_test_module2.c: Ditto.
* 2007-08-27 Martin Hunt <hunt@redhat.com>hunt2007-08-271-1/+1
| | | | | * systemtap.context/context.exp (build_modules): Change build order to prevent messages about no version for yyy_int64.
* 2007-07-10 Martin Hunt <hunt@localhost.localdomain>hunt2007-07-111-2/+2
| | | | | * systemtap.context/context.exp: Copy modules to /lib/modules/`uname -r`/kernel for debug info.
* 2007-07-10 Martin Hunt <hunt@redhat.com>hunt2007-07-101-1/+0
| | | | | * uid16.c (main): 16-bit syscalls now have the same name as 32-bit. Fix patterns.
* *** empty log message ***hunt2007-07-101-1/+1
|
* 2007-07-10 Martin Hunt <hunt@redhat.com>hunt2007-07-101-2/+4
| | | | | * systemtap.context/pid.tcl: Don't try to get real ppid, just match pattern.
* 2007-07-09 Martin Hunt <hunt@redhat.com>hunt2007-07-091-2/+2
| | | | | * systemtap.context/systemtap_test_module1.c (stm_write_cmd): Set pointer type to "char *" so get_user() fetches a char.
* 2007-07-03 Martin Hunt <hunt@redhat.com>hunt2007-07-034-50/+54
| | | | | | * systemtap.context/pid.tcl: Better error reporting. * systemtap.context/args.*: Ditto. * systemtap.context/context.exp: Build in temp dir.