summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Revert "PR11234: Ensure __get_argv doesn't overflow"Josh Stone2010-02-042-67/+0
| | | | This reverts commit f75409719f120a3dbee66d761cf23a64092d1414.
* new sample: pfilesEugene Teo2010-02-046-25/+651
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-02-0410-2/+197
|\
| * Fix procfs_write.exp so that it will pass under RHELl5.David Smith2010-02-022-2/+6
| | | | | | | | | | | | | | * testsuite/systemtap.base/procfs_write.exp: Small changes for RHEL5 support. * testsuite/lib/stap_run.exp (stap_run): Increase maximum number of characters to match against.
| * Add nfs_func_log example.William Cohen2010-02-024-0/+24
| |
| * Add nfs_func_users example.William Cohen2010-02-026-0/+70
| |
| * Add iodevstats.stp exampleWilliam Cohen2010-02-026-0/+97
| |
* | Compile server logging and robustness.Dave Brolley2010-02-021-2/+3
|/ | | | | | Log certificate location and status when starting server. Additional care in handling arguments in stap-serverd. New test case discovered by fuzzing added and fixed.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-02-0218-15/+339
|\
| * buildok test doesn't need /usr/bin/envMark Wielaard2010-02-021-1/+1
| | | | | | | | * testsuite/buildok/hwbkpt.stp: Just use stap directly after #!.
| * Make sure cfa_ops are always retrieved through dwfl global address.Mark Wielaard2010-02-024-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dwflpp::translate_location() works on the dw address space, but get_cfa_ops() starts out with dwfl calls (only dwarf_cfi_addrframe() needs to be adjusted for bias). * dwflpp.cxx (translate_location): Pass pc plus module bias through to get_cfa_ops. (get_cfa_ops): Adjust for bias when calling dwarf_cfi_addrframe(), add frame start/end address when found if verbose logging. * testsuite/systemtap.exelib/lib.stp: Add $foo and $bar variables to process.function probes. * testsuite/systemtap.exelib/libmarkunamestack.stp: Likewise. * testsuite/systemtap.exelib/lib.tcl: Expect correct values for process.function probe variables. * testsuite/systemtap.exelib/libmarkunamestack.tcl: Likewise.
| * regen sample indexesFrank Ch. Eigler2010-02-014-0/+24
| |
| * new sample for sandeen@redhat.com: fntimes.stpFrank Ch. Eigler2010-02-012-0/+36
| |
| * Make hwbkpt.stp compitable with old kernel and exectuableWenji Huang2010-02-011-3/+13
| | | | | | | | | | * testsuite/buildok/hwbkpt.stp: Switch by CONFIG_* and be executable.
| * Fix uninitialization error on gcc 4.1.xWenji Huang2010-02-011-1/+1
| | | | | | | | * testsuite/systemtap.base/overflow-get_argv.stp: Initialize var.
| * Hardware Breakpoints for x86 / x86_64, based on mainline kernelPrerna Saxena2010-01-291-0/+4
| |
| * PR11234: Ensure __get_argv doesn't overflowJosh Stone2010-01-282-0/+67
| | | | | | | | | | | | | | That function was calling strlcpy as if the return value was the number of bytes copied, but strlcpy actually returns the length of the input string. We now use min() to handle the case when it's bigger than the buffer length, and drop out of the loop when that happens.
| * 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
| |