summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Add chng_cpu.stp and migrate.stp examples.William Cohen2009-07-178-0/+144
| | |
| | * Add network/tcpipstat.stp descriptions.William Cohen2009-07-174-1/+42
| | |
| * | PR10410: dentry tapset, autofs4 sampleJeff Moyer2009-07-172-0/+102
| |/ | | | | | | | | | | | | * tapset/dentry.stp: New d_path, d_name, reverse_path_walk. * .../examples/.../autofs4.*: New autofs demo. Signed-off-by: Frank Ch. Eigler <fche@elastic.org>
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-07-176-0/+698
|\|
| * This SNMP group of tapsets provides probes used to count SNMP managementDavid J. Wilder2009-07-166-0/+698
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | events. The probes mirror many of the SNMP statistics defined in /usr/include/linux/snmp.h. Each probe represents a single SNMP statistic or MIB. Each of the probe's handler is called when system performs an operation that would alter the associated statistic. Along with each probe is defined an indexed set of counters used to record probe hits. The probe handlers call a user supplied callback functions to determine which counter to alter. The user's callback should returns a key value that will be used to index the counter. For example a callback could return a unique value for each socket. This would results in a separate counter being used for each socket. tcpipstat.stp shows how snmp tapsets could be used. Tcpipstat collects and displays network statistics related to individual TCP sockets or groups of sockets. The statistics that are collected are simmer to that of the command netstat -s, only sorted and grouped by individual sockets. Signed-off-by: David Wilder <dwilder@us.ibm.com>
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-07-1610-3/+71
|\|
| * BUG! "yes" breaks ustack PR10323 was fixed a while ago, remove comment.Mark Wielaard2009-07-161-1/+1
| |
| * 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
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-07-141-15/+0
|\| | | | | | | | | | | Conflicts: main.cxx
| * 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.
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-07-131-3/+17
|\| | | | | | | | | | | Conflicts: main.cxx
| * 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 git://sources.redhat.com/git/systemtapDave Brolley2009-07-108-6/+108
|\|
| * 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.
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-07-081-4/+4
|\|
| * canonicalize exelib.exp test case names by [file tail /full/path]Frank Ch. Eigler2009-07-071-4/+4
| |
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-06-302-0/+1
|\|
| * Add shebangEugeniy Meshcheryakov2009-06-301-0/+1
| |
| * Make the file executableEugeniy Meshcheryakov2009-06-301-0/+0
| |
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-06-292-23/+3
|\|
| * 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.
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-06-2510-5/+253
|\|
| * 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
| |
* | Disallow embedded C in tapset functions ifor unprivileged users unless ↵Dave Brolley2009-06-251-1/+1
|/ | | | tagged by /* unprivileged */.
* 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
| | |