summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* PR10335 systemtap.base/strftime.exp hangs.Mark Wielaard2009-06-261-20/+3
| | | | | | | | This only happened if there was a lot of cruft in the testsuite dir since expect wasn't "draining" the output of the spawned ls command for some reason. Work around it by just using tcl file globs to match. * testsuite/systemtap.base/strftime.exp: Test with glob and file exists.
* PR10323 Some ustack exelib.exp tests fail with prelinked shared libs.Mark Wielaard2009-06-251-3/+0
| | | | | | | | | | | | For shared libraries (.dynamic sections) we need the eh frame section address offset. This is the sh_addr if the shared library isn't prelinked (since the base load address is zero in that case), otherwise it is the module start address minus the bias (which also works for the non-prelinked case). * translate.cxx (get_unwind_data): Adjust eh_addr for module start and bias if module isn't absolute (has no relocations). * testsuite/systemtap.exelib/ustack.tcl: Accept all prelink tests.
* Only compile with plain gcc for exelib.exp testcases.Mark Wielaard2009-06-251-1/+4
| | | | | | | g++ is also supported but disabled because it didn't add much interesting differences in binaries and exploded the test search case a bit. * testsuite/systemtap.exelib/exelib.exp: Disable g++ by default, but keep support for enabling it.
* Add seperate debuginfo after prelinking to exelib.exp tests.Mark Wielaard2009-06-251-2/+16
| | | | | | | | | | | | We split debuginfo before prelinking, that means that the base load address of the .so is non-zero, while for the .debug files they are zero. In the other case we supported sep-debug without prelinking both .so and .debug load bases were zero. In this new test case both base load addresses are non-zero. * testsuite/systemtap.exelib/exelib.exp: Add libdebug == "sep-after" to indicate separate debuginfo after prelinking library. Skip sep-after if not prelinking.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapWilliam Cohen2009-06-242-2/+5
|\
| * Enable exelib.exp prelink tests except for ustack.tcl.Mark Wielaard2009-06-242-2/+5
| | | | | | | | | | * testsuite/systemtap.exelib/exelib.exp: Enable prelink "yes". * testsuite/systemtap.exelib/ustack.tcl: Ignore any prelink test (PR10323).
* | Have appropriate argument for bkl.stp built and run tests.William Cohen2009-06-241-2/+2
|/
* Make blk.stp and blk_stats.stp executable.William Cohen2009-06-232-0/+0
|
* Add the bkl.stp and bkl_stats.stp examples.William Cohen2009-06-238-0/+228
|
* Testcase For str_replace()Varun Chandramohan2009-06-222-0/+39
| | | | | | | | | | | | This patch adds the test case needed for this function. I have added few tests. If required more can be added in future. As discussed in previous version, the testcase patch has been reverted to the original as the str_replace() functionality has changed wrt to error handle. Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* Merge commit 'origin'Josh Stone2009-06-221-1/+1
|\
| * Correct typo in forktracker.meta.William Cohen2009-06-221-1/+1
| |
* | Bump up the default timeout for target_set testJosh Stone2009-06-221-0/+1
| | | | | | | | | | | | Starting the test with a cold cache can take easily longer than dejagnu's default 10 second timeout. I'm bumping it to 180 seconds, the same as in the stap_run library functions.
* | Add test for target_set tapset.Przemyslaw Pawelczyk2009-06-222-0/+83
|/ | | | Signed-off-by: Josh Stone <jistone@redhat.com>
* Correctly find probes for -m32 executables.Stan Cox2009-06-191-10/+18
| | | | | | | * sdt.h (STAP_PROBE_DATA_): Pad with 0 so final probe entry doesn't pickup a stray word. * sdt_misc.exp (static_user_markers.{c,d}): Add bstruct to test struct type handling
* Merge branch 'master' of ssh://sourceware.org/git/systemtapStan Cox2009-06-1916-13/+82
|\
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2009-06-192-0/+0
| |\
| | * Revert "Make examples-index-gen.pl executable."William Cohen2009-06-191-0/+0
| | | | | | | | | | | | This reverts commit 0c98234c86877cfea3df762dc8627b3f05c38e75.
| | * Make forktracker.stp example executable.William Cohen2009-06-191-0/+0
| | |
| * | Merge commit 'origin/master' into pr7043David Smith2009-06-1910-0/+172
| |\|
| | * Make examples-index-gen.pl executable.William Cohen2009-06-191-0/+0
| | |
| | * 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
| | | |