summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cast_header'Josh Stone2009-04-202-2/+25
|\
| * Add tests for @cast-generated modulesJosh Stone2009-04-202-2/+25
| |
* | PR10078: uretprobes on functions returning structs/unionsJim Keniston2009-04-203-0/+61
|/ | | | | arch_predict_sp_at_ret() for x86_32 now accommodates ret $4. Added bz10078 regression test.
* Added new utrace syscall argument test.David Smith2009-04-173-0/+515
| | | | | | | | 2009-04-17 David Smith <dsmith@redhat.com> * systemtap.base/utrace_syscall_args.c: New test file. * systemtap.base/utrace_syscall_args.exp: New test file. * systemtap.base/utrace_syscall_args.stp: New test file.
* Output probe calling sequence commentStan Cox2009-04-171-1/+0
| | | | * dtrace: Output probe calling sequence comment
* Use iterate_over_srcfile_lines for function("func@file:N").labelStan Cox2009-04-161-0/+31
| | | | | | | | * tapsets.cxx (dwflpp::iterate_over_labels): Renamed from iterate_over_cu_labels, method signature simplified. (query_srcfile_label): New. (query_cu): Use above. * labels.exp: New tests for above.
* PR10067: fix bitfield accessJosh Stone2009-04-132-0/+49
| | | | | | | | | * tapsets.cxx (dwflpp::translate_components): Eliminate the extra die-dereference at the end of the loop (a regression from @casts). * runtime/loc2c-runtime.h (store_bitfield): Use the target as the representative type, since the base is always int64_t. Also be a bit more aggressive with masking and parentheses. * testsuite/systemtap.base/bitfield.*: New test for R/W bitfields.
* Improve -l output for .labelStan Cox2009-04-131-0/+15
| | | | | | * tapsets.cxx (iterate_over_cu_labels): Treat -l specially so the output of a .label can be improved. * labels.stp: Test -l
* Make stmt_rel.exp have good compatibilityWenji Huang2009-04-091-1/+3
|
* Add tests for probefunc(), usymname(), uaddr() versus shared libraries.Mark Wielaard2009-04-092-0/+53
| | | | | * testsuite/systemtap.base/uprobes_uname.exp: New file. * testsuite/systemtap.base/uprobes_uname.stp: Likewise.
* Add main executable symbol uprobe to uprobes_lib.exp test.Mark Wielaard2009-04-084-11/+23
| | | | | | | | | | | There was nothing wrong with the probe itself, but because the body was empty the compiler optimised away the actual call... * testsuite/systemtap.base/uprobes_lib.exp: Activate main exe probe, expect more output. * testsuite/systemtap.base/uprobes_lib.stp: Also probe main and main_lib. * testsuite/systemtap.base/uprobes_exe.c: Put some code in main_func. * testsuite/systemtap.base/uprobes_lib.c: Likewise for lib_func.
* Consider function when handling .labelStan Cox2009-04-081-3/+10
| | | | | | * tapsets.cxx(dwflpp::iterate_over_cu_labels): New parameter function. Do wildcard match for function. * testsuite/systemtap.base/labels.exp: Test .label function handling.
* Do not do a partial name comparison for .label.Stan Cox2009-04-081-7/+8
| | | | * tapsets.cxx (dwflpp::iterate_over_cu_labels): Compare with strcmp not strncmp.
* Rewrite stmt_rel.exp to only rely on -l output.Stan Cox2009-04-022-77/+38
| | | | * testsuite/systemtap.base/stmt_rel.exp: Rewrite.
* itrace.exp: s/utrace_support_found/utrace_p/Mark Wielaard2009-04-021-1/+1
|
* PR9995: Test for [installtest_p] && [utrace_p].Mark Wielaard2009-04-021-2/+2
|
* introduce [utrace_p] as dejagnu check for utrace presence in kernelFrank Ch. Eigler2009-04-019-91/+37
| | | | | | * testsuite/lib/systemtap.exp: Define here. * testsuite/systemtap.*/*.exp: Use it here. Eliminate duplicated utrace_support_present logic.
* Move testcase itrace3's warning into expectJosh Stone2009-04-011-1/+1
| | | | | | As it was, the ATTENTION was causing expect mismatches even when the test worked fine. The warning is served just as well from the expect script before starting the test.
* Add insn.block testcase to itrace.exp in testsuiteMaynard Johnson2009-04-011-0/+31
| | | | | | | | | | Earlier today, I posted a runtime patch for the insn.block probe point. Once that patch is committed, the insn.block probe can be safely tested on any architecture. The attached patch adds such a testcase to the testsuite. Regards, -Maynard
* Use alloca trick to keep argN active on GCC 4.1.Stan Cox2009-04-011-1/+1
| | | | | | * includes/sys/sdt.h (STAP_UNINLINE): New. (STAP_UNINLINE_LABEL): New. static_uprobes.exp: Match using charset instead of .*
* Customize .mark -l output.Stan Cox2009-03-311-6/+32
| | | | | | * tapsets.cxx (dwarf_builder::build): Add .mark name wildcard check. Customize -l handling. * testsuite/systemtap.base/static_uprobes.exp: Test .mark name wildcard.
* PR9998: new config and test filesWenji Huang2009-03-302-0/+22
| | | | | | * runtime/autoconf-x86-gs.c : New file. * testsuite/systemtap.base/x86_gs.exp : New test case. * testsuite/systemtap.base/x86_gs.stp : Ditto.
* Test marker probe parameter types.Stan Cox2009-03-303-25/+561
| | | | | | * testsuite/systemtap.base/sdt_types.c: New file. * testsuite/systemtap.base/sdt_types.stp: New file. * testsuite/systemtap.base/static_uprobes.exp: Use sdt_types for type testing.
* Add testcase for uprobe on shared library (PR9940).Mark Wielaard2009-03-244-0/+94
| | | | | | | * testsuite/systemtap.base/uprobes_exe.c: New file. * testsuite/systemtap.base/uprobes_lib.c: New file. * testsuite/systemtap.base/uprobes_lib.exp: New file. * testsuite/systemtap.base/uprobes_lib.stp: New file.
* PR9993: tracepoint toleration for undeclared types in trace/*.h headersFrank Ch. Eigler2009-03-241-0/+23
| | | | | | | | | * tapsets.cxx (tracepoint_extra_headers): New function to return needed header file names. (emit_module_decls): Emit them. * buildrun.cxx (make_tracequery): Emit them. * testsuite/systemtap.base/tracepoints.exp: Rewrite to exercise building each tracepoint.
* sdt.exp: save intermediate sdt.h-client executables for analysisFrank Ch. Eigler2009-03-212-15/+19
| | | | | | * testsuite/lib/stap_run2.exp (stap_run3): Put supplied stap extra arguments after the .stp script name, not before, so that @1/such arguments can be substituted within.
* 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.
* rename process().itrace -> process().insn introduce process().insn.blockFrank Ch. Eigler2009-03-191-5/+2
|
* Improve static_uprobes.expStan Cox2009-03-171-12/+6
| | | | * systemtap.base/static_uprobes.exp: Compile with -x c++. Test .probes absence.
* 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-131-4/+2
| | | | | * 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-112-0/+26
|
* 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.
* 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-093-6/+3
| | | | | * 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)
* 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.
* static_uprobes test case cleanupFrank Ch. Eigler2009-02-191-12/+18
|
* Always emit .probes section; use .label method as a backup strategyStan Cox2009-02-181-2/+4
|