summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* ttyspy: struct pid->number[0]->nr arrived with 2.6.24 not laterFrank Ch. Eigler2009-06-061-1/+1
|
* ttyspy.stp: new sample scriptFrank Ch. Eigler2009-06-066-1/+118
|
* Better sdt.exp test cleanup.David Smith2009-06-011-1/+2
| | | | * testsuite/systemtap.base/sdt.exp: Better cleanup.
* More testsuite tweaks to make it work with SYSCALL_WRAPPERSAnanth N Mavinakayanahalli2009-05-285-9/+9
|
* Fix another kernel/kprobe.function conflictJosh Stone2009-05-221-0/+1
| | | | | | | | | | Both kernel.function and kprobe.function were defining a global array stap_unreg_kprobes to use in bulk kprobes unregistration. The compiler allowed the duplicate definition as long as they were the same size, as it was when exercised in buildok/thirtyone. kprobe.function now uses a separate stap_unreg_kprobes2, and the testcase is modified to produce an imbalanced number of probes.
* PR10190: Suppress warnings for optional kprobesJosh Stone2009-05-221-1/+14
| | | | | | When a kernel.function or kprobe.function fails in registration, we usually print a WARNING and move on. With this patch, kprobes that have the optional '?' flag will not print any WARNING.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapWilliam Cohen2009-05-203-29/+26
|\
| * PR10177: init/kill time in sleepy context onlyJosh Stone2009-05-203-29/+26
| | | | | | | | | | | | | | | | | | | | | | | | Previously, _stp_init_time and _stp_kill_time were being called from begin/end/error probes, which will run with preemption disabled. The BUG reported on RT kernels showed that cpufreq_unregister_notifier can end up sleeping, which violates our preemption block. This patch moves the init/kill into systemtap_module_init/exit, where it is safe to sleep. The code maintains a new predicate with the define STAP_NEED_GETTIMEOFDAY, so we don't still incur any timer overhead if it's not used.
* | Add the schedtimes.stp and associated schedtimes.meta files to the examples.William Cohen2009-05-206-0/+232
|/
* PR10091 fixes.David Smith2009-05-181-30/+141
| | | | | | | | * runtime/itrace.c (usr_itrace_report_signal): Add a workaround for ppc-specific problem. * testsuite/systemtap.base/itrace.exp: Improved tests. Improved test completeness. Will also no longer give fails for systems that don't support single or block step (will give xfails instead).
* Merge branch 'tapsets-cleanup'Josh Stone2009-05-153-537/+736
|\
| * Move dfwlpp into its own fileJosh Stone2009-05-123-537/+736
| | | | | | | | | | It's not a terribly clean split, but moving it helps reveals some of the knots that need to be untangled.
* | Mark all testsuite/parseko/cmdline21.stp as executable.Mark Wielaard2009-05-155-0/+0
| |
* | flightrec3.exp uses cpus as array, so rename skipped.exp cpus var to nr_cpus.Mark Wielaard2009-05-151-3/+3
| | | | | | | | | | | | | | Works around a make installcheck issue that resulted in skipped.exp failing because of "ERROR: can't set "cpus": variable is array" * testsuite/systemtap.base/skipped.exp: Renamed cpus variable to nr_cpus.
* | Set explicit longer, 60 second, timeout for alternatives.exp.Mark Wielaard2009-05-151-2/+3
| | | | | | | | | | | | | | | | In an make installcheck run this is the first script that goes through the full kernel debuginfo which might take a bit. * testsuite/systemtap.base/alternatives.exp: Set timeout to 60, verbose log EOF or TIMEOUT when they occur.
* | PR 6930: Add additional testcases for flight recorder modeKeiichi KII2009-05-137-0/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/parseko/cmdline17.stp: command line check - bad combination with -D and -L * testsuite/parseko/cmdline18.stp: command line check - bad combination with -D and -d * testsuite/parseko/cmdline19.stp: command line check - bad combination with -D and -c * testsuite/parseko/cmdline20.stp: command line check - need output file with -D * testsuite/parseko/cmdline21.stp: command line check - need output file with -S * testsuite/systemtap.base/flightrec3.exp: New test case for file switching with bulk mode * testsuite/systemtap.base/flightrec3.stp: Test script for file switching per cpu
* | Use actual sock in tcp_test, instead of unexisting sk variable.Mark Wielaard2009-05-121-7/+7
|/ | | | | * testsuite/buildok/tcp_test.stp (tcp.sendmsg): Use sock for testing. (tcp.recvmsg): Likewise.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapWilliam Cohen2009-05-113-736/+537
|\
| * Correct typo in BUILD_SERVER test in configure.ac.Dave Brolley2009-05-113-736/+537
| |
* | Provide more details in testsuite.examples/README on how to submit examples.William Cohen2009-05-111-49/+97
|/
* Allow @cast failures to get optimized awayJosh Stone2009-05-081-0/+6
| | | | | | We have the saved_conversion_error field, but I wasn't using it. Now @cast errors are saved in that field, so they're only seen if the optimizer doesn't remove the @cast.
* Refactor anonymous lookups in translate_componentsJosh Stone2009-05-081-1/+5
| | | | | | | | | | | | | | | | | | | The previous code recursed the entirety of translate_components, and it seemed to be restarting the components list every time, so it would only work if the anonymous portion was the first component. Even then, examining the code output by semok/thirtythree revealed that it wasn't fully translating the locations when multiple anonymous pieces were involved. Instead, it now recurses in a separate function, find_struct_member, which does just enough to find the member die and return. It also builds a vector of the locations passed through, so translate_components can output code for the full chain of anonymity. The generated code for semok/thirtythree's $page->mapping now appears to match the offsets from my manual inspection of struct page. I also added a test for $page->first_page->mapping, which works now but would segfault the old code.
* Simplify buildok/context_test.stpJosh Stone2009-05-081-20/+1
| | | | | | | | | | The test was using optional probes on uptime_read_proc, which doesn't exist anymore on 2.6.30. The problem is that when those optional probes are skipped, the test doesn't really do anything. For a buildok test of the context functions, the actual probe point doesn't matter, so I've changed it to just a begin probe that calls all of the functions.
* 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
|