summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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
* | | Make stmt_rel.exp have good compatibilityWenji Huang2009-04-091-1/+3
| | |
* | | Add tests for probefunc(), usymname(), uaddr() versus shared libraries.Mark Wielaard2009-04-092-0/+53
| | | | | | | | | | | | | | | * testsuite/systemtap.base/uprobes_uname.exp: New file. * testsuite/systemtap.base/uprobes_uname.stp: Likewise.
* | | Add main executable symbol uprobe to uprobes_lib.exp test.Mark Wielaard2009-04-084-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was nothing wrong with the probe itself, but because the body was empty the compiler optimised away the actual call... * testsuite/systemtap.base/uprobes_lib.exp: Activate main exe probe, expect more output. * testsuite/systemtap.base/uprobes_lib.stp: Also probe main and main_lib. * testsuite/systemtap.base/uprobes_exe.c: Put some code in main_func. * testsuite/systemtap.base/uprobes_lib.c: Likewise for lib_func.
* | | Consider function when handling .labelStan Cox2009-04-081-3/+10
| | | | | | | | | | | | | | | | | | * tapsets.cxx(dwflpp::iterate_over_cu_labels): New parameter function. Do wildcard match for function. * testsuite/systemtap.base/labels.exp: Test .label function handling.
* | | Better error handling in 'setup_server'.David Smith2009-04-081-2/+2
| | | | | | | | | | | | | | | | | | 2009-04-08 David Smith <dsmith@redhat.com> * lib/systemtap.exp (setup_server): Better error handling.
* | | Merge branch 'master' of ssh://sourceware.org/git/systemtapStan Cox2009-04-081-4/+4
|\ \ \
| * | | tweak nettop.stp demo to sort by accumulated counts despite mergingFrank Ch. Eigler2009-04-081-4/+4
| | | |
* | | | Do not do a partial name comparison for .label.Stan Cox2009-04-081-7/+8
|/ / / | | | | | | | | | * tapsets.cxx (dwflpp::iterate_over_cu_labels): Compare with strcmp not strncmp.