summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Make sure testcase debug output is correct.David Smith2010-01-071-2/+3
| | | | | * testsuite/systemtap.base/sdt_misc.exp: Make sure debug output of what we're about to execute actually matches what we're about to execute.
* Partial PR 10848 fix. Added testcase for STP_MAXMEMORY.David Smith2010-01-071-0/+86
| | | | | | | | | * runtime/alloc.c (_stp_kmalloc): Renamed 'MAXMEMORY' to 'STP_MAXMEMORY'. (_stp_kzalloc): Ditto. (_stp_vmalloc): Ditto. (_stp_alloc_percpu): Ditto. (_stp_kmalloc_node): Ditto. * testsuite/systemtap.base/maxmemory.exp: New test for STP_MAXMEMORY.
* Make all buildok tests executable.William Cohen2010-01-077-0/+0
|
* grapher example with backtraces in eventsTim Moore2010-01-061-0/+19
| | | | * testsuite/systemtap.examples/profiling/graphcall.stp : new file
* Merge remote branch 'origin/master'Tim Moore2010-01-054-32/+5
|\
| * PR10732 declaration.exp empty-struct fails, resolve-fail passes erroneously.Mark Wielaard2010-01-051-20/+0
| | | | | | | | * testsuite/systemtap.base/declaration.exp: Remove test.
| * Purge sdt utrace support.Stan Cox2010-01-043-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sdt.h (UTRACE_SDT): Remove. * tapset-utrace.cxx (utrace_derived_probe): Remove has_library and library. (utrace_derived_probe_group::emit_probe_decl): Remove mmap_callback, sdt_sem_offset, and sdt_sem_address. (utrace_derived_probe_group::emit_module_decls): Remove sdt_sem_offset and sdt_sem_address support. * tapsets.cxx (sdt_var_expanding_visitor): Remove utrace_probe. (sdt_query::handle_query_module) Remove utrace_type. (sdt_query::convert_probe): Likewise. * postgres.exp: Remove utrace testing. * sdt.exp: Likewise. * sdt_misc.exp: Likewise.
* | 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.
* Change directory of utsrelease.h to include/generated for 2.6.33Wenji Huang2010-01-041-1/+3
|
* Regenerate examples index to include new memory/vm.tracepoints.stp.Mark Wielaard2009-12-304-1/+63
|
* Fixup some memory tapset vm kernel function probe fallbacks.Mark Wielaard2009-12-292-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | Older kernels don't have all GFP constants defined, and the fallback kernel function probe fallbacks don't have the same dwarf variable names as the kernel trace point probes. So replace them with variables that are available. bytes_alloc was sometimes a long and sometimes a string, this caused scripts to fail depending on which alternative was chosen for a particular kernel. So make it a long always. This isn't a full solution since kmalloc is always inlined which makes the kernel.function("kmalloc").return probe fail. * tapset/memory.stp: Define __GFP_THISNODE, __GFP_RECLAIMABLE, GFP_TEMPORARY, GFP_HIGHUSER_MOVABLE and GFP_THISNODE when not yet defined. (__vm.kmalloc.kp): Use $flags, not $gfp_flags. Set bytes_alloc equal to bytes_req. (__vm.kmem_cache_alloc.kp): Likewise. And use $cachep->buffer_size for bytes_req. (__vm.kmalloc_node.kp): Likewise. (__vm.kmem_cache_alloc_node.kp): Likewise. (__vm.kfree.kp): Use $ibjp for ptr, not $return. (__vm.kmem_cache_free.kp): Likewise. * testsuite/buildok/vm.tracepoints.stp: Move vm.kmalloc test to... * testsuite/buildok/vm.tracepoints.kmalloc.stp: ... here.
* Extend skipped.exp test timeout for slower machines.Mark Wielaard2009-12-281-1/+1
|
* Fix test output for PR10849 make MAXSKIPPED overflow trigger an error messageMark Wielaard2009-12-281-5/+8
|
* XFAIL PR10732 declaration.exp empty-struct always fails.Mark Wielaard2009-12-281-0/+1
|
* Merge remote branch 'origin/master'Tim Moore2009-12-2310-721/+1092
|\
| * Updates to SCSI tapset scsi.stp and corresponding testcasesAndre Detsch2009-12-221-12/+24
| |
| * Incremented version number for release 1.1.David Smith2009-12-214-685/+994
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Set version number. * configure.ac: Incremented version number. * systemtap.spec: Incremented version number and added changelog entry. * testsuite/configure.ac: Ditto. * Makefile.in: Regenerated. * aclocal.m4: Ditto. * configure: Ditto. * doc/Makefile.in: Ditto. * doc/SystemTap_Tapset_Reference/Makefile.in: Ditto. * grapher/Makefile.in: Ditto. * testsuite/Makefile.in: Ditto. * testsuite/aclocal.m4: Ditto. * testsuite/configure: Ditto.
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-12-214-19/+58
| |\
| | * Cleanup in testsuite/system.appsStan Cox2009-12-213-19/+40
| | | | | | | | | | | | | | | | | | * mysql.exp (stap-mysql.sh): Shutdown properly. * xulrunner.exp: Run depending on SYSTEMTAP_TESTAPPS env (stap-xul.sh): Fix xulrelease. Add mozjs-dtrace.o to js link line.
| | * PR11038 Trailing semicolon as null-statement confusing.Mark Wielaard2009-12-211-0/+18
| | | | | | | | | | | | | | | | | | * parse.cxx (parser::parse_statement): Squash semicolon after non-block-like statements. * testsuite/buildok/semicolon.stp: New test.
| * | Make sure we log server activity when testing using a server.Dave Brolley2009-12-211-1/+10
| | |
| * | Get PATH correct for fidning libexec tools for installcheck.Dave Brolley2009-12-211-4/+4
| | |
| * | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-12-215-12/+75
| |\|
| | * Merge remote branch 'origin/master'Tim Moore2009-12-213-0/+62
| | |\
| | | * Tracepoint based tapset for memory subsystem.Rajasekhar Duddu2009-12-213-0/+62
| | | |
| * | | PR 10247, 10276, 10905: Move remaining client/server tools to libexec.Dave Brolley2009-12-211-1/+4
| | | |
| * | | PR 10247 10276 10905: Infrastructure for moving underlying client/server ↵Dave Brolley2009-12-181-1/+0
| | | | | | | | | | | | | | | | tools to libexec.
* | | | don't assume buffer passed to pty_write is null terminatedTim Moore2009-12-231-7/+3
| | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.examples/general/grapher.stp: Use kernel_char instead of kernel_string to dig characters out of buffer.
* | | | Tracepoint based tapset for memory subsystem.Rajasekhar Duddu2009-12-223-0/+62
| |/ / |/| |
* | | conditionalize pty_write count variable on kernel versionTim Moore2009-12-211-11/+12
| |/ |/| | | | | | | * testsuite/systemtap.examples/general/grapher.stp: Conditionalize pty_write count variable on kernel version.
* | Remove externalvar.exp .exe and .so after test done.Mark Wielaard2009-12-191-1/+1
|/
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-12-176-0/+198
|\
| * 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
* | PR 10889: Reorganize client/server man pages. Document --unprivileged.Dave Brolley2009-12-173-984/+675
|/
* Use env(SYSTEMTAP_TESTAPPS) for all systemtap.appsStan Cox2009-12-114-8/+19
| | | | | | | | mysql.exp: Use env(SYSTEMTAP_TESTAPPS). (mysqlrelease): Update and check for download failure. postgres.exp: Use env(SYSTEMTAP_TESTAPPS). stap-tcl.stp: Use .library("library").mark("mark"). tcl.exp: Likewise.
* Add .library("lib").mark("mark") and use it for .mark semaphores.Stan Cox2009-12-081-38/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | tapset-utrace.cxx (TOK_LIBRARY): New. (utrace_derived_probe::utrace_derived_probe): Add library and has_library. (utrace_builder::build): Handle library. (utrace_derived_probe_group::emit_probe_decl): Add sdt_sem_offset to emitted stap_utrace_probes. Add stap_task_finder_target mmap_callback for handling shared library. Handle sdt_sem_offset in emitted_stp_utrace_probe_cb. Add stap_utrace_mmap_found. (register_tapset_utrace): Handle .library tapset-utrace.cxx (TOK_LIBRARY): New. (base_query::base_query): Add path and has_library. (dwarf_derived_probe::dwarf_derived_probe) Likewise. (dwarf_derived_probe::register_patterns): Handle .library (sdt_query::convert_location): Likewise. (dwarf_builder::build): Likewise. (uprobe_derived_probe_group::emit_module_decls): Emit sdt_sem_address. Add sdt_sem_offset to emitted stap_uprobe_spec. Add offset and vm_flags to signature of stap_uprobe_change_plus, and handle sdt_sem_offset. Allow writeable segments in emitted stap_uprobe_mmap_found. sdt_misc.exp: Test .library util.cxx (find_executable): Add env_path to sig and use it in getenv. util.h (find_executable): Likewise. Make "PATH" the default. dtrace.in (provider): Turn on semaphores. sdt.h: Likewise.
* Revert "PR 10641 fixed by checking module name in unprivileged mode."David Smith2009-12-082-12/+0
| | | | | | | This reverts commit b2ea60606801aa9bf243f22318ac4bd8a25094fe. * main.cxx (checkOptions): Remove unprivileged mode module name check. * testsuite/parseko/cmdline05.stp: Delete unneeded testcase. * testsuite/parseok/cmdline03.stp: Ditto.
* Add dtrace -I support.Mark Wielaard2009-12-081-13/+59
| | | | | | | | dtrace -I is used to pass through include paths to cpp when run. Thanks to David Malcolm <dmalcolm@redhat.com> for python coding and testing. * dtrace.in: Add -I support. * testsuite/systemtap.base/dtrace.exp: Add testcases for -C -I and -G -I.
* PR 10641 fixed by checking module name in unprivileged mode.David Smith2009-12-072-0/+12
| | | | | | | * main.cxx (checkOptions): If in unprivileged mode, make sure module name starts with 'stap_'. * testsuite/parseko/cmdline05.stp: New testcase. * testsuite/parseok/cmdline03.stp: New testcase.
* Small compile server shutdown fix.David Smith2009-12-071-1/+3
| | | | | * testsuite/lib/systemtap.exp (shutdown_server): Only remove the temporary stap script if it exists.
* Fix regression introduced by commit 379c585Wenji Huang2009-12-071-0/+7
|
* tweak multiline hover text to have proper interline spacingTim Moore2009-12-041-1/+3
| | | | | | | | * grapher/CairoWidget.cxx (CairoTextBox::draw): Use font information to caculate legible spacing. Also change the font to something more readable. * testsuite/systemtap.examples/general/grapher.stp: Put carriage returns in the right spots.
* support multiline data output from scripts run under the grapherTim Moore2009-12-041-5/+13
| | | | | | | | | | | | | | This is accompanied by support for multiline output in hover text. * grapher/StapParser.cxx (ioCallback): Read data 'til the end of line character, not just '\n'. Be careful to use I/O functions that don't treat '\n' specially. * grapher/StapParser.hxx: ditto * grapher/CairoWidget.cxx (CairoTextBox::draw): Perform line breaks for hover text. * testsuite/systemtap.examples/general/grapher.stp: Do multiline output of keyboard events. Also, fix longstanding breaking in the pty probe.
* Make tapset and tests compatible with old kernelWenji Huang2009-12-024-17/+23
| | | | | | | | | | | | | * tapset/ioscheduler.stp : Make probe optional. * tapset/irq.stp : Ditto. * tapset/scheduler.stp : Ditto. * tapset/tcpmib.stp : Ditto. * tapset/linuxmib.stp : Switch variable by version. * tapset/tty.stp : Ditto. * testsuite/buildok/irq.stp : Make probe test optional. * testsuite/buildok/tty.stp : Ditto. * testsuite/systemtap.examples/network/netdev.stp : Ditto. * testsuite/buildok/tcpmib-all-probes.stp : Add embedded functions.
* Regenerate autotools files using autoreconf to pick up latest Makefile.am ↵Dave Brolley2009-12-013-675/+984
| | | | changes.
* - Allow root, the owner of the uprobes build directory and the members of theDave Brolley2009-11-251-10/+7
| | | | | | | | | | group owner of the uprobes buld directory to build uprobes.ko. - When building uprobes.ko, make all generated files writable by the group owner of the uprobes build directory. - Don't change the group owner of the uprobes build directory during 'make install'
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-2343-169/+474
|\ | | | | | | | | | | Conflicts: configure
| * Tweak cu-decl testWenji Huang2009-11-232-4/+6
| | | | | | | | | | * testsuite/systemtap.base/cu-decl.exp: Check utrace. * testsuite/lib/stap_compile.exp: Make catch after wait.