summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
| * PR6954: make ++/-- operation trigger automatic global printingWenji Huang2010-01-282-2/+5
| | | | | | | | | | | | | | * staptree.cxx (varuse_collecting_visitor::visit_arrayindex): Regard operations as pure writes. * testsuite/systemtap.base/global_end.exp: Add test case. * testsuite/systemtap.base/global_end.stp: Ditto.
| * PR11197: prevent startup of stap-server as rootFrank Ch. Eigler2010-01-271-1/+1
| | | | | | | | | | | | | | * stap-serverd: Block startup if whoami=root, unless magic environment variable is set. * testsuite/lib/systemtap.exp: Set magic environment variable to override protection.
| * Fixed PR 11223 by null terminating strings in procfs write probes.David Smith2010-01-261-0/+135
| | | | | | | | | | | | * tapset-procfs.cxx (procfs_var_expanding_visitor::visit_target_symbol): Correctly null terminate strings in procfs write probes. * testsuite/systemtap.base/procfs_write.exp: New test.
| * Fixed PR 11220 by setting MAP_STRING_LENGTH to MAXSTRINGLEN.David Smith2010-01-251-0/+45
| | | | | | | | | | | | * runtime/map.h: Set MAP_STRING_LENGTH to MAXSTRINGLEN so that large strings can be stored in arrays. * testsuite/systemtap.base/array_string.exp: New testcase.
* | PR 11105: Remaining client-side problems:Dave Brolley2010-02-022-1/+7
|/ | | | | stap-client: Correct handling of embedded newlines in arguments. server_args.exp: Add additional cases discovered by fche and by fuzzing.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-217-741/+682
|\
| * Run autoreconfEugeniy Meshcheryakov2010-01-213-741/+674
| |
| * Add shebangsEugeniy Meshcheryakov2010-01-212-0/+4
| |
| * chmod +x testsuite/parseko/conditional.stpJosh Stone2010-01-191-0/+0
| |
| * PR11195: Prevent all nested argument substitutionJosh Stone2010-01-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | Our existing protection only made sure that the first token in a substitution wasn't a nested substitution. That's not sufficient when there could be multiple tokens involved. This patch makes sure that no nested tokens are ever allowed to be argument substitutions. This also adds a cursor_suspended_line/column and resets the main cursor_line/column to the beginning of the substitution, so errors will point a little closer to the right place.
* | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-181-3/+8
|\|
| * Relax sdt address check for attach to running process case.Stan Cox2010-01-151-3/+8
| | | | | | | | * uprobes-common.c (stap_uprobe_change_plus): Relax VM_EXEC check.
* | Correct client-side quoting issues discovered by fche during the server-side ↵Dave Brolley2010-01-181-3/+6
|/ | | | | | reimplementation. Also add the test cases to the test suite.
* testsuite: fix wording of invalid-entry test groupFrank Ch. Eigler2010-01-151-2/+2
|
* Allow / as a random argyment character when fuzzing.Dave Brolley2010-01-141-1/+1
|
* Fixed rawhide syscall testsuite problem.David Smith2010-01-141-2/+2
| | | | | * testsuite/systemtap.syscall/net1.c (main): The 'bzero()' function has been deprecated on rawhide. Replaced with 'memset()'.
* Test newline characters as part of fuzzing argument strings.Dave Brolley2010-01-131-1/+2
|
* Fix PR11160 by handling ppc syscall.sigaction32 correctly.David Smith2010-01-131-1/+10
| | | | | | | | | | * tapset/aux_syscalls.stp (_struct_old_sigaction32_u): New function. * tapset/syscalls2.stp (syscall.sigaction32): Uses new _struct_old_sigaction32() function to provide a human readable version of the sigaction argument. * testsuite/systemtap.syscall/test.tcl (run_one_test): Use additional C flags when pre-processing test files to better determine which tests are valid on which platforms.
* Faulty conditionals are parse errors, not semantical errors.Mark Wielaard2010-01-131-0/+0
| | | | | | | | | The test was correct, the given construct should fail. But it fails because it is a parse error, not because it is a semantical error. So move into the right pass1-4 sub-directory. * testsuite/semko/conditional.stp: Moved to... * testsuite/parseko/conditional.stp: ... here.
* Add attach to live process tests.Stan Cox2010-01-121-30/+169
| | | | | | | * sdt_misc.exp (sdt_misc.c): New funcs loop_check, int_handler, alrm_handler. (sdt_misc.sdt): Add timer.ms (test attach to a running process): New. (test attach to a running process with .so markers): New.
* new sample script: overcommit failure monitorFrank Ch. Eigler2010-01-126-0/+45
|
* PR10747: check invalid preprocessor constructWenji Huang2010-01-121-0/+5
| | | | | * parse.cxx (scan_pp): Match '%(' and '%?'. * testsuite/semko/conditional.stp: New test.
* Add some additional test cases.Dave Brolley2010-01-111-0/+17
|
* Invalid casess can be tested for 'make check'.Dave Brolley2010-01-111-47/+49
|
* Rework filtering of client options. Add testsuite.Dave Brolley2010-01-112-0/+103
|
* Pull set of semaphore into its own function.Stan Cox2010-01-105-19/+34
| | | | | | | | | | | | | | * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Move sdt_sem_address from standalone to stap_uprobes. Remove sdt_sem_tid. In emitted function stap_uprobe_change_plus distinguish VM_EXEC/VM_WRITE cases, use sdt_sem_address member, move setting of semaphores to new emitted function stap_uprobe_change_semaphore_plus. (stap_uprobe_process_found): Call stap_uprobe_change_semaphore_plus. (stap_uprobe_mmap_found): Likewise. * stap-postgres.stp (postgresrelease): New. Sync to current upstream version. * stap-tcl.sh: Check if wget failed. * stap-tcl.stp: Check for skipped probes. * xulrunner.exp: Check if wget failed.
* New test suite for client/server argument handling.Dave Brolley2010-01-081-0/+169
|
* Move PKGLIBDIR variable set to testsuite/Makefile.am for self-contained tests.William Cohen2010-01-082-2/+2
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-071-2/+3
|\
| * 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.
* | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-0715-32/+127
|\|
| * 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.
* / Client argument handling:Dave Brolley2010-01-071-4/+0
|/ | | | | | | Pass partial options to the server instead of complaining about them in the client. Update known failures from buildok in server.exp.
* 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.