summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* PR5930: Address-op for $target and @cast membersJosh Stone2009-07-156-1/+40
| | | | | | | | | | | | | | | | This allows the '&' operator to get the address of @cast and $target variable expressions. * staptree.h (target_symbol): add addressof field * staptree.cxx (target_symbol::print): print '&' for addressof (cast_op::print): ditto * parse.cxx (parser::parse_value): allow '&' prefix on $target/@cast * dwflpp.cxx (dwflpp::translate_final_fetch_or_store): allow taking the computed address without actually doing a final fetch. * tapset* (*::visit_target_symbol): throw errors for $vars w/o addresses * testsuite/systemtap.base/cast.stp: add &@cast test * testsuite/semok/target_addr.stp: test '&' on different member types * testsuite/semko/target_addr?.stp: test failure on bitfields/registers
* utrace_syscall_args.stp makes sure open syscall is from target pid.David Smith2009-07-151-1/+1
| | | | | * testsuite/systemtap.base/utrace_syscall_args.stp: Makes sure the open syscall is from the target pid.
* PR4166: Allow array-like indexing on pointersJosh Stone2009-07-142-0/+29
| | | | | | | * dwflpp.cxx (dwflpp::translate_components): let pointers get treated the same as arrays, and add a final DIE dereference for array access. * loc2c.c (c_translate_array): tolerate pointer types * testsuite/systemtap.base/pointer_array.*: new test
* Remove -O[0123s] gcc optimization flags for gcc pass 4 speedups again.Mark Wielaard2009-07-141-16/+0
| | | | | | | | | | | | | We cannot guarantee that (un)optimized code compiles and/or generates fully functional code, so don't tempt the user to try it out. * session.h (struct systemtap_session): Remove gcc_flags string field. * hash.cxx (find_script_hash): Don't add gcc_flags. * main.cxx (usage): Remove -O[0123s] documentation. (main): Don't use gcc_flags. * buildrun.cxx (compile_pass): Don't add gcc_flags to EXTRA_CFLAGS. * stap1.in: Remove -O[0123s] documentation. * testsuite/systemtap.base/cache.exp: Remove tests for -O[0123s].
* Make kernel opt-level the default again.Mark Wielaard2009-07-141-2/+3
| | | | | | | * main.cxx (main): Default gcc_flags to kernel opt-level (empty). * buildrun.cxx (compile_pass): Add -freorder-blocks back, document choices. * stap.1.in: Document new default opt-level. * testsuite/systemtap.base/cache.exp: Adjust for new caching results.
* Add -O[0123s] gcc optimization flags for gcc pass 4 speedup.Mark Wielaard2009-07-111-0/+15
| | | | | | | | | | * session.h (struct systemtap_session): Add gcc_flags string field. * main.cxx (usage): Document -O[0123s]. (main): Default gcc_flags to -O0. Add O:: to getopt_long. Handle case 'O' to set gcc_flags. * buildrun.cxx (compile_pass): Add gcc_flags to EXTRA_CFLAGS. * stap1.in: Add -O[0123s] documentation. * testsuite/systemtap.base/cache.exp: Add tests for -O[0123s].
* PR3523 was fixed, enable -t cache test case.Mark Wielaard2009-07-111-3/+2
| | | | * testsuite/systemtap.base/cache.exp: Enable -t tests.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-07-106-1/+99
|\
| * Add numa_faults.stp example.William Cohen2009-07-106-1/+99
| |
* | Rename systemtap_exit to cleanup.Dave Brolley2009-07-101-5/+6
|/ | | | Allow shutdown_server to test $server_pid in order to determine whether we started a server.
* PR3498 cont'd, fix wildcard module("*") probesFrank Ch. Eigler2009-07-081-0/+3
| | | | | | | | * dwflpp.cxx (name_has_wildcard): Make static. (dwfl_report_offline_predicate): Check & adjust behavior. * dwflpp.h: Corresponding changes. * tapsets.cxx: Note that kern_dw[] keys may be wildcard strings. * testsuite/buildok/fortysix.stp: New test.
* canonicalize exelib.exp test case names by [file tail /full/path]Frank Ch. Eigler2009-07-071-4/+4
|
* Add shebangEugeniy Meshcheryakov2009-06-301-0/+1
|
* Make the file executableEugeniy Meshcheryakov2009-06-301-0/+0
|
* 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.