summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix stats for processes that only transmitted data without receivingEugeniy Meshcheryakov2009-04-081-0/+8
|
* Add uaddr() context tapset function.Mark Wielaard2009-04-081-0/+8
| | | | | * tapset/context.stp (uaddr): New sfunction. * testsuite/buildok/uaddr.stp: New test.
* Create usymname and usymdata variant that trigger STP_NEED_VMA_TRACKER.Mark Wielaard2009-04-073-3/+18
| | | | | | | | | * tapset/context-symbols.stp (syname, symdata): Pass NULL for kernel address. * tapset/ucontext-symbols.stp: New file defining usymname and usymdata. * testsuite/systemtap.context/usymbols.exp: Use usymname, remove STP_NEED_VMA_TRACKER hack. * testsuite/buildok/usymdata.stp: New test. * testsuite/buildok/usymname.stp: Likewise.
* Amend process/errsnoop.stp shebangEugene Teo2009-04-051-1/+2
|
* Make examples executableEugeniy Meshcheryakov2009-04-042-0/+0
|
* Correct column heading from uid to pid.William Cohen2009-04-031-1/+1
|
* Describe the ansi_colors.stp and ansi_colors2.stp. Label tables appropriately.William Cohen2009-04-038-7/+82
|
* new process/errsnoop.stp sample scriptEugene Teo2009-04-036-11/+105
|
* Make ansi_colors2.stp script executableEugene Teo2009-04-031-0/+0
|
* Update scripts to use the new ANSI tapsetEugene Teo2009-04-033-19/+28
| | | | | | This updates the example scripts to use the new ANSI escape sequences tapset. It also adds the copyright header that was missing in ansi_colors.stp for a long time.
* New ANSI escape sequences tapsetEugene Teo2009-04-031-0/+31
| | | | | | | This adds a new tapset for ANSI escape sequences. It is based on an existing tapset that was written by Masami Hiramatsu for the stapgames project. This also adds a version of ansi_color.stp script that displays other attributes other than the bold effect.
* Rewrite stmt_rel.exp to only rely on -l output.Stan Cox2009-04-022-77/+38
| | | | * testsuite/systemtap.base/stmt_rel.exp: Rewrite.
* PR6580: Implement symname, symdata and modname context functions.Mark Wielaard2009-04-024-1/+25
| | | | | | | | | | | | | | | | | | This adds a couple of the suggested context/stack revamp functions from PR6580. In particular it replaces the symbolname() function that sneaked in with the pr6866 branch merge with the suggested symname(). * runtime/sym.c (_stp_mod_sec_lookup): Make section optional. (_stp_symbol_snprint): Provide a way to get optional module info. * tapset/context-symbols.stp: Replace symbolname() with symname(), add modname() and symdata(). (probemod): Implement pc based fallback. * tapset/context-unwind.stp (caller): Adjust for _stp_symbol_snprint change. * testsuite/systemtap.context/usymbols.exp: Use new symname. * testsuite/buildok/modname.stp: New test. * testsuite/buildok/symdata.stp: Likewise. * testsuite/buildok/symname.stp: Likewise.
* itrace.exp: s/utrace_support_found/utrace_p/Mark Wielaard2009-04-021-1/+1
|
* PR9995: Test for [installtest_p] && [utrace_p].Mark Wielaard2009-04-021-2/+2
|
* Check for utrace in usymbols.exp.Mark Wielaard2009-04-021-2/+3
|
* PR4105: removing redundant buildok/twentysix.stp testFrank Ch. Eigler2009-04-013-9/+0
|
* introduce [utrace_p] as dejagnu check for utrace presence in kernelFrank Ch. Eigler2009-04-0111-91/+48
| | | | | | * testsuite/lib/systemtap.exp: Define here. * testsuite/systemtap.*/*.exp: Use it here. Eliminate duplicated utrace_support_present logic.
* Move testcase itrace3's warning into expectJosh Stone2009-04-011-1/+1
| | | | | | As it was, the ATTENTION was causing expect mismatches even when the test worked fine. The warning is served just as well from the expect script before starting the test.
* Add insn.block testcase to itrace.exp in testsuiteMaynard Johnson2009-04-011-0/+31
| | | | | | | | | | Earlier today, I posted a runtime patch for the insn.block probe point. Once that patch is committed, the insn.block probe can be safely tested on any architecture. The attached patch adds such a testcase to the testsuite. Regards, -Maynard
* Merge branch 'master' into pr6866Mark Wielaard2009-04-0126-626/+1576
|\
| * Use alloca trick to keep argN active on GCC 4.1.Stan Cox2009-04-011-1/+1
| | | | | | | | | | | | * includes/sys/sdt.h (STAP_UNINLINE): New. (STAP_UNINLINE_LABEL): New. static_uprobes.exp: Match using charset instead of .*
| * testsuite/systemtap.context/*.tcl: Don't wait 4 whole minutes for timeout.Mark Wielaard2009-04-014-4/+4
| |
| * context.exp: log which subtest is being sourced.Mark Wielaard2009-04-011-0/+1
| |