summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Add froktracker.stp example.William Cohen2009-06-196-0/+69
| | |
| * | Merge commit 'origin/master' into pr7043David Smith2009-06-183-38/+39
| |\ \
| * \ \ Merge commit 'origin/master' into pr7043David Smith2009-06-171-9/+9
| |\ \ \
| * \ \ \ Merge commit 'origin/master' into pr7043David Smith2009-06-1627-297/+496
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/transport/transport.c
| * \ \ \ \ Merge commit 'origin/master' into pr7043David Smith2009-06-1124-607/+1309
| |\ \ \ \ \
| * \ \ \ \ \ Merge commit 'origin/master' into pr7043David Smith2009-05-21197-874/+3651
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/print.c runtime/transport/transport.c runtime/transport/transport_msgs.h
| * \ \ \ \ \ \ Merge branch 'master' of ssh://sources.redhat.com/git/systemtap into pr7043David Smith2009-03-1251-74/+433
| |\ \ \ \ \ \ \
| * | | | | | | | Make printf tests fail when stap fails.David Smith2009-03-1110-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-11 David Smith <dsmith@redhat.com> * systemtap.printf/end1.exp: The test fails when stap fails. * systemtap.printf/end1b.exp: Ditto. * systemtap.printf/mixed_out.exp: Ditto. * systemtap.printf/mixed_outb.exp: Ditto. * systemtap.printf/out1.exp: Ditto. * systemtap.printf/out1b.exp: Ditto. * systemtap.printf/out2.exp: Ditto. * systemtap.printf/out2b.exp: Ditto. * systemtap.printf/out3.exp: Ditto. * systemtap.printf/out3b.exp: Ditto.
* | | | | | | | | Rename static_uprobes.exp to sdt_misc.expStan Cox2009-06-191-0/+0
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | PR10298: tweak global param initialization for NULL etc.Frank Ch. Eigler2009-06-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * translate.cxx (translate_pass): Emit module_parm stuff at the very end. * testsuite/buildok/null.stp: New test.
* | | | | | | | Check in sk_stream_wait_memory.stp example.William Cohen2009-06-186-0/+98
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Made testcase handle slower systems.David Smith2009-06-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.base/flightrec3.exp: Fixed for slower systems.
* | | | | | | Refactor common code in the tokenize testJosh Stone2009-06-172-54/+20
| | | | | | |
* | | | | | | Fix tokenize function and test.Przemyslaw Pawelczyk2009-06-172-29/+62
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous implementation was error-prone, because allowed returning empty tokens (mimiced strsep()), which is fine if there is a NULL semantic. Unfortunately SystemTap doesn't provide it in scripts and has only blank string (""), therefore testing against it was misleading. The solution is to return only non-empty tokens (mimic strtok()). * tapset/string.stp: Fix tokenize. * testsuite/systemtap.string/tokenize.stp: Improve and add case with more than one delimiter in the delim string. * testsuite/systemtap.string/tokenize.exp: Ditto. * stapfuncs.3stap.in: Update tokenize description. * doc/langref.tex: Ditto. Signed-off-by: Josh Stone <jistone@redhat.com>
* | | | | | Improved error handling.David Smith2009-06-171-9/+9
| |_|_|_|/ |/| | | | | | | | | | | | | | * testsuite/systemtap.base/flightrec3.exp: Improved error handling.
* | | | | Support -L for kprobe and utrace static user markers.Stan Cox2009-06-161-11/+2
| | | | | | | | | | | | | | | | | | | | tapsets.cxx (dwarf_builder::build): Special case listing mode for kprobe and utrace.
* | | | | Strip out newlines in GCC version string.Mark Wielaard2009-06-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/lib/systemtap.exp (get_system_info): Remove possible newlines from GCC_Version string.
* | | | | Add GCC version to testsuite run output and systemtap.sum file.Mark Wielaard2009-06-162-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prints the gcc being used and full version. Also adds short version number to systemtap.sum file (plus full version string). Will make comparing failures based on compiler version being used easier. * testsuite/lib/systemtap.exp (print_systemtap_version): Also print location and full version of gcc being used. (get_system_info): Get gcc version number and long version string. * testsuite/lib/stap_run.exp (print_system_info): Output GCC version.
* | | | | 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.