summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* 2008-02-13 Dave Brolley <brolley@redhat.com>brolley2008-02-133-0/+18
| | | | | | | | | | | | | | | | | PR5609 * staptree.h (probe::collect_derivation_chain): Now takes vector<probe*>. (probe::get_alias): New virtual method. * elaborate.h (derived_probe::collect_derivation_chain): Now takes vector<probe*>. * staptree.cxx (probe::collect_derivation_chain): Now takes vector<probe*>. Don't cast 'this' to (derived_probe*). * elaborate.cxx (derived_probe::collect_derivation_chain): Now takes vector<probe*>. (alias_derived_probe::get_alias): New virtual method. (alias_derived_probe::alias): New member. (alias_expansion_builder::build): Call checkForRecursiveExpansion and emit a diagnostic if recursion is detected. Pass alias to constructor of alias_derived_probe. (alias_expansion_builder::checkForRecursiveExpansion): New method. * coveragedb.cxx: Pass vector<probe*> on all calls to collect_derivation_chain.
* 2008-02-12 Frank Ch. Eigler <fche@elastic.org>fche2008-02-136-7/+32
| | | | | | | | * systemtap.context/context.exp: Build temporary modules under build tree, to tolerate read-only source trees. * {args,backtrace,pid}.tcl: Corresponding changes. * systemtap_test_module2.c: Add a bunch of asm("")'s to prevent inlining even better than noinline does.
* PR4393: fix relocatable-kernel global $variable accessfche2008-02-122-1/+4
| | | | | | | | | | | | | 2008-02-12 Frank Ch. Eigler <fche@elastic.org> PR 4393 * tapsets.cxx (emit_address): Support relocatable kernels. (dwarf_derived_probe ctor): Hack around for missing USHRT_MAX. * elaborate.cxx (semantic_pass): Increment rc if exception caught. 2008-02-12 Frank Ch. Eigler <fche@elastic.org> * systemtap.pass1-4/buildok.exp: No longer kfail buildok/seventeen.
* Restore accidently deleted line.hunt2008-02-071-0/+1
|
* 2008-02-07 Martin Hunt <hunt@redhat.com>hunt2008-02-072-2/+8
| | | | | * 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-063-4/+17
| | | | | | | | | | | | * stack-ia64.c (__stp_show_stack_sym): Skip printing symbol if (ip == REG_IP(regs)). 2008-02-06 Masami Hiramatsu <mhiramat@redhat.com> * systemtap.context/backtrace.tcl: Fixed regular expressions and Added new expression for return probe on ia64. * systemtap.context/backtrace.stp(print_all_trace_info): Added trace point output before calling print_stack().
* 2008-02-06 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-02-062-0/+12
| | | | | * systemtap.base/cmd_parse.exp: Added 'wait' between tests for preventing unexpected EOF.
* 2008-02-06 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-02-068-22/+34
| | | | | | | | | | | * 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-042-1/+51
| | | | | | PR 4446. * systemtap.base/marker.exp: Added tests for marker "$format" variable.
* 2008-02-01 Martin Hunt <hunt@redhat.com>hunt2008-02-017-35/+112
| | | | | | PR4736 * systemtap.printf/stap_merge.tcl: Copied here so it will always be available.
* 2008-01-31 Will Cohen <wcohen@redhat.com>wcohen2008-01-312-0/+5
| | | | * systemtap.pass1-4/buildok.exp: Add some kfails.
* Allow "make clean" to succeed even if root-owned .systemtap/cache/* files exist.fche2008-01-293-4/+10
| | | | | | | | 2008-01-29 Frank Ch. Eigler <fche@elastic.org> * Makefile.am (clean-local): Allow "rm -rf" to fail due to root-owned .ko files in the local cache. * Makefile.in: Regenerated.
* perms2fche2008-01-289-0/+0
|
* PR5673: reduce total size of generated .ko's from wildly wildcarded scriptsfche2008-01-263-0/+15
| | | | | | | | | | | | | | | 2008-01-26 Frank Ch. Eigler <fche@elastic.org> PR 5673. * tapsets.cxx (dwarf_derived_probe_group): Split stap_dwarf_probes[] into bss-carried kprobes structs. Tune embedded strings for minimizing relocation-vs-fixed-buffer wastage. * tapsets.cxx (dwarf_derived_probe): Impose .maxactive() limits. 2008-01-26 Frank Ch. Eigler <fche@elastic.org> PR 5673. * testsuite/parseko/maxactive{04,05}.stp: New tests.
* typo fixfche2008-01-251-1/+1
|
* staplog crash(8) module testsfche2008-01-257-3/+77
| | | | | | | | | | | | | | | | 2008-01-24 Frank Ch. Eigler <fche@elastic.org> * Makefile.am: Make another $(MKDIR) call visible. * Makefile.in: Regenerated. 2008-01-24 Frank Ch. Eigler <fche@elastic.org> crash(8) tests, based on Masami Hiramatsu <mhiramat@redhat.com>: * Makefile.am (CRASH_LIBDIR): Pass in $(RUNTEST). * lib/systemtap.exp (as_root): Trace command string, output, and result. * sysetmtap.samples/crash.*, testlog.stp: New test case. * Makefile.in: Regenerated.
* PR2521: configurable debuginfo search pathfche2008-01-232-0/+23
| | | | | | | | | | | 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.
* bump to version 0.6.1 in prep for snapshot releasefche2008-01-183-11/+16
| | | | | | | 2008-01-18 Frank Ch. Eigler <fche@elastic.org> * configure.ac, systemtap.spec.in: Update version to 0.6.1 * configure: Regenerated.
* PR 4936: probe pont conditions part 2; reorg in prep for full rewritingfche2008-01-185-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-17 Frank Ch. Eigler <fche@elastic.org> PR 4935. Reorganize probe condition implementation. * elaborate.cxx (add_condition): New function. (derived_probe): Remove condition member. (derived_probe ctors): Assert non-null incoming probe/location ptrs. (insert_condition_statement): Remove; turn into ... (semantic_pass_conditions): New pass-2 subpass. (semantic_pass_symbols, visit_symbol, visit_functioncall, find_var): Detect some condition-related error cases. (match_key): Change type to exp_type from tok_type. Update callers. (alias_expansion_builder): Propagate probe conditions. * staptree.cxx (probe): Remove condition field and related functions. * tapsets.cxx (dwarf_derived_probe ctor): Compute replacement wildcard-expanded probe_point preserving more of the original location. (mark_derived_probe ctor): Make similar to others - take location rather than condition parameters. * translate.cxx (emit_common_header): Tweak ordering of tmpcounter traversal and hashkey expression generation. * elaborate.h: Corresponding changes. 2008-01-17 Frank Ch. Eigler <fche@elastic.org> PR 4935. * semko/forty.stp, fortyone.stp, fortytwo.stp: New tests. * semok/twentynine.stp: Weaken test since condition expressions have become more tightly constrained.
* 2008-01-17 David Smith <dsmith@redhat.com>dsmith2008-01-173-0/+14
| | | | | | * semko/procfs11.stp: Added test for invalid use of procfs probe '$value' target variable. * semko/procfs12.stp: Ditto.
* 2008-01-16 David Smith <dsmith@redhat.com>dsmith2008-01-162-2/+44
| | | | | | PR 5608. * systemtap.base/marker.exp: Added 2 tests for treating marker arguments incorrectly.
* 2008-01-16 Eugene Teo <eteo@redhat.com>eteo2008-01-162-0/+10
| | | | | | | | | | | | | | | | | | | | | | * stapfuncs.5.in: Document signal.stp tapset functions. 2008-01-16 Eugene Teo <eteo@redhat.com> * signal.stp (get_sa_flags, get_sa_handler): New functions to return addresses of sa_flags and sa_handler of struct k_sigaction. (sigset_mask_str): New function. Returns a string containing the set of signals to be blocked when executing the signal handler. (is_sig_blocked): New function. Checks task_struct->blocked signal mask for signals that are currently blocked. (signal_str): New function. Translates a signal number. (sa_flags_str): New function. Translates the sa_flags. (sa_handler_str): New function. Returns the signal action or handler associated to the signal. 2008-01-16 Eugene Teo <eteo@redhat.com> * buildok/signal-embedded.stp: Add all new embedded C functions in signal.
* PR 4935. * systemtap.base/onoffprobe.*: Toughen test.fche2008-01-153-48/+47
|
* add git commit id as testsuite Snapshot fieldfche2008-01-132-1/+7
| | | | | | | | | | | | 2008-01-12 Frank Ch. Eigler <fche@elastic.org> * configure.ac: Generate a build tree SNAPSHOT file from git-rev-list, if we suspect the source tree came from git. * configure: Regenerated. 2008-01-12 Frank Ch. Eigler <fche@elastic.org> * lib/systemtap.exp (get_system_info): Look for $builddir/SNAPSHOT too.
* 2008-01-09 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-01-093-1/+26
| | | | | | PR5554 * systemtap.syscall/alarm.c: Fix expected output patterns on ia64. * systemtap.syscall/stat.c: Ditto.
* 2008-01-09 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-01-092-3/+13
| | | | | PR5544 * lib/stap_run.exp (stap_run): Support warning before ending probe.
* Put the ChangeLog entry in the correct place.wcohen2008-01-071-0/+9
|
* 2008-01-07 William Cohen <wcohen@redhat.com>wcohen2008-01-077-24/+36
| | | | | | | | | | * testsuite/lib/systemtap.exp (as_root): new proc. * testsuite/systemtap.context/context.exp: * testsuite/systemtap.printf/end1b.exp: * testsuite/systemtap.printf/mixed_outb.exp: * testsuite/systemtap.printf/out1b.exp: * testsuite/systemtap.printf/out2b.exp: * testsuite/systemtap.printf/out3b.exp: Use as_root proc.
* 2008-01-04 David Smith <dsmith@redhat.com>dsmith2008-01-042-1/+6
| | | | | * systemtap.base/marker.exp: Improved regexp that finds markers with arguments.
* 2007-12-12 Martin Hunt <hunt@redhat.com>hunt2007-12-126-12/+44
| | | | | | | | | | | Detect crashing stap and report as a test failure. * lib/systemtap.exp (stap_run_batch): Return -1 if stap crashed. * systemtap.pass1-4/buildko.exp: If stap_run_batch returned -1 then mark test as failed. * systemtap.pass1-4/parseko.exp: Ditto. * systemtap.pass1-4/semko.exp: Ditto. * systemtap.pass1-4/transko.exp: Ditto.
* 2007-12-05 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-12-0512-0/+154
| | | | | | | | | | | | | | | | | | 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-12-03 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-12-032-2/+8
| | | | | | | | | | | | | PR 5376 * parse.cxx (lexer::scan): Treat '*' as an alphabet if the wildcard flag is true. (parser::parse_probe_point): Call parser::next() with wildcard = true. (parser::scan_pp): Add wildcard flag and pass it to lexer::scan. (parser::next): Ditto. (parser::peek): Ditto. * parse.h : Ditto. * testsuites/perseko/twentytwo.stp: Change testcase to the wildcarded probe points with spaces.
* 2007-11-29 David Smith <dsmith@redhat.com>dsmith2007-11-292-17/+27
| | | | | | * systemtap.base/marker.exp: Gets marker list from Module.markers. K_MARKER03 is always run since it is designed to fail.
* 2007-11-27 David Smith <dsmith@redhat.com>dsmith2007-11-272-0/+8
| | | | * semok/twentyeight.stp: Tests wildcarded probe points.
* * dummy commit to fix some permissionsfche2007-11-204-0/+0
|
* PR 3887: sufficient+optional probe pointsfche2007-11-203-0/+16
| | | | | | | | | | | | | | | | 2007-11-19 Frank Ch. Eigler <fche@elastic.org> PR 3887. * staptree.h (probe_point): Add "sufficient" field. * staptree.cxx: Initialize it, print it. * parse.cxx (parse_probe_point): Parse it. * elaborate.cxx (derive_probes): Implement it. * stapprobes.5.in: Document it. * NEWS: Gloat about it. * parseok/five.stp, semok/twentyseven.stp: Test "!" probe point flag. * iostat-scsi.stp: Adopt "!" probe point flag.
* 2007-11-15 David Smith <dsmith@redhat.com>dsmith2007-11-152-263/+9
| | | | | * 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-1230-147/+159
| | | | | | | | * 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.
* 2007-11-09 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-11-095-0/+86
| | | | | | | | | | | | | | | | PR3858 * print.c: Add -DRELAY_HOST=<hostname> and -DRELAY_GUEST=<hostname> options support. (_stp_print_flush): Disable irqs if -DRELAY_* option is specified. * print_old.c: Export stp_print_flush to other modules if the -DRELAY_HOST option is specified. * print_new.c: Ditto. * transport.c (_stp_transport_init): Reduce relay buffer size to 64KB*2 if -DRELAY_GUEST is specified. * systemtap.printf/sharedbuf.exp: New test for buffer sharing option. * systemtap.printf/sharedbuf.stp: Ditto. * systemtap.printf/hello.stp: Ditto. * systemtap.printf/hello2.stp: Ditto.
* 2007-10-25 Martin Hunt <hunt@redhat.com>hunt2007-10-264-22/+33
| | | | | | | * systemtap.printf/printd.exp: New. Runs printd.stp and printdln.stp. * systemtap.printf/printdln.stp: Removed bad tests. * systemtap.printf/printd.stp: Ditto.
* 2007-10-25 Martin Hunt <hunt@redhat.com>hunt2007-10-2511-0/+635
| | | | | | | | | | | | * systemtap.printf/print_char.*: New test. * systemtap.printf/print.*: New test. * systemtap.printf/println.*: New test. * systemtap.maps/elision.*: New tests. * config/unix.exp: Added stap_run_exact. * lib/stap_run_exact.exp: New. Like stap_run2 but takes a seperate test name.
* 2007-10-25 Martin Hunt <hunt@redhat.com>hunt2007-10-253-0/+84
| | | | | * systemtap.printf/printd.stp: New * systemtap.printf/printdln.stp: New
* *** empty log message ***hunt2007-10-183-24/+21
|
* 2007-10-16 Martin Hunt <hunt@redhat.com>hunt2007-10-1711-79/+23
| | | | | | | | | | | | | | | | | | PR 5000 * systemtap.printf/bin3.stp. Removed. * systemtap.printf/bin3a.stp. Renamed bin3.stp. * systemtap.printf/bin4.stp. Removed. * systemtap.printf/bin4a.stp. Renamed bin4.stp. * systemtap.printf/bin5.stp. Removed. * systemtap.printf/bin5a.stp. Renamed bin5.stp. * systemtap.printf/bin3.exp: Don't run bin3a.stp. * systemtap.printf/bin4.exp: Don't run bin4a.stp. * systemtap.printf/bin5.exp: Don't run bin5a.stp. Increase reliability under loads. * systemtap.samples/pfaults.exp: Increase MAXACTION. * systemtap.context/backtrace.tcl: Handle just a single userspace address.
* timers.c init tid to 0 to workaround s390x bug.dwilder2007-10-122-1/+4
|
* futimes.c : Only test system calls that have numbers assigned in asm/unistd.hdwilder2007-10-112-7/+22
|
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-092-2/+11
| | | | * rt_signal.c: Fix expected results for IA64.
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-093-29/+36
| | | | | | | * rt_signal.c: Fix expected patterns to match recent changes in tapsets. * signal.c: Use syscall(). Fix expected patterns.
* PR1119: unused variable elision warningsfche2007-10-063-0/+30
| | | | | | | | | | | | | | | | | | 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-05 Martin Hunt <hunt@redhat.com>hunt2007-10-052-1/+46
| | | | | * buildok/aux_syscalls-embedded.stp: Add all embedded C function in aux_syscalls.