summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Define static user probe point using asm instead of c.Stan Cox2009-03-202-4/+14
| | | | | | | | | * includes/sys/sdt.h (STAP_PROBE_DATA): New. Define the probe point using asm instead of c. (STAP_PROBEN): Use it. * testsuite/systemtap.base/sdt.exp: Continue if a compile fails. * testsuite/systemtap.base/static_uprobes.exp: Don't test setting probe without .probes section.
* Added functions to grab IP source and destination from a socket, andBreno Leitao2009-03-201-0/+11
| | | | | | | functions to grab TCP source and destination port from a socket. Also, used this function inside some TCP probe functions, as recvmsg, to provide a richer set of fields.
* rename process().itrace -> process().insn introduce process().insn.blockFrank Ch. Eigler2009-03-191-5/+2
|
* Replace systemtap.samples/ioblocktest.stp with ioblktime.stp.William Cohen2009-03-178-23/+74
|
* Improve static_uprobes.expStan Cox2009-03-171-12/+6
| | | | * systemtap.base/static_uprobes.exp: Compile with -x c++. Test .probes absence.
* Add pid-based data lookup function.Wenji Huang2009-03-162-1/+5
| | | | Two functions pid2task and pid2execname.
* Add -ansi -pedantic pair to sdt test.Mark Wielaard2009-03-131-1/+1
| | | | | * testsuite/systemtap.base/sdt.exp: Add additional_flags -ansi together with -pedantic.
* Add -O2 and -O3 as extra test flags to sdt.Mark Wielaard2009-03-131-1/+1
| | | | * testsuite/systemtap.base/sdt.exp: Add -O2, -O3.
* Introduce stap_run3 for distinct test names.Mark Wielaard2009-03-132-8/+21
| | | | | * testsuite/lib/stap_run2.exp: Add stap_run3, called from stap_run2. * testsuite/systemtap.base/sdt.exp: Use stap_run3, for distinct test names.
* Add test to compile and run all tracepointsJosh Stone2009-03-112-0/+26
| | | | | | | | | This checks that kernel.trace("*") will compile, with all context variables accessed as well. For kernels without tracepoints, it will just hit a "begin" and quit. This doesn't ensure that kernel.trace("*") will always find something when it should, though...
* Add simple testcases for @castJosh Stone2009-03-113-0/+39
|
* improve sdt.h compatibility and test suiteFrank Ch. Eigler2009-03-112-11/+16
| | | | | | Replaced cpp VA_ARGS in sdt.h with explicit enumeration of arguments (since with -pedantic, cpp has no varargs), and added a few more cflags variants to the sdt.exp test case.
* PR 7071: Optional $context variables fixRajan Arora2009-03-111-0/+7
| | | | | | | | | | | | | | | | * tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Substitute erroneous target symbol with literal 0 if session level flag, skip_badvars is set. * session.h (struct systemtap_session): New flag: skip_badvars. * main.cxx: Command line argument --skip-badvars added. * stap.1.in: Entry for new option --skip-badvars. * NEWS: Added blurb for new option now available. * testsuite/semok/badvar.stp: Test case to check added functionality.
* Run the tests for each member of a list of extra options.Stan Cox2009-03-111-1/+30
| | | | * testsuite/systemtap.base/sdt.h: Add extra_flags and g++ as a test language.
* Use alternate keywords for sdt.hStan Cox2009-03-091-1/+1
| | | | * include/sys/sdt.h: Initialize args when declaring. Use alternate keywords.
* PR9935. Fixed stap script typos. arg[5-10] -> $arg[5-10].Mark Wielaard2009-03-092-9/+7
| | | | | * testsuite/systemtap.base/sdt.exp: Enable stap_run2 when installtest_p. * testsuite/systemtap.base/sdt.stp: Fixed all arg to $arg typos.
* Add PR9935 number to sdt.exp disabled test.Mark Wielaard2009-03-091-1/+1
|
* Add new sdt.exp testcase.Mark Wielaard2009-03-093-0/+154
| | | | | | * testsuite/systemtap.base/sdt.exp: New test file. * testsuite/systemtap.base/sdt.stp: Likewise. * testsuite/systemtap.base/sdt.c: Likewise.
* Make stap_run2 count exact number of lines.Mark Wielaard2009-03-0939-71/+38
| | | | | * testsuite/lib/stap_run2.exp: Compare found and expected number of lines. * testsuite/systemtap.*/*.exp (result_string): Make number of lines exact.
* Minor changes to labels.exp.Stan Cox2009-03-081-6/+6
|
* Fix and add tests for function(".so").statement(N)Stan Cox2009-03-081-3/+83
| | | | | | | | * tapsets.cxx (query_dwarf_func): die_has_pc (dwarf_haspc) does not expect a module_start for shared objects so don't call module_address_to_global for the statement address. * testsuite/systemtap.base/labels.exp: Add tests for executable .statement(N), shared object .label("L") and so .statement(N).
* PR9919: Set last_stmt for array (scalar or statistical) assignments.Mark Wielaard2009-03-042-0/+54
| | | | * translate.cxx (visit_arrayindex): Update last_stmt.
* Merge branch 'gtod'Josh Stone2009-02-231-0/+29
|\
| * Add a testcase for gtod init/killJosh Stone2009-02-231-0/+29
| | | | | | | | | | | | This test simply checks that _gettimeofday_init and _gettimeofday_kill are pulled in when gettimeofday is used, and also that they are NOT pulled in when gettimeofday is not used.
* | Improve static probe: c++ navigation, -l output.Stan Cox2009-02-231-3/+3
|/ | | | | | | * tapsets.cxx (dwflpp::build): Improve c+ method navigation. Use .label for listing mode. * systemtap.base/static_uprobes.exp: Test multiple invocations of the same probe per block. (SW9770)
* make all examples executableEugeniy Meshcheryakov2009-02-217-0/+0
|
* Check for required resources and tools before attempting tests using the ↵Dave Brolley2009-02-203-11/+42
| | | | | | client/server. Ensure that tests run with/without the server have unique names.
* Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-02-206-2817/+82
|\ | | | | | | | | | | | | Conflicts: ChangeLog testsuite/ChangeLog
| * Better testcase cleanup.David Smith2009-02-202-3/+3
| | | | | | | | | | | | | | 2009-02-20 David Smith <dsmith@redhat.com> * systemtap.base/cache.exp (stap_compile): Better cleanup. * static_uprobes.exp: Ditto.
| * Kill all ChangeLogsJosh Stone2009-02-194-2801/+62
| | | | | | | | | | | | Mark Wielaard, a dear friend of the departed, will be performing a song and dance at the funeral services to commemorate the joyous times that they had together.
| * static_uprobes test case cleanupFrank Ch. Eigler2009-02-192-12/+23
| |
* | New basic tests for client/server.Dave Brolley2009-02-203-44/+103
|/
* Adding test case for PR9719 fixRajan Arora2009-02-181-0/+8
|
* Always emit .probes section; use .label method as a backup strategyStan Cox2009-02-182-3/+8
|
* Handles errors better.David Smith2009-02-182-1/+6
| | | | | | | 2009-02-18 David Smith <dsmith@redhat.com> * systemtap.base/static_uprobes.exp: Handles errors from running 'dtrace' python script better.
* Better testcase cleanup.David Smith2009-02-182-3/+10
| | | | | | 2009-02-18 David Smith <dsmith@redhat.com> * systemtap.base/labels.exp: Better cleanup.
* version bump to 0.9 throughoutFrank Ch. Eigler2009-02-172-11/+11
|
* fixing configury version driftFrank Ch. Eigler2009-02-173-1088/+1687
|
* fix sdt.h test case for $srcdir != $builddirFrank Ch. Eigler2009-02-172-2/+17
|
* Move sdt.h to includes/sys and use in tests.Mark Wielaard2009-02-176-2052/+1273
|
* PR 9716, replaced pkgconfig checks with AC macros in configure.ac for server ↵Elliott Baron2009-02-173-518/+711
| | | | deps.
* Improved cleanup in tests.David Smith2009-02-165-22/+73
|
* Handle c++ static user probes via .probe, c via .label.Stan Cox2009-02-152-74/+44
|
* Correct entries for test_check and test_installcheck.William Cohen2009-02-122-2/+6
|
* Function to determine page fault type and have pfaults.stp exercise it.William Cohen2009-02-129-74/+89
|
* Use kernel stack backtrace support when availableTim Moore2009-02-112-2/+9
| | | | | Define new functions that use the kernel support to do a backtrace of other tasks than current.
* Probe only calls and not inlines in functioncallcount.stpAnanth N Mavinakayanahalli2009-02-111-1/+1
|
* Remove profile.exp and profile.stp.William Cohen2009-02-103-50/+5
|
* Move crash.exp and crash.sh to systemtap.base directory.William Cohen2009-02-103-0/+5
|
* Move poll_map.exp and poll_map.stp to systemtap.base directory.William Cohen2009-02-093-0/+5
|