summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* PR10739 testcase. Split const_value test in two. Absolute const addr fails.Mark Wielaard2009-10-064-7/+68
| | | | | | | | * testsuite/systemtap.base/const_value.exp: Handle both const_value blocks and address separately. XFAIL second test as PR10739. * testsuite/systemtap.base/const_value.stp: Only query baz const value. * testsuite/systemtap.base/const_value_func.c: New test for bar address. * testsuite/systemtap.base/const_value_func.stp: Likewise.
* Add tescase for DW_AT_const_value location descriptions.Mark Wielaard2009-10-053-0/+71
| | | | | | * testsuite/systemtap.base/const_value.c: New test. * testsuite/systemtap.base/const_value.exp: Likewise. * testsuite/systemtap.base/const_value.stp: Likewise.
* Updates samples index for sched_switchJosh Stone2009-10-026-3/+49
|
* Scheduler Tapset based on kernel tracepointsKiran Prakesh2009-10-023-0/+127
| | | | | | | | | This patch adds kernel tracepoints based probes to the scheduler tapset along with the testcase, scheduler-test-tracepoints.stp and an example script, sched_switch.stp. Signed-off-by: Kiran Prakash <kiran@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* PR10678 vta-gcc: module debuginfo: relocation refers to undefined symbolMark Wielaard2009-10-021-0/+4
| | | | | | | | | | | | | | | | | libdwfl tries to resolve all relocations in a module debuginfo file and if it cannot find a symbol used in a relocation it will fail when dwfl_module_getdwarf() is called. So we must make sure all possible dependencies of the module are also in the dwfl. We do this by trying to find and parse the modules.dep file and insert all dependencies into the dwfl. * setupdwfl.cxx (elfutils_kernel_path): Lift from setup_dwfl_kernel and make static. (is_comma_dash): New function. (modname_from_path): Likewise. (setup_mod_deps): Likewise. (setup_dwfl_report_kernel_p): Call setup_mod_deps(). * testsuite/buildok/pr10678.stp: New test.
* Added timeouts to test 15 & 16.David Smith2009-09-291-0/+2
|
* Better cleanup.David Smith2009-09-281-1/+2
| | | | * testsuite/systemtap.base/cmd_parse.exp: Remove temporary module.
* Purge warnings from buildok testsuite.Mark Wielaard2009-09-2522-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/buildok/fortysix.stp: Add -w. * testsuite/buildok/fortytwo.stp: Likewise. * testsuite/buildok/four.stp: Avoid empty begin. * testsuite/buildok/memory-all-probes.stp: Add -w. * testsuite/buildok/nfsd-all-probes.stp: Likewise. * testsuite/buildok/nine.stp: Likewise. * testsuite/buildok/one.stp: Use q. * testsuite/buildok/printf.stp: Remove unused foo(), printf x. * testsuite/buildok/process-all-probes.stp: Add -w. * testsuite/buildok/scheduler-all-probes.stp: Likewise. * testsuite/buildok/scsi-all-probes.stp: Likewise. * testsuite/buildok/signal-all-probes.stp: Likewise. * testsuite/buildok/sixteen.stp: log in foo(). * testsuite/buildok/socket-all-probes.stp: Add -w. * testsuite/buildok/stat_insert.stp: Declare x, y global. * testsuite/buildok/syscall.stp: Add -w. * testsuite/buildok/tcp-all-probes.stp: Likewise. * testsuite/buildok/thirtyone.stp: Likewise. * testsuite/buildok/twentyeight.stp: log absolute. * testsuite/buildok/twentyfour.stp: Add -w. * testsuite/buildok/udp-all-probes.stp: Likewise. * testsuite/buildok/vfs-all-probes.stp: Likewise.
* Added a basic ring_buffer transport test.David Smith2009-09-241-0/+32
| | | | * testsuite/systemtap.printf/ring_buffer.exp: New test.
* PR10632: simplify randint() implementationFrank Ch. Eigler2009-09-231-27/+5
| | | | | | | | | * tapset/random.stp (randint): Make it 1-arity (imply min=0). Document with kerneldoc. * doc/Systemtap_Tapset_Reference/tapsets.tmpl: Extract the docs. * runtime/arith.c (_stp_random_pm_u): Rename without _pm. (_stp_random_pm): Rewrite in terms of ..._u. * testsuite/random.stp: Adapt & simplify.
* PR10632: tapset: randint() function + testsRoland Grunberg2009-09-232-0/+44
|
* PR10390: ftrace() tapset functionFrank Ch. Eigler2009-09-231-0/+11
| | | | | | | | | | | * tapset/logging.stp (ftrace): New function. (*): Add kerneldoc to other functions. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Process logging.stp. * stapfuncs.3stap.in: Remove "LOGGING" section, now redundant. * runtime/autoconf-trace-printk.c: New autoconf test. * buildrun.cxx (compile_pass): Build it. * NEWS: Mention it. * testsuite/buildok/logging.stp: Test it.
* Version bumps for the 1.0 releaseJosh Stone2009-09-224-681/+990
|
* Test all context related functions in one test.Mark Wielaard2009-09-1910-74/+10
| | | | | | | | | Saves a couple of seconds per individual test by doing them all in one. * testsuite/buildok/context_test.stp: Incorporate: modname.stp, probefunc.stp, probemod.stp, symdata.stp, symname.stp, uaddr.stp, ustack.stp, usymdata.stp, usymname.stp. Delete individual tests.
* Use less idle time in testsuite.Mark Wielaard2009-09-198-27/+30
| | | | | | | | | | | | | | | | A lot of tests wait, sleep or use a timer for multiple seconds when that is not necessary. Reduce the time waited so save test time. * testsuite/systemtap.base/backtrace.stp: Exit after 100ms. * testsuite/systemtap.base/badkprobe.exp: Likewise. * testsuite/systemtap.base/global_end.stp: Likewise. * testsuite/systemtap.base/itrace.exp: Wait 1 sec instead of 5 for each test. * testsuite/systemtap.base/maxactive.exp: Likewise. * testsuite/systemtap.base/onoffprobe.exp: Match and use modname, so build script can be cached. * testsuite/systemtap.base/onoffprobe.stp: Wait miliseconds instead of seconds in each alias. Output module_name. * testsuite/systemtap.base/poll_map.stp: Start after 100ms.