summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.exelib
Commit message (Collapse)AuthorAgeFilesLines
* PR11296: switch to "sys/sdt.h" in test casesFrank Ch. Eigler2010-02-183-3/+3
|
* Make sure cfa_ops are always retrieved through dwfl global address.Mark Wielaard2010-02-024-12/+12
| | | | | | | | | | | | | | | | | dwflpp::translate_location() works on the dw address space, but get_cfa_ops() starts out with dwfl calls (only dwarf_cfi_addrframe() needs to be adjusted for bias). * dwflpp.cxx (translate_location): Pass pc plus module bias through to get_cfa_ops. (get_cfa_ops): Adjust for bias when calling dwarf_cfi_addrframe(), add frame start/end address when found if verbose logging. * testsuite/systemtap.exelib/lib.stp: Add $foo and $bar variables to process.function probes. * testsuite/systemtap.exelib/libmarkunamestack.stp: Likewise. * testsuite/systemtap.exelib/lib.tcl: Expect correct values for process.function probe variables. * testsuite/systemtap.exelib/libmarkunamestack.tcl: Likewise.
* Only test highest optimization for exelib.exp test.Mark Wielaard2009-09-131-3/+3
| | | | | | | There is not much to gain from testing low and high optimized programs. So only test highest optimization level. Half test time from 200 to 100 sec. * testsuite/systemtap.exelib/exelib.exp: Set opt to list containing just -O3.
* Replace small exelib.exp testcases with one jumbo testcase.Mark Wielaard2009-09-133-1/+181
| | | | | | | | | | | | Merge lib, mark, uname and ustack stp and tcl scripts into one large libmarkunamestack stp and tcl script. But keep the individual tests in case the large test fails and one wants to debug the individual steps. Takes test time for exelib.exp down from 700 seconds to 200 seconds. * testsuite/systemtap.exelib/libmarkunamestack.stp: New large stp script. * testsuite/systemtap.exelib/libmarkunamestack.tcl: New large tcl script. * testsuite/systemtap.exelib/exelib.exp: Use libmarkunamestack.
* Add missing quote for uname.tclWenji Huang2009-08-141-1/+1
| | | | * testsuite/systemtap.exelib/uname.tcl: Add '"'.
* exelib testcase now ensures uprobes.ko is up to date.David Smith2009-08-114-4/+4
| | | | | | | | | * testsuite/systemtap.exelib/cleanup.tcl: Makes sure uprobes.ko is up to date. * testsuite/systemtap.exelib/lib.tcl: Ditto. * testsuite/systemtap.exelib/mark.tcl: Ditto. * testsuite/systemtap.exelib/uname.tcl: Ditto. * testsuite/systemtap.exelib/ustack.tcl: Ditto.
* PR10486 Raise default MAXSTRINGLEN.Mark Wielaard2009-08-071-5/+2
| | | | | | | | * translate.cxx (translate_pass): Raise MAXSTRINGLEN to 256 for 32bit arches and to 512 for 64bit arches. * testsuite/systemtap.context/backtrace.tcl: Don't set MAXSTRINGLEN. * testsuite/systemtap.exelib/ustack.tcl: Likewise. * testsuite/systemtap.string/str_replace.exp: Explicitly set MAXSTRINGLEN.
* Remove unused result_string from ustack.tcl.Mark Wielaard2009-07-301-9/+0
| | | | * testsuite/systemtap.exelib/ustack.tcl: Remove result_string.
* BUG! "yes" breaks ustack PR10323 was fixed a while ago, remove comment.Mark Wielaard2009-07-161-1/+1
|
* canonicalize exelib.exp test case names by [file tail /full/path]Frank Ch. Eigler2009-07-071-4/+4
|
* 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.
* 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).
* 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.
* Add exelib uprobes test framework.Mark Wielaard2009-06-1210-0/+386
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.