summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
* | | context tapset: sid() function to return task session leader pidMalte Nuhn2009-05-081-0/+1
| | |
* | | fix permissions of some testsuite filesFrank Ch. Eigler2009-05-073-0/+0
| | | | | | | | | | | | Reported-By: Petr Muller <pmuller@redhat.com>
* | | Problems using server scripts when not on PATH.Dave Brolley2009-05-061-0/+1
| | | | | | | | | | | | HAVE_NSS related compile time warning.
* | | PR10102: tolerate the failure related to optional probeWenji Huang2009-05-051-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch will make stap silently accept the failure related to optional probe. It puts try/catch around find_and_build which can cover most probe types. The specific treatment for dwarf_derived_probe in commit ed82b7c902d6a2e26452ec51c9cdb9665dbf9e97 is reverted.
* | | Run autoreconfEugeniy Meshcheryakov2009-05-053-537/+736
| | |
* | | Fix arguments to mktemp with less than 6 X'sEugeniy Meshcheryakov2009-05-0513-13/+13
| | |
* | | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-05-052-8/+3
|\ \ \
| * | | Revert "Fix kprobes.exp."Ananth N Mavinakayanahalli2009-05-051-6/+1
| | | | | | | | | | | | | | | | This reverts commit 97d1fa6e24d8d4e8ceefc62f0d4a7f93a18e4125.
| * | | Tweak alternatives.expWenji Huang2009-05-041-2/+2
| | | |
* | | | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-05-0434-267/+273
|\| | |
| * | | Fix kprobes.exp.Ananth N Mavinakayanahalli2009-05-041-1/+6
| | | | | | | | | | | | | | | | Patch from Prerna Saxena.
| * | | systemtap.syscall tests do use + and * as metachars.Mark Wielaard2009-05-031-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + and * are metacharacters, but should always be used as metacharacters in the expressions, don't escape them. * testsuite/systemtap.syscall/test.tcl (run_one_test): Remove escaping of + and *.
| * | | Fix funtion -> function typo in alternatives.exp.Mark Wielaard2009-05-021-1/+1
| | | | | | | | | | | | | | | | * testsuite/systemtap.base/alternatives.exp (local1_script): Fix typo.
| * | | syscalls testsuite: use different escape sequenceFrank Ch. Eigler2009-04-3031-256/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The syscall testsuite uses embedded "// TEXT" markers in the .c files to designate expected output, kind of like the "dg-" bunch in the gcc test suite. Unfortunately, "//" is not a unique prefix to systemtap tests, and in particular it can occur in the system headers that will be picked up with the "gcc -E -C ..." invocation in test.tcl. So let's switch to "//staptest//". test.tcl is also modified to escape a few more mischevious regexp metacharacters that might sneak past.
| * | | whitespace tweak in tcl codeFrank Ch. Eigler2009-04-301-9/+3
| | | |
* | | | Module signing and verification using a separate file for the module signature.Dave Brolley2009-05-044-732/+535
|/ / /
* | | PR10007: Avoid probing syscall entry points in the testsuite.Ananth N Mavinakayanahalli2009-04-3019-35/+35
| | | | | | | | | | | | While there, fix minor issues with the s390x syscall tapset.
* | | Use sockaddr instead of timeval in @cast testJosh Stone2009-04-292-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | Using timeval had problems on big-endian multi-arch platforms (ppc64), because the user tv_sec used in the @cast didn't match the kernel tv_sec used to provide a pointer. Hopefully reading from a sockaddr should be more robust, as that type doesn't appear to need any compat wrappers for multi-archs.
* | | PR 6930: fix flightrec2.exp to handle filesize correctlyMasami Hiramatsu2009-04-282-11/+10
| | | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.base/flightrec2.exp: Use stat instead of ls for checking file size. * testsuite/systemtap.base/flightrec2.stp: Increase timer interval for some architecture on which the minimum interval is more than 1 ms (e.g. xen)
* | | PR10102: tolerate mismatched optional probeWenji Huang2009-04-272-0/+15
| | | | | | | | | | | | | | | | | | * elaborate.cxx: Early return for mismatched optional probe. * testsuite/systemtap.base/optionalprobe.exp: New test case. * testsuite/systemtap.base/optionalprobe.stp: Ditto.
* | | traceio: add human-readable byte-count outputKey Meyer2009-04-271-3/+18
| | |
* | | traceio sample: tolerate more than a few hundred processesKey Meyer2009-04-271-10/+8
| | | | | | | | | | | | ... rather than exiting with MAXACTIONS exceeded
* | | PR10099: Extend %M directive to support hexdumping large buffersWenji Huang2009-04-261-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch will make %M directive dump the variable width buffer in hex format instead of returning uint64_t number as before. * runtime/vsprintf.c: Modify %M directive. * stap.1.in: Update description. * testsuite/systemtap.printf/memory1.stp: Add test case.
* | | Add function of returning the char in given position of stringWenji Huang2009-04-262-1/+2
| | | | | | | | | | | | | | | | | | * tapset/string.stp: New function stringat. * testsuite/systemtap.printf/char1.exp: Update test case. * testsuite/systemtap.printf/char1.stp: Ditto.
* | | fix kprobe.* probes so they don't break -p4 if script also has kernel.* probesFrank Ch. Eigler2009-04-261-0/+4
| | | | | | | | | | | | | | | * tapsets.cxx (kprobe_derived_probe): Use enter_k[ret]probe>>2<<_probe. * testsuite/buildok/thirtyone.stp: Test this.
* | | Don't terminate when a dwarfless kprobe failsJosh Stone2009-04-241-9/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All of our other kprobe types will let the script continue after a registration failure, as per PR6749. The dwarfless kprobes should be no exception. Also, the way they were exiting was causing an unclean shutdown, so I added tests to badkprobe.exp to make sure that cleanup is always allowed to run.
* | | Version bumps for 0.9.7 releaseJosh Stone2009-04-232-11/+11
| | |
* | | Version bumps for 0.9.6 releaseJosh Stone2009-04-232-11/+11
| | |
* | | Tweak kprobes test caseWenji Huang2009-04-232-1/+6
| | | | | | | | | | | | | | | * testsuite/systemtap.base/kprobes.exp: Add expected message. * testsuite/systemtap.base/kprobes.stp: Ditto.
* | | Modify the output of kprobes test.Wenji Huang2009-04-221-3/+2
| | | | | | | | | | | | * testsuite/systemtap.base/kprobes.stp: Update text.
* | | PR 9821: Add a testcase for strftimeMasami Hiramatsu2009-04-221-0/+49
| | | | | | | | | | | | * testsuite/systemtap.base/strftime.exp: New test case for strftime.
* | | PR 6930: Add testcases for on-file flight recorderMasami Hiramatsu2009-04-223-0/+117
| | | | | | | | | | | | | | | | | | * testsuite/systemtap.base/flightrec1.exp: New test case for background mode. * testsuite/systemtap.base/flightrec2.exp: New test case for file switching. * testsuite/systemtap.base/flightrec2.stp: Test script for file switching.
* | | Correct sigmon.meta example title and name.Sunzen Wang2009-04-225-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.examples/process/sigmon.meta: Correct title and name. * testsuite/systemtap.examples/index.html: Regenerated. * testsuite/systemtap.examples/index.txt: Likewise. * testsuite/systemtap.examples/keyword-index.html: Likewise. * testsuite/systemtap.examples/keyword-index.txt: Likewise.
* | | Refine the @cast-with-header syntaxJosh Stone2009-04-212-4/+4
| | | | | | | | | | | | | | | | | | | | | The special syntax to generate a module for type information is now: - "kernel<path/to/header.h>" to use the kernel's build environment - "<path/to/header.h>" to use no special build environment, and so use gcc's default parameters only (for user mode).
* | | Set MAXSTRINGLEN to 133 for uprobes_ustack.exp test on 64 bit.Mark Wielaard2009-04-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Needs extra space since on 64bit the last ubacktrace string is 7 entries * (16 hex + 2 for 0x + 1 space) = 133 chars. Default MAXSTRINGLEN is 128 chars. * testsuite/systemtap.base/uprobes_ustack.exp: Add -DMAXSTRINGLEN.
* | | Merge branch 'user_unwind'Mark Wielaard2009-04-214-0/+140
|\ \ \
| * | | Add uprobes_ustack testcase and bug fixlet.Mark Wielaard2009-04-212-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | * runtime/stack.c (_stp_stack_print): Use _stp_usymbol_print when tsk given. * testsuite/systemtap.base/uprobes_ustack.exp: New test file. * testsuite/systemtap.base/uprobes_ustack.stp: Likewise.
| * | | Add ubacktrace(), print_ustack() and print_ubacktrace().Mark Wielaard2009-04-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/sym.c (_stp_usymbol_print): New function. * tapset/ucontext-unwind.stp (print_ubacktrace): New tapset function. (ubacktrace): Likewise. * tapset/ucontext-symbols.stp (print_ustack): Likewise. * testsuite/buildok/ustack.stp: New test for above three functions.
| * | | Add comment to try -d kernel -d systemtap_test_module1 on backtrace.tcl test.Mark Wielaard2009-04-201-0/+1
| | | |
* | | | Updated utrace tests.David Smith2009-04-2111-32/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-21 David Smith <dsmith@redhat.com> * testsuite/semok/utrace01.stp: New test. * testsuite/parseko/utrace01.stp: Updated test. * testsuite/semko/utrace03.stp: Ditto. * testsuite/semko/utrace04.stp: Ditto. * testsuite/semko/utrace01.stp: Deleted unneeded test. * testsuite/semko/utrace08.stp: Ditto. * testsuite/semko/utrace09.stp: Ditto. * testsuite/semko/utrace10.stp: Ditto. * testsuite/semko/utrace11.stp: Ditto. * testsuite/semko/utrace12.stp: Ditto. * testsuite/semko/utrace13.stp: Ditto.
* | | | Correctly handle $syscall in process(PID_OR_PATH).syscall.return probes.David Smith2009-04-211-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-21 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe::utrace_derived_probe): If during target-variable-expanding the probe, we added a new block or probe, add them. (utrace_var_expanding_visitor::visit_target_symbol_cached): New function to cache target variables in a generated syscall probe to use in syscall.return probes. (utrace_var_expanding_visitor::visit_target_symbol_context): In a syscall.return probe, you can't access $syscall. So use visit_target_symbol_cached() to cache the value for use here. * testsuite/systemtap.base/utrace_syscall_args.stp: Test use of $syscall in syscall.return probes.
* | | | Add testcases for kprobe.function familyAnanth N Mavinakayanahalli2009-04-212-0/+23
| | | |
* | | | Make latencytap.stp compile on i386.Mark Wielaard2009-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Still needs a .meta file to catch any breakage in the future. * testsuite/systemtap.examples/profiling/latencytap.stp (task_backtrace): Cast task to unsigned long first.
* | | | Merge branch 'cast_header'Josh Stone2009-04-203-2/+29
|\ \ \ \
| * | | | Add tests for @cast-generated modulesJosh Stone2009-04-203-2/+29
| |/ / /
* | | | PR10078: uretprobes on functions returning structs/unionsJim Keniston2009-04-203-0/+61
| | | | | | | | | | | | | | | | | | | | arch_predict_sp_at_ret() for x86_32 now accommodates ret $4. Added bz10078 regression test.
* | | | fix a bug with %% in format stringsTim Moore2009-04-203-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * translate.cxx (c_unparser::visit_print_format): Always use _stp_printf if a format string contains "%%". Previously a format string with no arguments would always be printed with _stp_print. * testsuite/systemtap.printf/basic6.stp: New test for %% in format strings. * testsuite/systemtap.printf/basic6.exp: test driver * testsuite/systemtap.examples/grapher.stp: Remove workaround for "%%" literal problem.
* | | | Merge branch 'timoore/grapher'Tim Moore2009-04-201-0/+32
|\ \ \ \ | |/ / / |/| | |
| * | | graphing widget and test harnessTim Moore2009-04-151-0/+32
| | | |
* | | | Make dropwatch.stp executable and have correct interpreter.William Cohen2009-04-171-1/+1
| | | |