summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base
Commit message (Collapse)AuthorAgeFilesLines
...
* 2007-06-05 Frank Ch. Eigler <fche@redhat.com>fche2007-06-062-0/+38
| | | | | | | | | | | | | PR 3331. * loc2c.c (emit_base_fetch): Emit size/signedness cast for every low-level fetch. (translate_base_fetch, c_translate_fetch, c_translate_store, c_translate_pointer): Fetch & pass the $target signedness. 2007-06-05 Frank Ch. Eigler <fche@elastic.org> PR 3331. * systemtap.base/deref2.*: New test, disabled.
* 2007-06-04 Frank Ch. Eigler <fche@elastic.org>fche2007-06-042-8/+15
| | | | | PR 4589. * systemtap.base/optim.*: Rewritten, simplified.
* 2007-05-30 Frank Ch. Eigler <fche@redhat.com>fche2007-05-302-0/+15
| | | | | | | | | | | | | | | | PR 4567. * staptree.cxx (varuse_collecting_visitor): Add side-effect result query functions. * elaborate.cxx (dead_stmtexpr_remover::visit_expr_statement): Switch to it. (dead_assignment_remover::visit_assignment): Skip elision of lvalues with side-effects in index exprs. * staptree.h: Corresponding changes. 2007-05-30 Frank Ch. Eigler <fche@redhat.com> PR 4567. * systemtap.base/optim.stp, optim.exp: New test.
* 2007-05-24 David Smith <dsmith@redhat.com>dsmith2007-05-241-27/+78
| | | | | | | PR4446 * systemtap.base/marker.exp: Renumbered tests and added new tests for invalid argument name ("$foo1") and writing to marker arguments.
* 2007-05-23 David Smith <dsmith@redhat.com>dsmith2007-05-231-0/+331
| | | | | | PR4446 * systemtap.base/marker.exp: Added new marker test. * buildok/marker.stp: Removed old marker test.
* 2007-03-30 Frank Ch. Eigler <fche@redhat.com>fche2007-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR 1570 * NEWS: Document probe handler language change re. inline functions. * stapprobes.5.in: Likewise. * tapsets.cxx: Many changes to simplify caches and implement new handling of inline functions, removed of stubs for future probes. * elaborate.cxx (derived_probe printsig_nested): New function. * elaborate.h: Declare it. * main.cxx (usage): Clarify "-r" meaning. (main): Tweak related "-p 4" message. 2007-03-30 Frank Ch. Eigler <fche@elastic.org> PR 1570. * memory.stp, scheduler.stp, signal.stp, LKET/signal.stp: Adapt to .inline -> .function change. 2007-03-30 Frank Ch. Eigler <fche@elastic.org> PR 1570 * */*.stp: Adapt to .inline -> .function change. * lib/stap_run.exp, stap_run2.exp, stap_run_binary.exp: Shorten pass/fail dejagnu log lines. * systemtap.syscall/sys.stp, test.tcl: Make slightly more compatible and failure more verbose.
* 2007-03-22 Frank Ch. Eigler <fche@elastic.org>fche2007-03-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | PR 4224. * staptree.h (probe): Add privileged field. * elaborate.cxx, parse.cxx: Pass privileged flag to probes. * tapsets.cxx (dwarf_query): Add has_absolute field. (dwarf_derived_probe ctor): Tolerate it. (register_patterns): Expose it. (dwarf_builder::build): Implement it with no dwfl whatsoever. * NEWS: Document kernel.statement().absolute. * stapprobes.5.in: Ditto. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> PR 4224. * systemtap.base/probefunc.exp: Use kernel.statement().absolute instead with grep-found schedule_tick address. * semko/thirtyseven.stp, thirtyeight.stp: New tests. * buildok/twentyeight.stp: New test. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> * sym.c (_stp_module_relocate): Tolerate empty section string.
* 2007-03-16 David Smith <dsmith@redhat.com>dsmith2007-03-161-0/+83
| | | | * systemtap.base/overload.exp: New test.
* 2007-03-13 Frank Ch. Eigler <fche@redhat.com>fche2007-03-141-2/+2
| | | | | | | | | | | | | | | | | | | | PR 4171. * Makefile.am (check, installcheck): Pass build-tree pointers in environment variables. * configure.ac: Run separate configury for testsuite/. * configure, Makefile.in: Regenerated. 2007-03-14 Frank Ch. Eigler <fche@redhat.com> PR 4171. * configure.ac, configure, aclocal.m4: New files to permit testsuite-only build tree. * Makefile.am (RUNTEST): Arrange a crazy concoction of environment/make variable for runtest. * Makefile.in: Regenerated. * */*.stp: Switch test cases from "./stap" to "stap" throughout. * lib/systemtap.exp: Assume/trace environment variables. (stap_run_batch): Add "#! stap"-handling hack.
* 2007-03-14 Martin Hunt <hunt@redhat.com>hunt2007-03-143-14/+16
| | | | | | | | | | | * systemtap.base/div0.stp: Fix so output won't possibly have the error message before the printed output. * systemtap.base/maxactive.exp: Ditto. * systemtap.maps/ix_clear.stp: Ditto. * systemtap.maps/ix_clear2.stp: Ditto. * systemtap.samples/args.exp: Remove obsolete "-r" option to staprun.
* 2007-03-06 David Smith <dsmith@redhat.com>dsmith2007-03-061-2/+2
| | | | | | * systemtap.base/alternatives.exp: Changed the probed kernel function from 'signal_wake_up' (which wasn't present on some kernels) to 'sys_getrlimit'.
* 2007-02-16 David Smith <dsmith@redhat.com>dsmith2007-02-161-0/+46
| | | | * systemtap.base/alternatives.exp: New test case.
* * d'oh - disable tests unless [installtest_p]fche2007-02-091-16/+21
|
* 2007-02-09 Frank Ch. Eigler <fche@elastic.org>fche2007-02-092-0/+27
| | | | | | | | | | | | | | | | PR 3965 * configure.ac: Add --enable-prologue option. * configure, config.in: Regenerated. * session.h (prologue_searching): New field. * main.cxx (main): Parse new "-P" option. Initialize based on autoconf flag. * stap.1.in, NEWS: Document it. * hash.cxx (find_hash): Include it in computation. * tapsets.cxx (query_func_info, query_cu): Respect it. 2007-02-09 Frank Ch. Eigler <fche@elastic.org> * systemtap.base/prologue.*: New test case.
* 2007-02-06 Josh Stone <joshua.i.stone@intel.com>jistone2007-02-061-0/+36
| | | | | | | | runtime/ * loc2c-runtime.h (kread): Let it work with const types. testsuite/ * systemtap.base/deref.stp: Test kread with const sources.
* 2007-01-29 Frank Ch. Eigler <fche@elastic.org>fche2007-01-291-0/+2
| | | | | | | | | * main.cxx (main): For successful last_pass=4, print compiled module name. * cache.cxx (get_from_cache): Ditto. 2007-01-29 Frank Ch. Eigler <fche@elastic.org> * systemtap.base/cache.exp (stap_compile): Accept new -p4 output.
* 2007-01-22 Josh Stone <joshua.i.stone@intel.com>jistone2007-01-231-58/+85
| | | | | | | | | runtime/ * loc2c-runtime.h (kread, kwrite): Tweaks to work better with reading and writing pointer values. testsuite/ * systemtap.base/deref.stp: Rewrite test, and now also check the ability to read/write pointers.
* 2007-01-22 Frank Ch. Eigler <fche@redhat.com>fche2007-01-2220-44/+1
| | | | | | | * config/unix.exp: New file as a master load_lib repository. * */*.exp: Removed load_lib calls. * parseko/cmdline01.stp: Swallow expected stap ERROR: message. * systemtap.syscall/syscall.exp: Added installmode_p checks.
* Updated kmodule.stp test to look for other modules when ext3 isn't a module.mmason2007-01-211-1/+3
|
* 2007-01-19 Josh Stone <joshua.i.stone@intel.com>jistone2007-01-202-10/+37
| | | | | | | | | | | | | PR 3079 runtime/ * loc2c-runtime.h (kread, kwrite): New macros to safely read/write values from kernel pointers. This includes a workaround for 64-bit numbers on i386 platforms. testsuite/ * systemtap.base/deref.stp: Use the new kread macro that should work fine with 64-bit numbers on i386 platforms. Also expand the test to include writes with kwrite. * systemtap.base/deref.exp: Remove the setup_kfail.
* 2006-12-29 Frank Ch. Eigler <fche@redhat.com>fche2006-12-302-2/+2
| | | | | | | | | | | | | | | PR 3523. * tapsets.cxx (common_probe_entryfn_prologue,epilogue): Restore support for -t (benchmarking) mode. * translate.cxx (emit_common_header,emit_module_init):Ditto. (emit_module_exit,emit_probe): Ditto, with most meat here. 2006-12-29 Frank Ch. Eigler <fche@redhat.com> PR 3523. * buildok/fourteen.stp, fourteen-plus.stp: Tweak & add a test. * systemtap.base/bench.stp: Work around randomized-ordered probes. * systemtap.base/bench.exp: Tighten output requirements.
* 2006-12-22 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-222-0/+37
| | | | | | | | | | * stap.1.in: Document how to specify the size of global arrays. testsuite/ * buildok/array_size.stp, parseko/array01.stp, parseko/array02.stp, parseko/array03.stp, parseko/array04.stp, transko/array01.stp, systemtap.base/array_size.exp, systemtap.base/array_size.stp: Tests for specifying the size of global arrays.
* 2006-12-22 David Smith <dsmith@redhat.com>dsmith2006-12-221-0/+10
| | | | | | * systemtap.base/cache.exp: Added test to ensure that using '-M' and '-t' changes the hash. The '-t' test is commented out until PR3523 is fixed.
* 2006-12-21 David Smith <dsmith@redhat.com>dsmith2006-12-211-0/+4
| | | | | * systemtap.base/cache.exp: Added test to ensure that using '-b' changes the hash.
* 2006-12-18 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-192-0/+55
| | | | | | * systemtap.base/deref.exp, systemtap.base/deref.exp: Add a test for successfully dereferencing pointers of various sizes. This is known to fail on x86 for 64-bit values -- PR 3079.
* 2006-12-08 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-093-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR 3681. * staptree.h (struct vardecl): Add a literal 'init' member for the initialization value of globals. * staptree.cxx (vardecl::vardecl): Initialize 'init' to NULL. (vardecl::print): Print global init value during pass-1 output. * main.cxx (printscript): Print global init values during verbose pass-2 output. * parse.cxx (parser::parse_global): Set the initialization literal of global vardecls. * translate.cxx (var::init): Don't unconditionally override the value of numeric globals when the module_param isn't used. (c_unparser::emit_global_param): Write numeric module_params directly into the global variable, as an int64_t instead of long. (c_unparser::emit_global): Add initialization to global declarations. Don't create a temp module_param long for numeric globals anymore. runtime/ * runtime.h (param_set_int64_t, param_get_int64_t, param_check_int64_t): New functions to allow taking module parameters directly as int64_t values. testsuite/ * systemtap.base/global_init.exp, systemtap.base/global_init.stp: New test for checking the timeliness of global initialization.
* 2006-12-07 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-084-5/+52
| | | | | | | | | | | | | | | | | | | | | | | PR 3624. * tapsets.cxx (struct be_derived_probe): Add a new priority parameter for begin/end probes, and a comparison function for sorting. (be_builder::build): Parse the priority & pass it to be_derived_probe. (be_derived_probe_group::emit_module_init, emit_module_exit): Sort the probe list by priority before emitting any code. (register_standard_tapsets): Add new begin/end variants. * parse.cxx (parser::parse_literal): Allow negative numeric literals, by checking for a '-' unary operator right before a number. testsuite/ * systemtap.base/be_order.exp, systemtap.base/be_order.stp, semok/beginend.stp: New tests for begin/end priorities. * lib/stap_run.exp: Anchor OUTPUT_CHECK_STRING to the end of output. * systemtap.base/maxactive.exp: Fix to compare output to the end. * systemtap.base/probefunc.exp: Ditto. * systemtap.samples/ioblocktest.exp: Ditto. * systemtap.samples/ioblocktest.stp: Ditto. * systemtap.samples/tcptest.exp: Ditto.
* 2006-11-10 David Smith <dsmith@redhat.com>dsmith2006-11-101-52/+8
| | | | | | | | | | | * semko/maxactive03.stp: Stop on pass2 instead of on pass1. * lib/stap_run.exp: As a side-effect, stap_run() sets global 'probe_errors' and 'skipped_probes' to the number of probe errors and skipped probes seen while running the probe. * systemtap.base/maxactive.exp: Uses extended stap_run() to find number of skipped probes instead of using private stap_run() variant.
* 2006-11-09 David Smith <dsmith@redhat.com>dsmith2006-11-091-0/+103
| | | | | | | | | | | | | * buildok/maxactive01.stp: Added test for "maxactive(N)" return probe processing. * parseko/maxactive01.stp: Ditto. * parseko/maxactive02.stp: Ditto. * parseko/maxactive03.stp: Ditto. * parseko/maxactive04.stp: Ditto. * semko/maxactive01.stp: Ditto. * semko/maxactive02.stp: Ditto. * semko/maxactive03.stp: Ditto. * systemtap.base/maxactive.exp: Ditto.
* 2006-10-30 Josh Stone <joshua.i.stone@intel.com>jistone2006-10-301-1/+2
| | | | | * systemtap.base/timers.stp: Fudge the comparison a bit between jiffies(1) and profile to allow for slop between start/end times.
* 2006-10-30 David Smith <dsmith@redhat.com>dsmith2006-10-301-0/+8
| | | | | | | | | | | | | * systemtap.base/cache.exp: Saves value of SYSTEMTAP_DIR environment variable before starting tests and restores value at the end. Without this caching was broken for the rest of the testsuite, since all cached files were ending up in testsuite/.cache_test (which gets deleted on the next run of the testsuite). * Makefile.am: The 'clean-local' target now removes the .systemtap and .cache_test directories. * Makefile.in: Regenerated.
* 2006-10-30 Martin Hunt <hunt@redhat.com>hunt2006-10-301-1/+1
| | | | | * systemtap.base/cache.exp (stap_compile): Fix a simple buffering problem with expect.
* 2006-10-26 David Smith <dsmith@redhat.com>dsmith2006-10-261-0/+110
| | | | | | | | * systemtap.base/cache.exp: New file that tests caching functionality. * lib/systemtap.exp (setup_systemtap_environment): Use a local systemtap directory/cache (instead of the user's cache). * .cvsignore: Added .systemtap directory.
* Better output for debugging.hunt2006-09-281-21/+21
|
* 2006-08-12 Frank Ch. Eigler <fche@elastic.org>fche2006-08-1230-0/+668
* configure.ac, Makefile.am: Descend into testsuite/ directory. Remove local test logic. * configure, Makefile.in: Regenerated. * runtest.sh: Not yet removed. * HACKING: Update for new testsuite layout. 2006-08-12 Frank Ch. Eigler <fche@elastic.org> * all: Reorganized old pass-1..4 tests one dejagnu bucket. Moved over old pass-5 tests, except for disabled syscalls tests. * Makefile (installcheck): New target for running pass-1..5 tests against installed systemtap.