summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| | * PR11038 Trailing semicolon as null-statement confusing.Mark Wielaard2009-12-211-0/+18
| | | | | | | | | | | | | | | | | | * parse.cxx (parser::parse_statement): Squash semicolon after non-block-like statements. * testsuite/buildok/semicolon.stp: New test.
| * | Make sure we log server activity when testing using a server.Dave Brolley2009-12-211-1/+10
| | |
| * | Get PATH correct for fidning libexec tools for installcheck.Dave Brolley2009-12-211-4/+4
| | |
| * | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-12-215-12/+75
| |\|
| | * Merge remote branch 'origin/master'Tim Moore2009-12-213-0/+62
| | |\
| | | * Tracepoint based tapset for memory subsystem.Rajasekhar Duddu2009-12-213-0/+62
| | | |
| * | | PR 10247, 10276, 10905: Move remaining client/server tools to libexec.Dave Brolley2009-12-211-1/+4
| | | |
| * | | PR 10247 10276 10905: Infrastructure for moving underlying client/server ↵Dave Brolley2009-12-181-1/+0
| | | | | | | | | | | | | | | | tools to libexec.
* | | | don't assume buffer passed to pty_write is null terminatedTim Moore2009-12-231-7/+3
| | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.examples/general/grapher.stp: Use kernel_char instead of kernel_string to dig characters out of buffer.
* | | | Tracepoint based tapset for memory subsystem.Rajasekhar Duddu2009-12-223-0/+62
| |/ / |/| |
* | | conditionalize pty_write count variable on kernel versionTim Moore2009-12-211-11/+12
| |/ |/| | | | | | | * testsuite/systemtap.examples/general/grapher.stp: Conditionalize pty_write count variable on kernel version.
* | Remove externalvar.exp .exe and .so after test done.Mark Wielaard2009-12-191-1/+1
|/
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-12-176-0/+198
|\
| * support for a brief backtrace formatTim Moore2009-12-173-0/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This only prints symbol+offset, or an address if the symbol isn't known. * runtime/runtime.h (SYM_VERBOSE_NO, SYM_VERBOSE_FULL, SYM_VERBOSE_BRIEF): new constants * runtime/stack.c (_stp_stack_print): support brief format * runtime/sym.c (_stp_func_print): ditto * tapset/ucontext-unwind.stp (print_ubacktrace_brief): new function * testsuite/systemtap.context/fib.c: new test program * testsuite/systemtap.context/fib.stp: new test * testsuite/systemtap.context/fib.exp: new test
| * backtrace through uprobes trampoline.Tim Moore2009-12-171-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Only works in uretprobes for the moment. * runtime/stack-x86_64.c (__stp_stack_print): Rewrite trampoline PC addresses if necessary. * runtime/stack-i386.c (__stp_stack_print): ditto * runtime/stack-arm.c (__stp_stack_print): Add extra argument * runtime/stack-ppc.c (__stp_stack_print): ditto * runtime/stack-s390.c (__stp_stack_print): ditto * runtime/stack.c (_stap_stack_print): call __stp_stack_print with uretprobe_instance. * testsuite/systemtap.context/uprobe_backtrace.stp: new test
| * set the IP in return probes to the returned-to instructionTim Moore2009-12-162-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's easily available in kretprobes and uretprobes and is consistent with the rest of the program state. * translate.cxx (emit_common_header) : add uretprobe_instance to context. * tapsets.cxx (common_probe_entryfn_prologue): Initialize ri in context to 0. (dwarf_derived_probe_group::emit_module_decls): Change IP to return address in kretprobes. (uprobe_derived_probe_group::emit_module_decls): enter_uretprobe_probe: set ri (uretprobe_instance) in context. Change IP to return address in uretprobes. Don't emit uprobe include and #define * runtime/runtime.h : Add includes and #define for uprobes. * runtime/stack.c (_stp_stack_print, _stp_stack_snprint): Add extra argument for uretprobe_instance. * tapset/context-unwind.stp (print_backtrace, backtrace): Pass NULL for uretprobe_instance to _stp_stack_print. * tapset/ucontext-unwind.stp (print_ubacktrace, ubacktrace): pass uretprobe_instance to _stp_stack_print * testsuite/systemtap.context/uprobe_uaddr.exp : new test for uaddr in function probes * testsuite/systemtap.context/uprobe_uaddr.stp : new file
* | PR 10889: Reorganize client/server man pages. Document --unprivileged.Dave Brolley2009-12-173-984/+675
|/
* Use env(SYSTEMTAP_TESTAPPS) for all systemtap.appsStan Cox2009-12-114-8/+19
| | | | | | | | mysql.exp: Use env(SYSTEMTAP_TESTAPPS). (mysqlrelease): Update and check for download failure. postgres.exp: Use env(SYSTEMTAP_TESTAPPS). stap-tcl.stp: Use .library("library").mark("mark"). tcl.exp: Likewise.
* Add .library("lib").mark("mark") and use it for .mark semaphores.Stan Cox2009-12-081-38/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | tapset-utrace.cxx (TOK_LIBRARY): New. (utrace_derived_probe::utrace_derived_probe): Add library and has_library. (utrace_builder::build): Handle library. (utrace_derived_probe_group::emit_probe_decl): Add sdt_sem_offset to emitted stap_utrace_probes. Add stap_task_finder_target mmap_callback for handling shared library. Handle sdt_sem_offset in emitted_stp_utrace_probe_cb. Add stap_utrace_mmap_found. (register_tapset_utrace): Handle .library tapset-utrace.cxx (TOK_LIBRARY): New. (base_query::base_query): Add path and has_library. (dwarf_derived_probe::dwarf_derived_probe) Likewise. (dwarf_derived_probe::register_patterns): Handle .library (sdt_query::convert_location): Likewise. (dwarf_builder::build): Likewise. (uprobe_derived_probe_group::emit_module_decls): Emit sdt_sem_address. Add sdt_sem_offset to emitted stap_uprobe_spec. Add offset and vm_flags to signature of stap_uprobe_change_plus, and handle sdt_sem_offset. Allow writeable segments in emitted stap_uprobe_mmap_found. sdt_misc.exp: Test .library util.cxx (find_executable): Add env_path to sig and use it in getenv. util.h (find_executable): Likewise. Make "PATH" the default. dtrace.in (provider): Turn on semaphores. sdt.h: Likewise.
* Revert "PR 10641 fixed by checking module name in unprivileged mode."David Smith2009-12-082-12/+0
| | | | | | | This reverts commit b2ea60606801aa9bf243f22318ac4bd8a25094fe. * main.cxx (checkOptions): Remove unprivileged mode module name check. * testsuite/parseko/cmdline05.stp: Delete unneeded testcase. * testsuite/parseok/cmdline03.stp: Ditto.
* Add dtrace -I support.Mark Wielaard2009-12-081-13/+59
| | | | | | | | dtrace -I is used to pass through include paths to cpp when run. Thanks to David Malcolm <dmalcolm@redhat.com> for python coding and testing. * dtrace.in: Add -I support. * testsuite/systemtap.base/dtrace.exp: Add testcases for -C -I and -G -I.
* PR 10641 fixed by checking module name in unprivileged mode.David Smith2009-12-072-0/+12
| | | | | | | * main.cxx (checkOptions): If in unprivileged mode, make sure module name starts with 'stap_'. * testsuite/parseko/cmdline05.stp: New testcase. * testsuite/parseok/cmdline03.stp: New testcase.
* Small compile server shutdown fix.David Smith2009-12-071-1/+3
| | | | | * testsuite/lib/systemtap.exp (shutdown_server): Only remove the temporary stap script if it exists.
* Fix regression introduced by commit 379c585Wenji Huang2009-12-071-0/+7
|
* tweak multiline hover text to have proper interline spacingTim Moore2009-12-041-1/+3
| | | | | | | | * grapher/CairoWidget.cxx (CairoTextBox::draw): Use font information to caculate legible spacing. Also change the font to something more readable. * testsuite/systemtap.examples/general/grapher.stp: Put carriage returns in the right spots.
* support multiline data output from scripts run under the grapherTim Moore2009-12-041-5/+13
| | | | | | | | | | | | | | This is accompanied by support for multiline output in hover text. * grapher/StapParser.cxx (ioCallback): Read data 'til the end of line character, not just '\n'. Be careful to use I/O functions that don't treat '\n' specially. * grapher/StapParser.hxx: ditto * grapher/CairoWidget.cxx (CairoTextBox::draw): Perform line breaks for hover text. * testsuite/systemtap.examples/general/grapher.stp: Do multiline output of keyboard events. Also, fix longstanding breaking in the pty probe.
* Make tapset and tests compatible with old kernelWenji Huang2009-12-024-17/+23
| | | | | | | | | | | | | * tapset/ioscheduler.stp : Make probe optional. * tapset/irq.stp : Ditto. * tapset/scheduler.stp : Ditto. * tapset/tcpmib.stp : Ditto. * tapset/linuxmib.stp : Switch variable by version. * tapset/tty.stp : Ditto. * testsuite/buildok/irq.stp : Make probe test optional. * testsuite/buildok/tty.stp : Ditto. * testsuite/systemtap.examples/network/netdev.stp : Ditto. * testsuite/buildok/tcpmib-all-probes.stp : Add embedded functions.
* Regenerate autotools files using autoreconf to pick up latest Makefile.am ↵Dave Brolley2009-12-013-675/+984
| | | | changes.
* - Allow root, the owner of the uprobes build directory and the members of theDave Brolley2009-11-251-10/+7
| | | | | | | | | | group owner of the uprobes buld directory to build uprobes.ko. - When building uprobes.ko, make all generated files writable by the group owner of the uprobes build directory. - Don't change the group owner of the uprobes build directory during 'make install'
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-2343-169/+474
|\ | | | | | | | | | | Conflicts: configure
| * Tweak cu-decl testWenji Huang2009-11-232-4/+6
| | | | | | | | | | * testsuite/systemtap.base/cu-decl.exp: Check utrace. * testsuite/lib/stap_compile.exp: Make catch after wait.
| * 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
| |