summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Add pgrp() context tapset function. Describe sid().Przemyslaw Pawelczyk2009-06-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapset/context.stp: Add pgrp() function. * testsuite/buildok/context_test.stp: Add pgrp() call. * stapfuncs.3stap.in: Describe pgrp() and sid(). Signed-off-by: Josh Stone <jistone@redhat.com>
* | | | | Add experimental utrace/kprobe sdt supportStan Cox2009-06-153-45/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sdt.h (EXPERIMENTAL_UTRACE_SDT, EXPERIMENTAL_KPROBE_SDT): New probe point macros. * dtrace: Add support for creating type debug info, currently invoked with --types. * tapsets.cxx (probe_table::convert_probe): New. (probe_table::convert_location): New. (dwarf_builder::build): Use it to simplify probe point handling. * sdt.exp (pbtype_flags, pbtype_mssgs): New to also test kprobe and utrace. * static_uprobes.exp (pbtype_flags, pbtype_mssgs): New to also test kprobe and utrace.
* | | | | PR10285. User space PROBE marks aren't found with separate debuginfo.Mark Wielaard2009-06-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original logic was a little confused. It could end up searching the separate debuginfo twice instead of falling back to the main elf file. Now we explicitly search the main elf file first (where the .probes section really should be) and only then fall back to the separate debuginfo file. * tapsets.cxx (dwarf_builder::probe_table::probe_table): Search main elf file first, then fall back on separate debuginfo file if necessary. * testsuite/systemtap.exelib/exelib.exp: Enable mark.tcl testcase. main elf file or the debuginfo file, but would interpret
* | | | | Add (disabled) testcase for stap probe marks to exelib.Mark Wielaard2009-06-155-3/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.exelib/exelib.exp: Compile against sdt.h. * testsuite/systemtap.exelib/uprobes_exe.c: Add main_count probe mark. * testsuite/systemtap.exelib/uprobes_lib.c: Add func_count probe mark. * testsuite/systemtap.exelib/mark.tcl: New test. * testsuite/systemtap.exelib/mark.stp: New test tapset.
* | | | | PR10274 Fix exelib -O3 testcase.Mark Wielaard2009-06-153-10/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The testcase now uses noinline, an empty asm statement and a volatile variable to prevent the function getting inlined, being totally unrolled or the recursive call being replaced with an inner-iteration. This does defeat part of the testcase though, which was testing unwinding through an optimized recursive function. But it seems the best we can do. * testsuite/systemtap.exelib/exelib.exp: Add -O3 to the mix. * testsuite/systemtap.exelib/uprobes_exe.c: Use volatile bar and mark main_func noinline. * testsuite/systemtap.exelib/uprobes_lib.c: Use volatile foo and mark lib_func noinline.
* | | | | PR10279: add -DKRETACTIVE=nnnn parameterFrank Ch. Eigler2009-06-131-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapsets.cxx (dwarf/kprobe_derived_...::emit_decl/init): Define and use KRETPROBE instead of hard-coded max(...) values. Raise the default 50%. * testsuite/buildok/thirtytwo.stp: New test.
* | | | | Add exelib uprobes test framework.Mark Wielaard2009-06-1215-213/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests uprobes placed in executables and shared libraries on different arches (32-on-64 currently disabled), gcc/g++, optimizations (currently disabled), prelinked libs (currently disabled), seperate libs/exe debuginfo and pie executables. * testsuite/systemtap.base/uprobes_exe.c: Moved to... * testsuite/systemtap.exelib/uprobes_exe.c: From systemtap.base. * testsuite/systemtap.base/uprobes_lib.c: Moved to... * testsuite/systemtap.exelib/uprobes_lib.c: From systemtap.base. * testsuite/systemtap.base/uprobes_lib.exp: Rewritten as... * testsuite/systemtap.exelib/lib.tcl: From uprobes_lib.exp. * testsuite/systemtap.base/uprobes_lib.stp: Rewritten as... * testsuite/systemtap.exelib/lib.stp: From uprobes_lib.stp. * testsuite/systemtap.base/uprobes_uname.exp: Rewritten as... * testsuite/systemtap.exelib/uname.tcl: From uprobes_uname.exp. * testsuite/systemtap.base/uprobes_uname.stp: Rewritten as... * testsuite/systemtap.exelib/uname.stp: From uprobes_uname.stp. * testsuite/systemtap.base/uprobes_ustack.exp: Rewritten as... * testsuite/systemtap.exelib/ustack.tcl: From uprobes_ustack.exp. * testsuite/systemtap.base/uprobes_ustack.stp: Rewritten as... * testsuite/systemtap.exelib/ustack.stp: From uprobes_ustack.stp. * testsuite/systemtap.exelib/exelib.exp: New exelib uprobes framework. * testsuite/systemtap.exelib/cleanup.tcl: New file.
* | | | | Version bumps for the 0.9.8 releaseJosh Stone2009-06-112-11/+11
| |_|_|/ |/| | |
* | | | Fix condition propagation across aliasesJosh Stone2009-06-092-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an instance of an alias has a condition, that condition gets propagated to each of the locations that the alias defines. However, the copy of the location list was not a deep copy, and so all other instances of the alias would also incorrectly receive the condition. This patch makes the location list copy a little deeper, and adds a test case which demonstrates the issue.
* | | | 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.