summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
* Update scripts to use the new ANSI tapsetEugene Teo2009-04-033-19/+28
| | | | | | This updates the example scripts to use the new ANSI escape sequences tapset. It also adds the copyright header that was missing in ansi_colors.stp for a long time.
* New ANSI escape sequences tapsetEugene Teo2009-04-031-0/+31
| | | | | | | This adds a new tapset for ANSI escape sequences. It is based on an existing tapset that was written by Masami Hiramatsu for the stapgames project. This also adds a version of ansi_color.stp script that displays other attributes other than the bold effect.
* Rewrite stmt_rel.exp to only rely on -l output.Stan Cox2009-04-022-77/+38
| | | | * testsuite/systemtap.base/stmt_rel.exp: Rewrite.
* PR6580: Implement symname, symdata and modname context functions.Mark Wielaard2009-04-024-1/+25
| | | | | | | | | | | | | | | | | | This adds a couple of the suggested context/stack revamp functions from PR6580. In particular it replaces the symbolname() function that sneaked in with the pr6866 branch merge with the suggested symname(). * runtime/sym.c (_stp_mod_sec_lookup): Make section optional. (_stp_symbol_snprint): Provide a way to get optional module info. * tapset/context-symbols.stp: Replace symbolname() with symname(), add modname() and symdata(). (probemod): Implement pc based fallback. * tapset/context-unwind.stp (caller): Adjust for _stp_symbol_snprint change. * testsuite/systemtap.context/usymbols.exp: Use new symname. * testsuite/buildok/modname.stp: New test. * testsuite/buildok/symdata.stp: Likewise. * testsuite/buildok/symname.stp: Likewise.
* 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
|
* Check for utrace in usymbols.exp.Mark Wielaard2009-04-021-2/+3
|
* PR4105: removing redundant buildok/twentysix.stp testFrank Ch. Eigler2009-04-013-9/+0
|
* introduce [utrace_p] as dejagnu check for utrace presence in kernelFrank Ch. Eigler2009-04-0111-91/+48
| | | | | | * 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
* Merge branch 'master' into pr6866Mark Wielaard2009-04-0126-626/+1576
|\
| * 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 .*
| * testsuite/systemtap.context/*.tcl: Don't wait 4 whole minutes for timeout.Mark Wielaard2009-04-014-4/+4
| |
| * context.exp: log which subtest is being sourced.Mark Wielaard2009-04-011-0/+1
| |
| * PR4105: support up to 9 (up from 5) array index dimensionsFrank Ch. Eigler2009-04-012-0/+63
| | | | | | | | | | | | | | | | * runtime/map-gen.c, pmap-gen.c: Hand-expand arity 6..9 cases throughout. * testsuite/buildok/thirty.stp: New test. * testsuite/buildko/two.stp: New test. An Alan Smithee patch.
| * semok/badvar.stp test: add stap -p2 as for other semok testsFrank Ch. Eigler2009-04-011-1/+3
| |
| * 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.
| * prefer using /usr/bin/lsb_release to deduce distribution for testsuiteFrank Ch. Eigler2009-03-291-3/+9
| |
| * tweak "Distro:" line generation in testsuite logs, to moot ↵Frank Ch. Eigler2009-03-291-4/+3
| | | | | | | | "oracle-enterprise.patch"
| * Add headerEugeniy Meshcheryakov2009-03-281-0/+2
| |
| * Version bumps for 0.9.5 releaseJosh Stone2009-03-274-589/+753
| |
| * PR10000: emit _stp_relocate* calculations correctly for kernel/module global ↵Frank Ch. Eigler2009-03-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $data * translate.cxx (dump_unwindsyms): Also emit STT_OBJECT symbols, therefore .data etc. sections into stap-symbols.h. * tapsets.cxx (iterate_over_modules): Omit a dwfl_getmodules() RC-checking assertion that blocked meaningful $context var error messages. (dwflpp::emit_address): Bypass dwfl_module_relocate_address() for kernel symbols as it has been unreliable; subtract sess.sym_stext manually. * testsuite/buildok/seventeen.stp: Extend test with module $global.
| * .gitignore: Add testsuite exe and so files and initscript systemtap.Mark Wielaard2009-03-271-0/+3
| |
| * 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.
* | Wrap vma callbacks in STP_NEED_VMA_TRACKER.Mark Wielaard2009-04-011-1/+3
| | | | | | | | | | | | | | | | Will be defined by new ucontext symbol stapset. * tapset.cxx: Wrap all vma callbacks in STP_NEED_VMA_TRACKER. * testsuite/systemtap.context/usymbols.exp: Define STP_NEED_VMA_TRACKER explicitly for now.
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-225-20/+45
|\|
| * sdt.exp: save intermediate sdt.h-client executables for analysisFrank Ch. Eigler2009-03-213-16/+20
| | | | | | | | | | | | * 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.
| * 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.
* | Emit vma callbacks for uprobes.Mark Wielaard2009-03-201-1/+2
| | | | | | | | | | | | | | | | * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Emit vma callbacks. (uprobe_derived_probe_group::emit_module_init): Activate vma callbacks. * testsuite/systemtap.context/usymbols.exp: Track through uprobes, so as to make sure we have the symbols.
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-201-5/+2
|\|
| * rename process().itrace -> process().insn introduce process().insn.blockFrank Ch. Eigler2009-03-191-5/+2
| |
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-189-35/+80
|\|
| * 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.
* | Make stap_run send_log of command to execute.Mark Wielaard2009-03-181-0/+1
| | | | | | | | * testsuite/lib/stap_run.exp (tap_run): Add send_log of cmd.
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-1766-129/+617
|\| | | | | | | | | Resolved conflicts: runtime/task_finder.c: name vs path.
| * 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.