summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
| * Correct block IO and IO scheduler tapset and test caseWenji Huang2009-11-232-4/+3
| | | | | | | | | | | | * tapset/ioblock.stp: Update comment and variables. * testsuite/buildok/ioblock_test.stp: Add parameters. * testsuite/buildok/ioscheduler.stp: Remove redundant parameters.
| * Added tracepoint-based probes to block IO and IO scheduler tapsets.Prerna Saxena2009-11-222-0/+20
| | | | | | | | | | Added testcases for these probes. Also, modified comments in ioblock.stp so that tapset docmentation can be automatically generated for this tapset.
| * PR 10981. Fixed buildok/netdev.stp for RHEL5.David Smith2009-11-181-2/+2
| | | | | | | | | | | | | | * tapset/networking.stp: Made 'netdev.change_rx_flag' and 'netdev.get_stats' optional, since those functions don't exist on RHEL5. * testsuite/buildok/netdev.stp: Ditto.
| * Don't kfail buildok/sched_test.stp and buildok/process_test.stp.David Smith2009-11-181-2/+0
| | | | | | | | | | | | * testsuite/systemtap.pass1-4/buildok.exp: On rhel5 and rawhide, the buildok/sched_test.stp and buildok/process_test.stp tests pass sucessfully, so there is no reason to kfail them.
| * PR 5150. Fixed nfs tapset by making probes optional.David Smith2009-11-181-1/+0
| | | | | | | | | | | | | | * tapset/nfs_proc.stp: Made 'nfs.proc.read', 'nfs.proc.write', and 'nfs.proc.commit' optional for newer kernels without those functions. * testsuite/systemtap.pass1-4/buildok.exp: Expect nfs-all-probes.stp to pass.
| * Check in regenerated systemtap example indexes.Mark Wielaard2009-11-184-121/+126
| |
| * Clean up examplesWenji Huang2009-11-1824-41/+29
| |
| * Test cross-CU type discoveryJosh Stone2009-11-173-0/+50
| | | | | | | | | | Check that we can dereference a type declaration that is defined in a separate CU from the function.
| * Make interrupts-by-dev.stp executableWenji Huang2009-11-181-0/+0
| |
| * With tapset/aux_syscalls.stp fixes, test twentyseven.stp is not kfail.David Smith2009-11-171-1/+0
| | | | | | | | | | * testsuite/systemtap.pass1-4/buildok.exp: Test twentyseven.stp should pass now.
| * Add testcase for retrieving $global vars from execs and shared libs.Mark Wielaard2009-11-164-0/+204
| | | | | | | | | | | | | | | | | | Explicit testcase for PR10010 and PR10622. * testsuite/systemtap.base/externalvar.c: New file. * testsuite/systemtap.base/externalvar.exp: New file. * testsuite/systemtap.base/externalvar.stp: New file. * testsuite/systemtap.base/externalvar_lib.c: New file.
| * PR10622 Search for extern $variables in symbol table.Mark Wielaard2009-11-161-0/+7
| | | | | | | | | | | | | | | | * dwflpp.h (vardie_from_symtable): New method. * dwflpp.cxx (vardie_from_symtable): New method. (literal_stmt_for_local): Use vardie_from_symtable when no location attribute and DW_AT_external. * testsuite/buildok/xtime.stp: New testcase from PR10622.
| * Regen indexes for interrupts-by-dev exampleJosh Stone2009-11-134-0/+20
| |
| * Adding a new .meta file to run interrupts-by-dev.stp in testPrerna Saxena2009-11-131-0/+14
| |
* | Ensure uprobes/Makefile never returns failure due to setting permissions.Dave Brolley2009-11-233-984/+675
|/ | | | | Ensure uprobes install directory has group 'stap-server'. Rename igid_in to in_group.
* PR5916: Exploit kretprobe data storage areaJosh Stone2009-11-102-0/+74
| | | | | | | | | | | | | | | | | | | | Since 2.6.25, kretprobes can carry a data packet to be filled in an entry_handler. This patch lets us store our implicitly-saved $target variables in .return probes in that data area. * tapset/kretprobe.stp: New get/set functions for kretprobe data. * translate.cxx (c_unparser::emit_common_header): Add context->pi_longs. * tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol_saved_return): Switch between the old and new methods of saving $vars in .return probes. (dwarf_var_expanding_visitor::gen_mapped_saved_return): The old way. (dwarf_var_expanding_visitor::gen_kretprobe_saved_return): The new way. (dwarf_derived_probe::join_group): Don't register paired entry-handlers. (dwarf_derived_probe::dwarf_derived_probe): Remember saved-var details. (dwarf_derived_probe_group::emit_module_decls): Output saved-var details. Also split the kretprobe handler whether we're on entry or return. (dwarf_derived_probe_group::emit_module_init): Prepare the entry handler. * testsuite/systemtap.base/kretprobe-vars.stp: Test implicit $var saving.
* Fix stapprobes.irq title and add to install listJosh Stone2009-11-103-675/+984
| | | | (And incidentally re-enable quiet builds at the same time...)
* IRQ tapset, sample script, testsuite, man page updates, etcPrerna Saxena2009-11-092-0/+38
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-0338-35/+591
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.in configure doc/Makefile.in doc/SystemTap_Tapset_Reference/Makefile.in grapher/Makefile.in testsuite/configure
| * PR 6691 fixed by adding support for sys_accept4.David Smith2009-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | * tapset/aux_syscalls.stp(_sock_type_str): Rewrote in embedded-C and added socket flags support. (_sock_flags_str): New function. * tapset/syscalls.stp: syscall.accept prefers to use sys_accept4 when it exists. Added support for sys_accept4's 'flag' parameter. * testsuite/systemtap.syscall/net1.c (main): Updated regular expression to handle the new 'flags' argument.
| * reorganize app tests; rewrite tcl as sample of improvementsFrank Ch. Eigler2009-10-3111-168/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/configure.ac (--enable-testapps): New option. * testsuite/Makefile.am (TESTAPPS): Pass to dejagnu. * testsuite/systemtap.base/{xulrunner,tcl,mysql,postgres}: Moved under new systemtap.apps/ subdirectory. * testsuite/systemtap.apps/stap-tcl.sh: New file to build tcl. * testsuite/systemtap.apps/stap-tcl.stp: New file to test tcl. * testsuite/systemtap.apps/tcl.exp: New simplified test driver. * dtrace.in: Disable STAP_HAS_SEMAPHORES as they don't work on shlibs yet. * includes/sys/sdt.h (STAP_SEMAPHORE): Include __builtin_expect for unlikely.
| * regen sample indexes with plimit.stpFrank Ch. Eigler2009-10-304-0/+20
| |
| * plimit: Add plimit.stp sample scriptEugene Teo2009-10-302-0/+85
| |
| * 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.
| * Fix syscall testsuite bugs.David Smith2009-10-299-17/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.syscall/test.tcl: Substitute '[[[[' and ']]]]' for '(' and ')'. This allows us to get unquoted parens. * testsuite/systemtap.syscall/test-debug.tcl: Matches substitute logic of test.tcl. * testsuite/systemtap.syscall/README: Document '[[[[' and ']]]]'. * testsuite/systemtap.syscall/chmod.c: Handle optional O_LARGEFILE flag in open calls. * testsuite/systemtap.syscall/dir.c: Ditto. * testsuite/systemtap.syscall/mmap.c: Ditto. * testsuite/systemtap.syscall/openclose.c: Ditto. * testsuite/systemtap.syscall/readwrite.c: Ditto. * testsuite/systemtap.syscall/stat.c: Ditto.
| * A new testcase for tty tapsetBreno Leitão2009-10-291-0/+51
| | | | | | | | | | This is a basic test to assure that the tty tapset is working compiling and working properly
| * Properly close the spawn of the pr10854 testcaseJosh Stone2009-10-271-0/+1
| |
| * PR10854 cont'd: Add a testcase for the reproducerJosh Stone2009-10-272-0/+51
| |
| * PR 10822 fixed by waiting for the procfs file.David Smith2009-10-221-1/+19
| | | | | | | | | | * testsuite/systemtap.base/onoffprobe.exp: Wait for up to 10 seconds for the procfs file to be created.
| * PR10750: Enforce a reasonable limit on # of varargsJosh Stone2009-10-212-0/+19
| | | | | | | | | | | | | | | | | | | | If we leave the number of args unbounded, then an excessively-sized printf could cause a kernel stack overflow. I've arbitrarily chosen 32 as our new maximum. * translate.cxx (c_unparser::visit_print_format): Throw if >32 args. * testsuite/transko/varargs.stp: Assert that 33 args aren't allowed. * testsuite/transok/varargs.stp: Assert that 32 args are ok.
| * Added testsuite to test xulrunner sdt markers.Stan Cox2009-10-204-3/+136
| | | | | | | | | | | | | | xulrunner.exp: New testsuite, modelled after mysql.exp. mysql.exp (stap-mysql.sh): Use installed stap. postgres.exp (stap-mysql.sh): Use installed stap. tcl.exp (stap-mysql.sh): Use installed stap.
| * tcl.exp path fix.Stan Cox2009-10-201-1/+1
| | | | | | | | tcl.exp (run_tests): Fix stap path.
| * Add testsuite for tcl sdt markers.Stan Cox2009-10-191-0/+165
| | | | | | | | | | dtrace.in (provider::generate): Set enabled to true until .so is resolved. tcl.exp: New testsuite for tcl sdt markers modelled after mysql.
| * PR10799: warn on possibly uintended local-vs-global namespace collisionFrank Ch. Eigler2009-10-192-6/+6
| | | | | | | | | | | | | | | | | | * elaborate.cxx (find_var): Take extra token parameter. Look for cross-file global variable resolution, signal a warning. * testsuite/systemtap.examples/io/traceio2.stp: Fix it. * testsuite/systemtap.syscall/sys.stp: Fix it. * NEWS: Document it.
* | Infrastructure for new stap-server initscript.Dave Brolley2009-10-203-980/+671
|/
* Fix transok/tval-opt.stp testcase. Pick diffent function and non-empty block.Mark Wielaard2009-10-151-1/+2
| | | | | | | | | | | | This testcase succeeded just because the value being set couldn't be found. So the error message being compared was the same. Set -o pipefail to catch that case. On vta compiled kernels it failed because the optimizer turned { statement } into statement. So pick a function and argument which location can always be found and add an extra 'next' statement so the block isn't folded. * testsuite/transok/tval-opt.stp: Set -o pipefail. Add 'next' to make sure block isn't empty. Use "do_filp_open" and "mode".
* Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtapWenji Huang2009-10-141-0/+4
|\
| * Add buildok tests for sprint[ln](@hist_*)Josh Stone2009-10-131-0/+4
| |
* | PR10746: update test cases related to probe process.*Wenji Huang2009-10-144-7/+20
|/ | | | | | | | * testsuite/semok/utrace01.stp: Switch by CONFIG_UTRACE. * testsuite/systemtap.base/bz10294.stp: Ditto. * testsuite/systemtap.base/bz6905.stp: Ditto. * testsuite/systemtap.base/statement.exp: Mark untested if non-utrace kernel.
* Let semko/utrace.stp fail even with CONFIG_UTRACE=yJosh Stone2009-10-131-1/+1
|
* Add a test for CONFIG_FOO wildcardsJosh Stone2009-10-131-0/+25
|
* Add task_time tapset, functions to query time resource usage of current task.Mark Wielaard2009-10-091-0/+8
| | | | | | | * tapset/task_time.stp: New tapset. * testsuite/buildok/task_test.stp: Add new task_time functions. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add new section on Task Time Tapset. Include tapset/task_time.stp.
* PR10746: improve error message on utrace-less kernelsFrank Ch. Eigler2009-10-081-0/+3
| | | | | | | * tapset-itrace.exp (itrace_derived_probe ctor): Fail if !CONFIG_UTRACE. * tapset-utrace.exp (utrace_derived_probe ctor): Fail if !CONFIG_UTRACE. * tapsets.cxx (dwarf_builder::build): Fail process.* if !CONFIG_UTRACE. * testsuite/semko/utrace.stp: New test.
* examples: regen indexesFrank Ch. Eigler2009-10-085-2/+37
|
* examples: add mbrwatch sampleFrank Ch. Eigler2009-10-082-0/+15
|
* testsuite: robustify check_* invocation of examples metaFrank Ch. Eigler2009-10-0815-18/+22
| | | | | | | | | testsuite/systemtap.examples/ * check.exp (extract_tag): Log extracted tags. Tolerate embedded '$'. (run_command): Pass through commands to sh -c without eval quoting. * README: Document "sh -c"-ness of check_* tags. * *.meta: Fix quoting, add a few check_support predicates.
* This script (tcp_trace) can be used to trace tcp connection parameters and ↵David J. Wilder2009-10-087-0/+817
| | | | state changes. This work was original inspired by Stephen Hemminger's TCP cwnd snooper (net/ipv4/tcp_probe.c). Tcp_trace is a helpful tool for troubleshooting connection performance issues.
* PR10702: preprocessor conditional for kernel CONFIG_fooFrank Ch. Eigler2009-10-082-0/+6
| | | | | | | | * session.h (kernel_config[]): New session field. * main.cxx (parse_kernel_config): Populate it. * parse.cxx (eval_comparison): Use it. * testsuite/buildok/utrace.stp, testsuite/parseok/kconfig.stp: New tests. * NEWS, stap.1.in, doc/langref.tex: Mention it.
* Add proc_mem tapset, functions to query memory usage of the current process.Mark Wielaard2009-10-061-0/+13
| | | | | | | * tapset/proc_mem.stp: New tapset. * testsuite/buildok/proc_mem.stp * doc/SystemTap_Tapset_Reference/tapsets.tmpl (memory_stp): Include tapset/proc_mem.stp.
* PR10726 remove testcase workaround.Mark Wielaard2009-10-061-3/+1
| | | | | * testsuite/systemtap.base/const_value.c: Allow inlining since PR10726 was fixed.