summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Don't print pid in flightrec5.exp test.Mark Wielaard2009-09-171-1/+0
|
* * sdt.h (STAP_SEMAPHORE): New. Add guard to utrace probe points.Stan Cox2009-09-161-12/+13
| | | | | | | | | | | | | | * itrace.h (__access_process_vm): Moved from here... * runtime/access_process_vm.h: New. ...to here. * translate.cxx (translate_pass): Include access_process_vm.h * session.h (sdt_semaphore_addr): New. * tapsets.cxx (sdt_query::record_semaphore): New. Record sdt_semaphore_addr. (uprobe_derived_probe_group::emit_module_decls): Allow for uprobe guard variable to be set and unset. (uprobe_derived_probe_group::emit_module_decls): Likewise. (uprobe_derived_probe_group::emit_module_exit): Likewise. * tapset-utrace.cxx (utrace_derived_probe_group::emit_probe_decl): Likewise. (utrace_derived_probe_group::emit_module_decls): Likewise. (utrace_derived_probe_group::emit_module_exit): Likewise.
* Merge branch 'master' of sourceware.org:/git/systemtapJosh Stone2009-09-163-1/+131
|\
| * Add signal based file switching testcaseMasami Hiramatsu2009-09-163-1/+131
| | | | | | | | | | | | | | | | * testsuite/systemtap.base/flightrec1.exp: Add signal file switching testcase. * testsuite/systemtap.base/flightrec4.exp: New test for signal file switching with file number limits. * testsuite/systemtap.base/flightrec5.exp: New test for signal file switching with file number limits on bulk mode.
* | Add the badname.stp exampleJosh Stone2009-09-166-1/+82
| | | | | | | | | | This is a toy script I wrote a while back to demonstrate how SystemTap could be used to enforce filesystem naming rules.
* | Spelling fixes in the meta of many examplesJosh Stone2009-09-1616-80/+80
| |
* | Fix the old networking buildok testJosh Stone2009-09-161-1/+1
| |
* | A basic test to assure that networking tapset is building okBreno Leitao2009-09-161-0/+47
| | | | | | | | | | | | | | | | | | | | This is a basic script to assure that the network devices tapset is building (-p4) properly. This script is basically a copy of another netdev example that is located on testsuite/systemtap.examples/network/netdev.stp Signed-off-by: Josh Stone <jistone@redhat.com>
* | Add meta for the netdev example & regenerate indexesJosh Stone2009-09-165-1/+59
| |
* | A network device exampleBreno Leitao2009-09-161-0/+58
|/ | | | | | | | Add a example that cover the network device tapset. This example just add simple probes and display what is going one with all the network devices. Signed-off-by: Josh Stone <jistone@redhat.com>
* Make labels -l .label test independent of list output order.Mark Wielaard2009-09-161-2/+9
| | | | | * testsuite/systemtap.base/labels.exp (-l .label): List all output lines individually in expect regex.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-09-1467-111/+446
|\ | | | | | | | | | | | | | | | | | | Conflicts: aclocal.m4 configure doc/SystemTap_Tapset_Reference/Makefile.in testsuite/aclocal.m4 testsuite/configure
| * PR10608: mark test cases untested once compilation failedWenji Huang2009-09-143-30/+21
| | | | | | | | | | | | | | * testsuite/systemtap.syscall/syscall.exp: Simplify logic things. * testsuite/systemtap.syscall/test.tcl: Check compilation result. * testsuite/systemtap.base/utrace_syscall_args.exp: Change fail to untested.
| * Make check.exp not sleep so much in test_installcheck.Mark Wielaard2009-09-1348-48/+48
| | | | | | | | | | | | | | A lot of time during the installcheck was spend just sleeping. Reduce the sleep time by at least one fifth. * testsuite/systemtap.examples/*/*meta: Reduct -c "sleep" time.
| * Make tracepoints.exp test more efficient by running as one giant script.Mark Wielaard2009-09-131-6/+20
| | | | | | | | | | | | | | | | | | | | | | When there are lots of tracepoints in the kernel running a script for each one individually can take several minutes. So run them all in one giant script at the same time. Also increase timeout for the stap -l collection step since with an empty cache that might take more than the default 10 seconds. * testsuite/systemtap.base/tracepoints.exp: Increase default timeout. Collect all script fragments and run them as one.
| * Only test highest optimization for exelib.exp test.Mark Wielaard2009-09-131-3/+3
| | | | | | | | | | | | | | There is not much to gain from testing low and high optimized programs. So only test highest optimization level. Half test time from 200 to 100 sec. * testsuite/systemtap.exelib/exelib.exp: Set opt to list containing just -O3.
| * Replace small exelib.exp testcases with one jumbo testcase.Mark Wielaard2009-09-133-1/+181
| | | | | | | | | | | | | | | | | | | | | | | | Merge lib, mark, uname and ustack stp and tcl scripts into one large libmarkunamestack stp and tcl script. But keep the individual tests in case the large test fails and one wants to debug the individual steps. Takes test time for exelib.exp down from 700 seconds to 200 seconds. * testsuite/systemtap.exelib/libmarkunamestack.stp: New large stp script. * testsuite/systemtap.exelib/libmarkunamestack.tcl: New large tcl script. * testsuite/systemtap.exelib/exelib.exp: Use libmarkunamestack.
| * PR10618: update iostat-scsi.stp for 2.6.31Wenji Huang2009-09-112-3/+17
| | | | | | | | | | * testsuite/systemtap.examples/io/iostat-scsi.stp: Add pure function. * testsuite/systemtap.examples/io/iostat-scsi.meta: Add -g option.
| * Run autoreconfEugeniy Meshcheryakov2009-09-113-726/+652
| |
| * examples: regenerate index filesFrank Ch. Eigler2009-09-094-1/+50
| |
| * PR10604: check availability for example test casesWenji Huang2009-09-089-10/+38
| | | | | | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.examples/check.exp: Handle with test_support. * testsuite/systemtap.examples/io/iostat-scsi.meta: Add meta-tag test_support. * testsuite/systemtap.examples/memory/mmanonpage.meta: Ditto. * testsuite/systemtap.examples/memory/mmfilepage.meta: Ditto. * testsuite/systemtap.examples/memory/mmreclaim.meta: Ditto. * testsuite/systemtap.examples/memory/mmwriteback.meta: Ditto. * testsuite/systemtap.examples/network/autofs4.meta: Ditto. * testsuite/systemtap.examples/network/dropwatch.meta: Ditto. * testsuite/systemtap.examples/process/schedtimes.meta: Ditto.
| * Test user markers set in a shared object.Stan Cox2009-09-081-3/+55
| | | | | | | | * sdt_misc: Add -shared section.
| * Clean up iostat-scsi.stp and add to the regular testing.William Cohen2009-09-082-8/+16
| |
| * testsuite: reduce verbosity of (deprecated?) nodwf07.stp testFrank Ch. Eigler2009-09-081-1/+1
| | | | | | | | | | * testsuite/semko/nodwf07.stp: Add >/dev/null at end, since stap -p2 for this script generates turbomucho text.
| * testsuite: fix buildok test permissionsFrank Ch. Eigler2009-09-083-0/+0
| |
| * bz10475.exp: Use filp_open which has a constant const char argument for test.Mark Wielaard2009-09-071-4/+3
| | | | | | | | | | | | | | | | | | For some reason the do_filp_open const char *pathname argument has changed its name between different kernel versions. Luckily filp_open has a cont char *filename argument that is constant between versions (the test needs a const char* argument to do an array operation on). * testsuite/semok/bz10475.stp: Use filp_open instead of do_filp_open.
* | 2009-09-14 Dave Brolley <brolley@redhat.com>Dave Brolley2009-09-143-980/+671
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * modsign.cxx (init_cert_db_path): Use 'system' call. (sign_module): Renamed to 'main'. This is now an independant program. Check for arguments. Return 1 on error. * buildrun.cxx (modsign.h): Don't #include it. (compile_pass): Don't sign the module. * main.cxx (main): Don't copy the module signature. * cache.cxx (add_to_cache): Don't cache the module signature. * Makefile.am (bin_PROGRAMS): Add stap-sign-module. (stap_SOURCES): Remove modsign.cxx and nsscommon.c. (stap_sign_module_SOURCES): New variable. (stap_sign_module_CPPFLAGS): New variable. (stap_sign_module_LDFLAGS): New variable. (stap_sign_module_LDADD): New variable. * stap-server (initialization): Initialize unprivileged. (parse_options): Handle --unprivileged. (create_response): Call stap-sign-module if --unprivileged was specified. * systemtap.spec: Add stap-sign-module to stap-server. * Makefile.in: Regenerated. * doc/Makefile.in: Regenerated. * doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated. * grapher/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * aclocal.m4: Likewise. * testsuite/aclocal.m4: Likewise. * configure: Likewise. * testsuite/configure: Likewise.
* Get tcpdumplike.stp tested on "make check"William Cohen2009-09-041-0/+1
|
* PR10552 followup, remove -M testcases.Mark Wielaard2009-09-031-5/+0
| | | | * testsuite/systemtap.base/cache.exp: Remove MERGE1 and MERGE2 (-M) tests.
* Return, don't exit mysql.exp when unsupported.Mark Wielaard2009-09-021-1/+1
|
* Add mysql.exp to test dtrace like support for mysql.Stan Cox2009-09-012-1/+345
| | | | * testsuite/systemtap.base/mysql.exp: New.
* PR10552: Removed references to the merge ('-M') option.David Smith2009-09-012-11/+0
| | | | | | | | | | | * hash.cxx (find_script_hash): Removed unused merge option. * main.cxx (checkOptions): Removed merge option checks. (main): Removed merge option. * session.h: Ditto. * initscript/README.initscript: Removed reference to '-M' option. * initscript/systemtap.in (stap_getopt): Ditto. * testsuite/parseko/cmdline01.stp: Removed merge option test. * testsuite/parseko/cmdline05.stp: Ditto.
* Add virtual memory subsystem tracepoint examples.William Cohen2009-08-3112-0/+437
|
* Tighten kernel.function alias_tapset.exp expect regexp to match precisely.Mark Wielaard2009-08-291-1/+1
|
* Fix overlapping statement probe error in warnings.stp.Mark Wielaard2009-08-291-1/+1
| | | | | | | | | | | | | Instead of generating a warning the current kernel.statement probe produced a warning on some 386 kernels that had optimized that particular line: semantic error: multiple addresses for fs/bio.c:282 (try fs/bio.c:278 or fs/bio.c:284) semantic error: no match while resolving probe point kernel.statement("bio_init@fs/bio.c+3") So do as told to just get the expected warnings for this probe. * testsuite/systemtap.base/warnings.stp (probea): Probe bio_init@fs/bio.c+5.
* Tighten alias_tapset.exp expect regexp to not gobble up multiple lines.Mark Wielaard2009-08-291-4/+4
|
* Have dtrace use [wd] as the default dir when -o isn't given.Stan Cox2009-08-281-5/+4
| | | | | * dtrace.in: Generate the output file from basename of input filename. * dtrace.exp: Adjust the tests accordingly.
* stap-client will now always choose a compatible server even for phases 1-3.Dave Brolley2009-08-281-5/+3
| | | | Always start a local server needed by the test suite (make {install}check).
* Added test for pr10568.David Smith2009-08-283-0/+43
| | | | | | * testsuite/systemtap.base/alias_tapset.exp: New file. * testsuite/systemtap.base/alias_tapset.stp: Ditto. * testsuite/systemtap.base/alias_tapset/tapset_test.stp: Ditto.
* Support || and && in preprocessor's conditions.Przemyslaw Pawelczyk2009-08-283-0/+20
| | | | | | | | | | * parse.cxx (parser::scan_pp): Add || and &&. * stap.1.in: Document || and && in PREPROCESSING. * testsuite/parseok/twenty.stp: Test case. * testsuite/parseko/preprocess14.stp: Ditto. * testsuite/parseko/preprocess15.stp: Ditto. Signed-off-by: Josh Stone <jistone@redhat.com>
* Cross check stap_compile.exp stap run result with error messages seen.Mark Wielaard2009-08-281-1/+14
|
* Tighten stap_compile.exp regexp to not accidentially gobble up extra lines.Mark Wielaard2009-08-281-1/+1
|
* PR10568: Ensure that aliases pull in their tapsetJosh Stone2009-08-274-0/+37
| | | | | | | | | | | When a probe alias is resolved in a tapset, the contents of that tapset should be included in the compiled script, just as we do for global variables and functions. * elaborate.cxx (alias_expansion_builder::build): When an alias is instantiated, add its stapfile to the session files. * testsuite/systemtap.base/tapset_includes.exp: New test. * testsuite/systemtap.base/tapset/*.stp: Testing tapsets for above.
* xfail backtrace.exp as PR6961 backtrace from non-pt_regs probe contextMark Wielaard2009-08-271-0/+4
|
* Return, don't exit postgres.exp when unsupported.Mark Wielaard2009-08-271-1/+1
|
* Teach postgres.exp to use a locally built version of postgres.Stan Cox2009-08-271-62/+92
| | | | | * postgres.exp: Grab postgres from upstream then build and test it with uprobe, utrace, and kprobe.
* PR4186 cont'd: option #2: standardize on kernel ARCH/SUBARCH throughoutFrank Ch. Eigler2009-08-254-9/+6
| | | | | | | | * 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".
* KFAIL cmd_parse15 on kernel < 2.6.29, see commit e0ccd3.Mark Wielaard2009-08-251-0/+5
| | | | | * testsuite/systemtap.base/cmd_parse.exp: kfail cmd_parse15 when kernel26ver < 29.
* Make inlinedvars empty asm really empty.Mark Wielaard2009-08-251-1/+1
| | | | | | | A debug "nop" was accidentially left in the asm statement that should have been totally empty. * testsuite/systemtap.base/inlinedvars.c (m): Really empty asm.
* PR4186 cont'd: uname -m --> uname -i in test casesFrank Ch. Eigler2009-08-244-5/+5
|