summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
Commit message (Collapse)AuthorAgeFilesLines
* More testsuite tweaks to make it work with SYSCALL_WRAPPERSAnanth N Mavinakayanahalli2009-05-281-3/+3
|
* Fix another kernel/kprobe.function conflictJosh Stone2009-05-221-0/+1
| | | | | | | | | | Both kernel.function and kprobe.function were defining a global array stap_unreg_kprobes to use in bulk kprobes unregistration. The compiler allowed the duplicate definition as long as they were the same size, as it was when exercised in buildok/thirtyone. kprobe.function now uses a separate stap_unreg_kprobes2, and the testcase is modified to produce an imbalanced number of probes.
* PR10177: init/kill time in sleepy context onlyJosh Stone2009-05-202-0/+26
| | | | | | | | | | | | Previously, _stp_init_time and _stp_kill_time were being called from begin/end/error probes, which will run with preemption disabled. The BUG reported on RT kernels showed that cpufreq_unregister_notifier can end up sleeping, which violates our preemption block. This patch moves the init/kill into systemtap_module_init/exit, where it is safe to sleep. The code maintains a new predicate with the define STAP_NEED_GETTIMEOFDAY, so we don't still incur any timer overhead if it's not used.
* Use actual sock in tcp_test, instead of unexisting sk variable.Mark Wielaard2009-05-121-7/+7
| | | | | * testsuite/buildok/tcp_test.stp (tcp.sendmsg): Use sock for testing. (tcp.recvmsg): Likewise.
* Simplify buildok/context_test.stpJosh Stone2009-05-081-20/+1
| | | | | | | | | | The test was using optional probes on uptime_read_proc, which doesn't exist anymore on 2.6.30. The problem is that when those optional probes are skipped, the test doesn't really do anything. For a buildok test of the context functions, the actual probe point doesn't matter, so I've changed it to just a begin probe that calls all of the functions.
* context tapset: sid() function to return task session leader pidMalte Nuhn2009-05-081-0/+1
|
* fix permissions of some testsuite filesFrank Ch. Eigler2009-05-071-0/+0
| | | | Reported-By: Petr Muller <pmuller@redhat.com>
* PR10007: Avoid probing syscall entry points in the testsuite.Ananth N Mavinakayanahalli2009-04-302-2/+2
| | | | While there, fix minor issues with the s390x syscall tapset.
* 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.
* 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.
* PR9953: split up the two process.* tapsetsJosh Stone2009-04-142-12/+12
| | | | | | | 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.
* 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-072-0/+16
| | | | | | | | | * 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.
* PR6580: Implement symname, symdata and modname context functions.Mark Wielaard2009-04-023-0/+24
| | | | | | | | | | | | | | | | | | 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.
* PR4105: removing redundant buildok/twentysix.stp testFrank Ch. Eigler2009-04-011-7/+0
|
* PR4105: support up to 9 (up from 5) array index dimensionsFrank Ch. Eigler2009-04-011-0/+49
| | | | | | | | * runtime/map-gen.c, pmap-gen.c: Hand-expand arity 6..9 cases throughout. * testsuite/buildok/thirty.stp: New test. * testsuite/buildko/two.stp: New test. An Alan Smithee patch.
* PR10000: emit _stp_relocate* calculations correctly for kernel/module global ↵Frank Ch. Eigler2009-03-271-0/+9
| | | | | | | | | | | | | | | | $data * translate.cxx (dump_unwindsyms): Also emit STT_OBJECT symbols, therefore .data etc. sections into stap-symbols.h. * tapsets.cxx (iterate_over_modules): Omit a dwfl_getmodules() RC-checking assertion that blocked meaningful $context var error messages. (dwflpp::emit_address): Bypass dwfl_module_relocate_address() for kernel symbols as it has been unreliable; subtract sess.sym_stext manually. * testsuite/buildok/seventeen.stp: Extend test with module $global.
* Add pid-based data lookup function.Wenji Huang2009-03-162-1/+5
| | | | Two functions pid2task and pid2execname.
* PR6972. Fixed vfs tapset.David Smith2008-10-281-4/+3
| | | | | | | | | | | | | | | | | | 2008-10-28 David Smith <dsmith@redhat.com> PR6972 * vfs.stp (generic.fop.aio_read): Works under 2.6.18 kernels, such as RHEL5. (generic.fop.aio_read.return): Ditto. (vfs.__set_page_dirty_buffers): Fixed small bug. (_vfs.block_write_begin): Only use for kernels >= 2.6.24. (_vfs.block_write_begin.return): Ditto. (_vfs.block_write_end): Ditto. (_vfs.block_write_end.return): Ditto. 2008-10-28 David Smith <dsmith@redhat.com> * buildok/vfs_testcase.stp: Fixes for updated vfs tapset.
* Correct ioblock and scsi tapset for 2.6.28.Wenji Huang2008-10-282-6/+15
|
* Fix 2.6.27 detection.Mark Wielaard2008-09-152-2/+2
|
* Added tests for utrace-syscall probe context variables.Masami Hiramatsu2008-09-091-0/+18
|
* Fixed failure of buildok/process-all-probes.stpWenji Huang2008-08-221-1/+8
|
* Correct several tests for 2.6.27Wenji Huang2008-08-032-0/+6
|
* fix *{ok,ko} test case permissionsFrank Ch. Eigler2008-07-151-0/+0
|
* Make _vfs.generic_commit_write only for kernel<=2.6.25Wenji Huang2008-07-011-0/+2
|
* This commit makes changes to the VFS tapset. The changes include deprecation ofroot2008-06-271-0/+461
| | | | | | | some old probe points to older versions of kernel, adding new helper C functions and probe points for the VFS subsystem. A new testcase is created for the VFS tapset which performs a compile test (i.e. up4) on the probe points to verify sanity. These details can also be found in the ChangeLog.
* testsuite cleanup: kfailing some FOO-all-probes testsFrank Ch. Eigler2008-05-252-2/+2
|
* PR6538: more testsuite tweaks for read-only warningsFrank Ch. Eigler2008-05-216-8/+10
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapFrank Ch. Eigler2008-05-211-0/+4
|\ | | | | | | | | * 'master' of ssh://sources.redhat.com/git/systemtap: Check new (sub) functions of _struct_utimbuf_* and _struct_compat_utimbuf_*.
| * Check new (sub) functions of _struct_utimbuf_* and _struct_compat_utimbuf_*.Mark Wielaard2008-05-211-2/+4
| |
* | PR6538: testsuite changesFrank Ch. Eigler2008-05-201-6/+8
| |
* | PR5001: fix test suite collateral damageFrank Ch. Eigler2008-05-201-2/+0
|/
* Rewrote utrace buildok tests to check for kernel utrace support.David Smith2008-04-183-18/+0
| | | | | | | | | | 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.
* Added new utrace tests.David Smith2008-04-173-0/+18
| | | | | | | | | | | | | | | | | | | | | 2008-04-17 David Smith <dsmith@redhat.com> * buildok/utrace01.stp: New test. * buildok/utrace02.stp: Ditto. * buildok/utrace03.stp: Ditto. * semko/utrace01.stp: Ditto. * semko/utrace02.stp: Ditto. * semko/utrace03.stp: Ditto. * semko/utrace04.stp: Ditto. * semko/utrace05.stp: Ditto. * semko/utrace06.stp: Ditto. * semko/utrace07.stp: Ditto. * semko/utrace08.stp: Ditto. * semko/utrace09.stp: Ditto. * semko/utrace10.stp: Ditto. * semko/utrace11.stp: Ditto. * semko/utrace12.stp: Ditto. * semko/utrace13.stp: Ditto.
* 2008-03-21 Eugene Teo <eugeneteo@kernel.sg>eteo2008-03-212-0/+26
| | | | | | | | | | | | PR 5528 * tapset/conversions.stp (user_string_n, user_string_n2, user_string_n_warn, user_string_n_quoted, user_short, user_short_warn, user_int, user_int_warn, user_long, user_long_warn, user_char, user_char_warn): New user_* functions. * stapfuncs.5.in: Documented the new functions. * testsuite/systemtap.stress/conversions.stp: Test new functions. * testsuite/buildok/conversions.stp: Test new functions. * testsuite/buildok/conversions-embedded.stp: Test new functions.
* PR5516: assignment to $pointersfche2008-03-031-0/+6
| | | | | | | | | | | | | | | | | | | | | 2008-03-03 Frank Ch. Eigler <fche@elastic.org> PR5516 * elaborate.cxx (symbol_fetcher, dead_assignment_remover): Support unresolved $target lvalues. Propagate pretty error messages. * staptree.cxx (varuse_collecting_visitor target_symbol): Ditto. * staptree.h: Corresponding decl. * loc2c.c: c_translate_pointer_store: New function. * loc2c.h: Corresponding decl. * tapsets.cxx (dwflpp::translate_final_fetch_or_store): Call it for $target pointer assignments. 2008-03-03 Frank Ch. Eigler <fche@elastic.org> PR5516 * buildok/twentynine.stp: New test.
* 2008-01-16 Eugene Teo <eteo@redhat.com>eteo2008-01-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-11-12 Martin Hunt <hunt@redhat.com>hunt2007-11-121-10/+10
| | | | | | | | * 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-10-05 Martin Hunt <hunt@redhat.com>hunt2007-10-051-1/+41
| | | | | * buildok/aux_syscalls-embedded.stp: Add all embedded C function in aux_syscalls.
* rhbz 319611: htonl and friends in tapsetfche2007-10-051-0/+6
| | | | | | | | | | 2007-10-04 Frank Ch. Eigler <fche@elastic.org> * stapfuncs.5.in: Document inet.stp tapset functions. * buildok/inet-embedded.stp: Test inet.stp functions. * inet.stp: New tapset for htonl and friends.
* 2007-10-04 Mike Mason <mmlnx@us.ibm.com>mmason2007-10-0412-0/+71
| | | | | | | | | | | | | | | | | * buildok/memory-all-probes.stp: New test that uses wildcarding to determine if all probes are resolvable. * buildok/nfs-all-probes.stp: Ditto * buildok/nfsd-all-probes.stp: Ditto * buildok/process-all-probes.stp: Ditto * buildok/rpc-all-probes.stp: Ditto * buildok/scheduler-all-probes.stp: Ditto * buildok/scsi-all-probes.stp: Ditto * buildok/signal-all-probes.stp: Ditto * buildok/socket-all-probes.stp: Ditto * buildok/tcp-all-probes.stp: Ditto * buildok/udp-all-probes.stp: Ditto * buildok/vfs-all-probes.stp: Ditto
* replace examples buildok testingfche2007-09-241-34/+0
| | | | | * systemtap.samples/examples.exp: New file, replacing * buildok/examples.stp: Removed.
* * buildok test cases for every embedded-C functionfche2007-09-2415-0/+171
| | | | | | | 2007-09-24 Frank Ch. Eigler <fche@elastic.org> * buildok/*-embedded.stp: New test case for every embedded-C function in the tapsets.
* 2007-09-15 Wenji Huang <wenji.huang@oracle.com>wenji2007-09-161-0/+34
| | | | | PR 4930 * buildok/examples.stp: New test case.
* 2007-09-14 David Smith <dsmith@redhat.com>dsmith2007-09-141-0/+12
| | | | | | | | | | PR 1154 * buildok/procfs01.stp: New test case. * semko/procfs01.stp: Ditto. * semko/procfs02.stp: Ditto. * semko/procfs03.stp: Ditto. * semko/procfs04.stp: Ditto. * semko/procfs05.stp: Ditto.
* 2007-09-12 Frank Ch. Eigler <fche@elastic.org>fche2007-09-131-0/+2
| | | | | | | | * parse.cxx (parse_symbol): Accept println(@hist*()). 2007-09-12 Frank Ch. Eigler <fche@elastic.org> * buildok/print_histograms.stp: Test println(@hist*()).
* 2007-09-12 Frank Ch. Eigler <fche@elastic.org>fche2007-09-131-0/+5
| | | | | | | | | | | PR 5023 * translate.cxx (c_unparser::visit_literal_number): Support LLONG_MIN. (visit_unary_expression): Likewise. 2007-09-12 Frank Ch. Eigler <fche@elastic.org> PR 5023. * buildok/ten.stp: Extend some more.
* 2007-09-12 Frank Ch. Eigler <fche@elastic.org>fche2007-09-121-1/+3
| | | | | PR 5023. * buildok/ten.stp: Reactivate and extend.
* 2007-09-10 Wenji Huang <wenji.huang@oracle.com>wenji2007-09-102-2/+8
| | | | | | | * systemtap.stress/current.stp: Make module probe optional. * buildok/four.stp: Ditto. * buildok/twentyfive.stp: Ditto. * semok/twelve.stp: Ditto.