summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base
Commit message (Collapse)AuthorAgeFilesLines
...
* Added utrace exec probes.David Smith2008-04-181-0/+9
| | | | | | | | | | | | | | | 2008-04-18 David Smith <dsmith@redhat.com> * tapsets.cxx (struct utrace_builder): Added exec probes. (utrace_derived_probe_group::emit_probe_decl): Ditto. (utrace_derived_probe_group::emit_module_decls): Ditto. (register_standard_tapsets): Ditto. * stapprobes.5.in: Added information about exec probes. * NEWS: Added information about utrace probes. 2008-04-18 David Smith <dsmith@redhat.com> * systemtap.base/utrace_p4.exp: Added exec probe test.
* Rewrote utrace buildok tests to check for kernel utrace support.David Smith2008-04-181-0/+97
| | | | | | | | | | 2008-04-18 David Smith <dsmith@redhat.com> * buildok/utrace01.stp: Removed. * buildok/utrace02.stp: Ditto. * buildok/utrace03.stp: Ditto. * systemtap.base/utrace_p4.exp: Rewrote buildok tests to check for kernel utrace support.
* PR2949: listings mode (stap -l PROBE)Frank Ch. Eigler2008-04-101-0/+9
| | | | | | | | | | | | | | | | 2008-04-10 Frank Ch. Eigler <fche@elastic.org> PR 2949. * session.h (listing_mode): New field. * main.cxx (main): Test it. Enjoy it. (usage): Document it. * stap.1.in, stapex.5.in: Ditto. * elaborate.cxx (print_error): Disable error messages in listing mode. 2008-04-10 Frank Ch. Eigler <fche@elastic.org> PR 2949 * systemtap.base/cmd_parse.exp: Add "-l" listing test.
* 2008-03-27 Frank Ch. Eigler <fche@elastic.org>fche2008-03-271-1/+2
| | | | * systemtap.base/cmd_parse.exp: Don't assume $SHELL=bash.
* * systemtap.base/maxactive.exp, probefunc.exp: Standardize pass msg.fche2008-03-152-2/+2
|
* 2008-02-27 David Smith <dsmith@redhat.com>dsmith2008-02-271-2/+1
| | | | * systemtap.base/marker.exp: Added better path to Module.markers.
* PR5792: wildcard support for %( kernel/arch %) preprocessor operandsfche2008-02-261-0/+52
| | | | | | | | | | | | | | 2008-02-25 Frank Ch. Eigler <fche@elastic.org> PR5792. * parse.cxx (eval_pp_conditional): Support wildcards in %( kernel_v/kernel_vr/arch ==/!= "*foo?" %) operands. * NEWS, stap.1.in: Document this. 2008-02-25 Frank Ch. Eigler <fche@elastic.org> PR5792. * systemtap.base/preprocessor.exp: New test.
* PR5770: false systemtap/eof/timeout messages in testsuite.logfche2008-02-232-3/+4
| | | | | | | 2008-02-23 Frank Ch. Eigler <fche@elastic.org> * */*.exp: Change all "send \003" to "exec kill -INT -<pgrp>" in order to more reliably kill an inferior stap/stapio/staprun process group.
* PR5787, PR2608: .statement(NUM) probing fixesfche2008-02-231-0/+31
| | | | | | | | | | | | | | | | | | | 2008-02-22 Frank Ch. Eigler <fche@elastic.org> PR5787, PR2608, .statement() * tapsets.cxx (query_dwarf_func): Process .statement(NUM) probes too. (query_cu): Ditto. (query_func_info): Bypass prologue searching for .statement() probes. (query_cu): Ditto. (build_blacklist): Remove unsightly empty first alternative in "^(|foo)$" regexps. Show them for -vvv. * buildrun.cxx (compile_pass): Don't turn on "gcc -Q" on until -vvvv. 2008-02-22 Frank Ch. Eigler <fche@elastic.org> * systemtap.base/stmtvars.exp: New test for PR 5787.
* 2008-02-21 Will Cohen <wcohen@redhat.com>wcohen2008-02-211-0/+1
| | | | * systemtap.base/beginenderror.exp: Increase timeout for slow machines.
* 2008-02-20 David Smith <dsmith@redhat.com>dsmith2008-02-201-3/+38
| | | | | * systemtap.base/marker.exp: Added tests for marker probe ".format" component.
* Restore accidently deleted line.hunt2008-02-071-0/+1
|
* 2008-02-07 Martin Hunt <hunt@redhat.com>hunt2008-02-071-2/+3
| | | | | * systemtap.base/debugpath.exp: Remove explicit closes. Stap will terminate without help, and cleanup after itself.
* 2008-02-06 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-02-061-0/+7
| | | | | * systemtap.base/cmd_parse.exp: Added 'wait' between tests for preventing unexpected EOF.
* 2008-02-06 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-02-061-0/+2
| | | | | | | | | | | * systemtap.base/procfs.exp: Added PROCFS.ko cleanup. * systemtap.context/context.exp: Added cleanup call. * systemtap.printf/end1b.exp: Passed evaluated command string to as_root. * systemtap.printf/mixed_outb.exp: Ditto. * systemtap.printf/out1b.exp: Ditto. * systemtap.printf/out2b.exp: Ditto. * systemtap.printf/out3b.exp: Ditto.
* 2008-02-04 David Smith <dsmith@redhat.com>dsmith2008-02-041-1/+45
| | | | | | PR 4446. * systemtap.base/marker.exp: Added tests for marker "$format" variable.
* PR2521: configurable debuginfo search pathfche2008-01-231-0/+18
| | | | | | | | | | | 2008-01-23 Frank Ch. Eigler <fche@elastic.org> PR 2151 * tapsets.cxx (dwflpp::setup): Parametrize debuginfo_path. * stap.1.in: Document this. PR 2521. * systemtap.base/debugpath.exp: New test.
* 2008-01-16 David Smith <dsmith@redhat.com>dsmith2008-01-161-2/+38
| | | | | | PR 5608. * systemtap.base/marker.exp: Added 2 tests for treating marker arguments incorrectly.
* PR 4935. * systemtap.base/onoffprobe.*: Toughen test.fche2008-01-152-48/+42
|
* 2008-01-04 David Smith <dsmith@redhat.com>dsmith2008-01-041-1/+1
| | | | | * systemtap.base/marker.exp: Improved regexp that finds markers with arguments.
* 2007-12-05 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-12-052-0/+92
| | | | | | | | | | | | | | | | | | PR 4935 * tapsets.cxx (dwarf_derived_probe::dwarf_derived_probe): Allow user to access kernel variables in the condition of probe points. * stapprobes.5.in : Document the conditional probe point. * NEWS : Ditto. * parseok/five.stp: Add an example of conditional probe point. * parseko/probepoint04.stp: New test for conditional probe point. * parseko/probepoint05.stp: Ditto. * parseko/probepoint06.stp: Ditto. * parseko/probepoint07.stp: Ditto. * parseko/probepoint08.stp: Ditto. * parseko/probepoint09.stp: Ditto. * semok/twentynine.stp: Ditto. * semko/thirtynine.stp: Ditto. * systemtap.base/onoffprobe.*: Ditto.
* 2007-11-29 David Smith <dsmith@redhat.com>dsmith2007-11-291-17/+21
| | | | | | * systemtap.base/marker.exp: Gets marker list from Module.markers. K_MARKER03 is always run since it is designed to fail.
* 2007-11-15 David Smith <dsmith@redhat.com>dsmith2007-11-151-263/+4
| | | | | * systemtap.base/marker.exp: Removed 'module("foo").mark("bar")' tests since that facility was removed.
* 2007-11-12 Martin Hunt <hunt@redhat.com>hunt2007-11-1218-103/+108
| | | | | | | | * systemtap.base/*.stp: Replace log() calls with println() (or printf() if formatting would help.) * systemtap.maps/*.stp: Ditto. * systemtap.samples/*.stp: Ditto. * systemtap.stress/*.stp: Ditto.
* PR1119: unused variable elision warningsfche2007-10-062-0/+25
| | | | | | | | | | | | | | | | | | 2007-10-05 Frank Ch. Eigler <fche@elastic.org> PR 1119 * elaborate.cxx (semantic_pass_opt[12]): Warn on elided variables/functions in user script. * session.h (suppress_warnings): New field. Change "timing" to plain old bool. * main.cxx (main): Configure warnings on by default. * stap.1.in: Document this. PR 1119. * systemtap.base/warnings.*: New test. * futexes.stp, sig_by_proc.stp, small_demos/rwtiming.stp: Fix elision warnings.
* 2007-10-02 Frank Ch. Eigler <fche@redhat.com>fche2007-10-022-0/+27
| | | | | | | | | | | | | | | | | | | PR 5078 * tapsets.cxx (be_derived_probe): Rework to add error probe support. Emit probe description array in C for traversal by generated code. * register_standard_tapsets: Add error probes. * stapprobes.5.in: Document. * translate.cxx (emit_module_init): Handle errors that may occur during begin probes. (emit_module_exit): Use schedule() rather than cpu_relax() during shutdown synchronization wait loop. * staptree.cxx (probe::printsig): Put multiple probe points on same line. 2007-10-02 Frank Ch. Eigler <fche@redhat.com> PR 5078 * semok/twentysix.stp, systemtap.base/beginenderror.*: New tests.
* 2007-09-25 David Smith <dsmith@redhat.com>dsmith2007-09-251-1/+2
| | | | | * systemtap.base/marker.exp: Improved regexp to work correctly on kernels with no markers.
* 2007-09-25 David Smith <dsmith@redhat.com>dsmith2007-09-251-7/+37
| | | | | * systemtap.base/marker.exp: Updated for the 9/18/2007 markers patch.
* 2007-09-22 Frank Ch. Eigler <fche@elastic.org>fche2007-09-221-1/+1
| | | | * systemtap.base/optim.exp: Wait for both result lines.
* rhbz 300121: optimization bugfche2007-09-212-1/+7
|
* 2007-09-18 David Smith <dsmith@redhat.com>dsmith2007-09-181-0/+112
| | | | | | * systemtap.base/procfs.exp: New test case. * lib/stap_run.exp (stap_run): Handles the case where the stap '-m' option was used.
* 2007-09-13 Martin Hunt <hunt@redhat.com>hunt2007-09-132-0/+89
| | | | | * systemtap.base/limits.exp: New. Test 32 and 64-bit integer extremes.
* 2007-08-21 Frank Ch. Eigler <fche@elastic.org>fche2007-08-211-1/+2
| | | | | PR 4942 * systemtap.base/kmodule.stp: Add "never" probe for type inference.
* 2007-08-20 Martin Hunt <hunt@redhat.com>hunt2007-08-201-0/+69
| | | | | * systemtap.base/cmd_parse.exp: New file. Test command parsing for "-c".
* 2007-08-16 Josh Stone <joshua.i.stone@intel.com>jistone2007-08-172-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | PR 4591 * parse.cxx (parser::parse_symbol): Tweak 'print' matching to allow all the new variants with printd and println. * staptree.h (struct print_format): Add fields for the new print variants, and parse_print() to help matching. * staptree.cxx (print_format::parse_print): New static method to match the print variants and determine their properties. (print_format::print): Handle the new print types. (deep_copy_visitor::visit_print_format): Copy the new fields. * translate.cxx (c_unparser::visit_print_format): Insert delims and newlines where appropriate for new print functions. * stap1.in: Document the new print functions. testsuite/ * lib/stap_run.exp: Make sure to match the entire output, in case there are multiple pass/fail messages. * buildok/printf.stp: Add lines for new print variants. * parseko/printd01.stp: Make sure that bad printd calls are handled. * parseko/printd02.stp: Ditto. * parseko/printd03.stp: Ditto. * parseko/printd04.stp: Ditto. * systemtap.base/print.stp: Try a bunch of different print calls. * systemtap.base/print.exp: Driver for above.
* 2007-07-26 David Smith <dsmith@redhat.com>dsmith2007-07-261-0/+2
| | | | | | | PR 4295 * systemtap.samples/args.exp: Tests to make sure the '-m' option leaves a module in the current directory. * systemtap.base/cache.exp (stap_compile): Added cleanup.
* 2007-06-18 Martin Hunt <hunt@redhat.com>hunt2007-06-184-6/+14
| | | | | | | | | | | | | | | | | | From Quentin Barnes. * lib/stap_run.exp, lib/stap_run2.exp, lib/systemtap.exp, systemtap.base/cache.exp, systemtap.base/optim.exp, systemtap.base/overload.exp, systemtap.base/prologues.exp, systemtap.maps/absentstats.exp, systemtap.maps/foreach_fail.exp, systemtap.maps/ix_clear*.exp, systemtap.maps/pmap_agg_overflow.exp, systemtap.samples/args.exp, systemtap.samples/arith.exp, systemtap.samples/arith_limits.exp, systemtap.samples/control_limits.exp, systemtap.samples/lket.exp, systemtap.samples/pfaults.exp, systemtap.samples/poll_map.exp, systemtap.samples/primes.exp, systemtap.samples/profile.exp, systemtap.samples/queue_demo.exp, systemtap.samples/symbols.exp, systemtap.samples/syscalls1.exp, systemtap.samples/syscalls2.exp, systemtap.samples/transport.exp: Small fixes to patterns, plus fix timeouts for slower systems.
* 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
|