summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Tweak alternatives.expWenji Huang2009-05-041-2/+2
|
* Fix kprobes.exp.Ananth N Mavinakayanahalli2009-05-041-1/+6
| | | | Patch from Prerna Saxena.
* systemtap.syscall tests do use + and * as metachars.Mark Wielaard2009-05-031-2/+4
| | | | | | | | + and * are metacharacters, but should always be used as metacharacters in the expressions, don't escape them. * testsuite/systemtap.syscall/test.tcl (run_one_test): Remove escaping of + and *.
* Fix funtion -> function typo in alternatives.exp.Mark Wielaard2009-05-021-1/+1
| | | | * testsuite/systemtap.base/alternatives.exp (local1_script): Fix typo.
* syscalls testsuite: use different escape sequenceFrank Ch. Eigler2009-04-3031-256/+261
| | | | | | | | | | | | The syscall testsuite uses embedded "// TEXT" markers in the .c files to designate expected output, kind of like the "dg-" bunch in the gcc test suite. Unfortunately, "//" is not a unique prefix to systemtap tests, and in particular it can occur in the system headers that will be picked up with the "gcc -E -C ..." invocation in test.tcl. So let's switch to "//staptest//". test.tcl is also modified to escape a few more mischevious regexp metacharacters that might sneak past.
* whitespace tweak in tcl codeFrank Ch. Eigler2009-04-301-9/+3
|
* PR10007: Avoid probing syscall entry points in the testsuite.Ananth N Mavinakayanahalli2009-04-3019-35/+35
| | | | While there, fix minor issues with the s390x syscall tapset.
* Use sockaddr instead of timeval in @cast testJosh Stone2009-04-292-11/+15
| | | | | | | | Using timeval had problems on big-endian multi-arch platforms (ppc64), because the user tv_sec used in the @cast didn't match the kernel tv_sec used to provide a pointer. Hopefully reading from a sockaddr should be more robust, as that type doesn't appear to need any compat wrappers for multi-archs.
* PR 6930: fix flightrec2.exp to handle filesize correctlyMasami Hiramatsu2009-04-282-11/+10
| | | | | | | * testsuite/systemtap.base/flightrec2.exp: Use stat instead of ls for checking file size. * testsuite/systemtap.base/flightrec2.stp: Increase timer interval for some architecture on which the minimum interval is more than 1 ms (e.g. xen)
* PR10102: tolerate mismatched optional probeWenji Huang2009-04-272-0/+15
| | | | | | * elaborate.cxx: Early return for mismatched optional probe. * testsuite/systemtap.base/optionalprobe.exp: New test case. * testsuite/systemtap.base/optionalprobe.stp: Ditto.
* traceio: add human-readable byte-count outputKey Meyer2009-04-271-3/+18
|
* traceio sample: tolerate more than a few hundred processesKey Meyer2009-04-271-10/+8
| | | | ... rather than exiting with MAXACTIONS exceeded
* PR10099: Extend %M directive to support hexdumping large buffersWenji Huang2009-04-261-0/+14
| | | | | | | | | | This patch will make %M directive dump the variable width buffer in hex format instead of returning uint64_t number as before. * runtime/vsprintf.c: Modify %M directive. * stap.1.in: Update description. * testsuite/systemtap.printf/memory1.stp: Add test case.
* Add function of returning the char in given position of stringWenji Huang2009-04-262-1/+2
| | | | | | * tapset/string.stp: New function stringat. * testsuite/systemtap.printf/char1.exp: Update test case. * testsuite/systemtap.printf/char1.stp: Ditto.
* fix kprobe.* probes so they don't break -p4 if script also has kernel.* probesFrank Ch. Eigler2009-04-261-0/+4
| | | | | * tapsets.cxx (kprobe_derived_probe): Use enter_k[ret]probe>>2<<_probe. * testsuite/buildok/thirtyone.stp: Test this.
* Don't terminate when a dwarfless kprobe failsJosh Stone2009-04-241-9/+23
| | | | | | | | | | All of our other kprobe types will let the script continue after a registration failure, as per PR6749. The dwarfless kprobes should be no exception. Also, the way they were exiting was causing an unclean shutdown, so I added tests to badkprobe.exp to make sure that cleanup is always allowed to run.
* Version bumps for 0.9.7 releaseJosh Stone2009-04-232-11/+11
|
* Version bumps for 0.9.6 releaseJosh Stone2009-04-232-11/+11
|
* Tweak kprobes test caseWenji Huang2009-04-232-1/+6
| | | | | * testsuite/systemtap.base/kprobes.exp: Add expected message. * testsuite/systemtap.base/kprobes.stp: Ditto.
* Modify the output of kprobes test.Wenji Huang2009-04-221-3/+2
| | | | * testsuite/systemtap.base/kprobes.stp: Update text.
* PR 9821: Add a testcase for strftimeMasami Hiramatsu2009-04-221-0/+49
| | | | * testsuite/systemtap.base/strftime.exp: New test case for strftime.
* PR 6930: Add testcases for on-file flight recorderMasami Hiramatsu2009-04-223-0/+117
| | | | | | * testsuite/systemtap.base/flightrec1.exp: New test case for background mode. * testsuite/systemtap.base/flightrec2.exp: New test case for file switching. * testsuite/systemtap.base/flightrec2.stp: Test script for file switching.
* Correct sigmon.meta example title and name.Sunzen Wang2009-04-225-6/+6
| | | | | | | | * testsuite/systemtap.examples/process/sigmon.meta: Correct title and name. * testsuite/systemtap.examples/index.html: Regenerated. * testsuite/systemtap.examples/index.txt: Likewise. * testsuite/systemtap.examples/keyword-index.html: Likewise. * testsuite/systemtap.examples/keyword-index.txt: Likewise.
* Refine the @cast-with-header syntaxJosh Stone2009-04-212-4/+4
| | | | | | | The special syntax to generate a module for type information is now: - "kernel<path/to/header.h>" to use the kernel's build environment - "<path/to/header.h>" to use no special build environment, and so use gcc's default parameters only (for user mode).
* Set MAXSTRINGLEN to 133 for uprobes_ustack.exp test on 64 bit.Mark Wielaard2009-04-211-1/+4
| | | | | | | | Needs extra space since on 64bit the last ubacktrace string is 7 entries * (16 hex + 2 for 0x + 1 space) = 133 chars. Default MAXSTRINGLEN is 128 chars. * testsuite/systemtap.base/uprobes_ustack.exp: Add -DMAXSTRINGLEN.
* Merge branch 'user_unwind'Mark Wielaard2009-04-214-0/+140
|\
| * Add uprobes_ustack testcase and bug fixlet.Mark Wielaard2009-04-212-0/+129
| | | | | | | | | | | | * runtime/stack.c (_stp_stack_print): Use _stp_usymbol_print when tsk given. * testsuite/systemtap.base/uprobes_ustack.exp: New test file. * testsuite/systemtap.base/uprobes_ustack.stp: Likewise.
| * Add ubacktrace(), print_ustack() and print_ubacktrace().Mark Wielaard2009-04-211-0/+10
| | | | | | | | | | | | | | | | * runtime/sym.c (_stp_usymbol_print): New function. * tapset/ucontext-unwind.stp (print_ubacktrace): New tapset function. (ubacktrace): Likewise. * tapset/ucontext-symbols.stp (print_ustack): Likewise. * testsuite/buildok/ustack.stp: New test for above three functions.
| * Add comment to try -d kernel -d systemtap_test_module1 on backtrace.tcl test.Mark Wielaard2009-04-201-0/+1
| |
* | Updated utrace tests.David Smith2009-04-2111-32/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-21 David Smith <dsmith@redhat.com> * testsuite/semok/utrace01.stp: New test. * testsuite/parseko/utrace01.stp: Updated test. * testsuite/semko/utrace03.stp: Ditto. * testsuite/semko/utrace04.stp: Ditto. * testsuite/semko/utrace01.stp: Deleted unneeded test. * testsuite/semko/utrace08.stp: Ditto. * testsuite/semko/utrace09.stp: Ditto. * testsuite/semko/utrace10.stp: Ditto. * testsuite/semko/utrace11.stp: Ditto. * testsuite/semko/utrace12.stp: Ditto. * testsuite/semko/utrace13.stp: Ditto.
* | Correctly handle $syscall in process(PID_OR_PATH).syscall.return probes.David Smith2009-04-211-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-21 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe::utrace_derived_probe): If during target-variable-expanding the probe, we added a new block or probe, add them. (utrace_var_expanding_visitor::visit_target_symbol_cached): New function to cache target variables in a generated syscall probe to use in syscall.return probes. (utrace_var_expanding_visitor::visit_target_symbol_context): In a syscall.return probe, you can't access $syscall. So use visit_target_symbol_cached() to cache the value for use here. * testsuite/systemtap.base/utrace_syscall_args.stp: Test use of $syscall in syscall.return probes.
* | Add testcases for kprobe.function familyAnanth N Mavinakayanahalli2009-04-212-0/+23
| |
* | Make latencytap.stp compile on i386.Mark Wielaard2009-04-211-1/+1
| | | | | | | | | | | | | | Still needs a .meta file to catch any breakage in the future. * testsuite/systemtap.examples/profiling/latencytap.stp (task_backtrace): Cast task to unsigned long first.
* | Merge branch 'cast_header'Josh Stone2009-04-203-2/+29
|\ \
| * | Add tests for @cast-generated modulesJosh Stone2009-04-203-2/+29
| |/
* | 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.
* | fix a bug with %% in format stringsTim Moore2009-04-203-5/+13
| | | | | | | | | | | | | | | | | | | | | | * translate.cxx (c_unparser::visit_print_format): Always use _stp_printf if a format string contains "%%". Previously a format string with no arguments would always be printed with _stp_print. * testsuite/systemtap.printf/basic6.stp: New test for %% in format strings. * testsuite/systemtap.printf/basic6.exp: test driver * testsuite/systemtap.examples/grapher.stp: Remove workaround for "%%" literal problem.
* | Merge branch 'timoore/grapher'Tim Moore2009-04-201-0/+32
|\ \ | |/ |/|
| * graphing widget and test harnessTim Moore2009-04-151-0/+32
| |
* | Make dropwatch.stp executable and have correct interpreter.William Cohen2009-04-171-1/+1
| |
* | Add dropwatch.stp example.William Cohen2009-04-176-1/+109
| |
* | 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.
* Minor formatting to avoid line wrap, added tcpdumplike.meta file,William Cohen2009-04-146-5/+50
| | | | and regenerated index files.
* PR9953: split up the two process.* tapsetsJosh Stone2009-04-144-18/+19
| | | | | | | The overlapping process.* tapsets are now separated. Those probe points documented in stapprobes(3stap) remain the same. Those that were formerly in stapprobes.process(3stap) have been renamed to kprocess, to reflect their kernel perspective on processes.
* Make tcpdumplike.stp executableJosh Stone2009-04-141-0/+2
|
* Add new TCP and IP functionsAndre Detsch2009-04-141-0/+12
| | | | | | | | | | | | | | | | | | | This patch adds some basic functions to the IP and TCP tapsets. Mainly, it's possible to get the iphdr and tcphdr from a sk_buff structure. As a consequence, a TCP probe called tcp.receive() was created and is probed every time a TCP packet is received, and a lot of useful fields is available, as the TCP flags. Also a small example that works like tcpdump for received TCP packets was created. This patch was tested on x86 and ppc machines, on 2.6.18 kernel and also on mainline one. Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com> Signed-off-by: Andre Detsch <adetsch@br.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* 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