summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
Commit message (Collapse)AuthorAgeFilesLines
* testsuite cleanup: kfailing some FOO-all-probes testsFrank Ch. Eigler2008-05-232-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.
* Added open_file_handles tapset function and man page for task tapsets.srikar2007-09-041-0/+2
|
* Removing LKET files.srikar2007-08-271-3/+0
|
* 2007-08-24 Frank Ch. Eigler <fche@redhat.com>fche2007-08-241-0/+24
| | | | | | | | | | | | | | | | PR 4899 * tapsets.cxx (dwflpp::has_single_line_record): Extended, abstraction violated. (iterate_over_srcfile_lines): Remove exactly line number match logic. Improve error message to offered better-checked alternative line numbers. (query_srcfile_line): Whoops, pass scope_die down for statement("...") probes, to enable $target var processing. 2007-08-24 Frank Ch. Eigler <fche@redhat.com> PR 4899 * buildok/fortytwo.stp: New test.
* 2007-08-16 Frank Ch. Eigler <fche@elastic.org>fche2007-08-171-0/+3
| | | | | | | | | PR 1315. * target_set.stp: New tapset file. * stapfuncs.5.in: Document new target_set tapset. * buildok/fortyfive.stp: New test.
* 2007-08-16 Josh Stone <joshua.i.stone@intel.com>jistone2007-08-171-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | PR 4591 * parse.cxx (parser::parse_symbol): Tweak 'print' matching to allow all the new variants with printd and println. * staptree.h (struct print_format): Add fields for the new print variants, and parse_print() to help matching. * staptree.cxx (print_format::parse_print): New static method to match the print variants and determine their properties. (print_format::print): Handle the new print types. (deep_copy_visitor::visit_print_format): Copy the new fields. * translate.cxx (c_unparser::visit_print_format): Insert delims and newlines where appropriate for new print functions. * stap1.in: Document the new print functions. testsuite/ * lib/stap_run.exp: Make sure to match the entire output, in case there are multiple pass/fail messages. * buildok/printf.stp: Add lines for new print variants. * parseko/printd01.stp: Make sure that bad printd calls are handled. * parseko/printd02.stp: Ditto. * parseko/printd03.stp: Ditto. * parseko/printd04.stp: Ditto. * systemtap.base/print.stp: Try a bunch of different print calls. * systemtap.base/print.exp: Driver for above.
* Fixes for PR4836.mmason2007-07-252-5/+5
|
* 2007-05-23 David Smith <dsmith@redhat.com>dsmith2007-05-231-24/+0
| | | | | | PR4446 * systemtap.base/marker.exp: Added new marker test. * buildok/marker.stp: Removed old marker test.
* Adapt socket tapset to changes in 2.6.19.mmason2007-04-241-5/+6
|
* * tapset/memory.stp: Add matching vm.pagefault.returnwcohen2007-04-241-0/+5
| | | | * testsuite/buildok/memory.stp: Test vm.pagefault.return.
* 2007-03-30 Frank Ch. Eigler <fche@redhat.com>fche2007-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR 1570 * NEWS: Document probe handler language change re. inline functions. * stapprobes.5.in: Likewise. * tapsets.cxx: Many changes to simplify caches and implement new handling of inline functions, removed of stubs for future probes. * elaborate.cxx (derived_probe printsig_nested): New function. * elaborate.h: Declare it. * main.cxx (usage): Clarify "-r" meaning. (main): Tweak related "-p 4" message. 2007-03-30 Frank Ch. Eigler <fche@elastic.org> PR 1570. * memory.stp, scheduler.stp, signal.stp, LKET/signal.stp: Adapt to .inline -> .function change. 2007-03-30 Frank Ch. Eigler <fche@elastic.org> PR 1570 * */*.stp: Adapt to .inline -> .function change. * lib/stap_run.exp, stap_run2.exp, stap_run_binary.exp: Shorten pass/fail dejagnu log lines. * systemtap.syscall/sys.stp, test.tcl: Make slightly more compatible and failure more verbose.
* 2007-03-22 Frank Ch. Eigler <fche@elastic.org>fche2007-03-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | PR 4224. * staptree.h (probe): Add privileged field. * elaborate.cxx, parse.cxx: Pass privileged flag to probes. * tapsets.cxx (dwarf_query): Add has_absolute field. (dwarf_derived_probe ctor): Tolerate it. (register_patterns): Expose it. (dwarf_builder::build): Implement it with no dwfl whatsoever. * NEWS: Document kernel.statement().absolute. * stapprobes.5.in: Ditto. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> PR 4224. * systemtap.base/probefunc.exp: Use kernel.statement().absolute instead with grep-found schedule_tick address. * semko/thirtyseven.stp, thirtyeight.stp: New tests. * buildok/twentyeight.stp: New test. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> * sym.c (_stp_module_relocate): Tolerate empty section string.
* 2007-03-09 Pierre Peiffer <pierre.peiffer@bull.net>fche2007-03-201-0/+4
| | | | * buildok/twenty.stp, semok/seventeen.stp: Adapt to kernel 2.6.20.
* 2007-03-13 Frank Ch. Eigler <fche@redhat.com>fche2007-03-145-5/+5
| | | | | | | | | | | | | | | | | | | | PR 4171. * Makefile.am (check, installcheck): Pass build-tree pointers in environment variables. * configure.ac: Run separate configury for testsuite/. * configure, Makefile.in: Regenerated. 2007-03-14 Frank Ch. Eigler <fche@redhat.com> PR 4171. * configure.ac, configure, aclocal.m4: New files to permit testsuite-only build tree. * Makefile.am (RUNTEST): Arrange a crazy concoction of environment/make variable for runtest. * Makefile.in: Regenerated. * */*.stp: Switch test cases from "./stap" to "stap" throughout. * lib/systemtap.exp: Assume/trace environment variables. (stap_run_batch): Add "#! stap"-handling hack.
* 2007-03-07 Frank Ch. Eigler <fche@elastic.org>fche2007-03-071-0/+6
| | | | | | PR 4116. * buildok/twentyseven.stp: New test. * systemtap.pass1-4/buildok.exp: kfail it.
* 2007-02-27 Frank Ch. Eigler <fche@redhat.com>fche2007-02-271-0/+7
| | | | | | PR 4105 * buildok/twentysix.stp: New test. * systemtap.pass1-4/buildok.exp: kfail it.
* add a #!jistone2007-02-071-1/+3
|
* * kernel_{string,long,...,char} protected accessor functionsfche2007-02-061-0/+13
| | | | | | | | | | | | | | | | | | | | * test suites for all of 'em too * even documentation * mm, donuts 2007-02-06 Frank Ch. Eigler <fche@elastic.org> * stapfuncs.5.in: Add docs for kernel_{long,int,short,char} and some user_string* variants. 2007-02-06 Frank Ch. Eigler <fche@elastic.org> * conversions.stp (kernel_long/int/short/char): New functions. 2007-02-06 Frank Ch. Eigler <fche@elastic.org> * buildok/conversions.stp: Build-test all conversions.stp functions. * systemtap.stress/conversions.*: New test.
* Added build test for sockets tapset.mmason2007-01-231-0/+107
|
* buildok/eighteen.stp: changed to find __audit_getname or audit_getnamemmason2007-01-161-8/+4
| | | | without checking kernel version to support audit code backports
* 2006-12-29 Frank Ch. Eigler <fche@redhat.com>fche2006-12-302-0/+30
| | | | | | | | | | | | | | | PR 3523. * tapsets.cxx (common_probe_entryfn_prologue,epilogue): Restore support for -t (benchmarking) mode. * translate.cxx (emit_common_header,emit_module_init):Ditto. (emit_module_exit,emit_probe): Ditto, with most meat here. 2006-12-29 Frank Ch. Eigler <fche@redhat.com> PR 3523. * buildok/fourteen.stp, fourteen-plus.stp: Tweak & add a test. * systemtap.base/bench.stp: Work around randomized-ordered probes. * systemtap.base/bench.exp: Tighten output requirements.
* 2006-12-22 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-221-0/+11
| | | | | | | | | | * stap.1.in: Document how to specify the size of global arrays. testsuite/ * buildok/array_size.stp, parseko/array01.stp, parseko/array02.stp, parseko/array03.stp, parseko/array04.stp, transko/array01.stp, systemtap.base/array_size.exp, systemtap.base/array_size.stp: Tests for specifying the size of global arrays.
* 2006-12-19 Frank Ch. Eigler <fche@redhat.com>fche2006-12-191-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PR 3522. * tapsets.cxx (dwflpp::emit_address): Call _stp_module_relocate only once per session. Error message cleanup: duplicate elimination etc. * session.h (saved_errors): Store a set of 'em. (num_errors): Return set size. Remove old numeric field. Update all callers. * elaborate.cxx (systemtap_session::print_errors): Print each encountered message just once. * staptree (semantic_error): Make msg2 writeable. Add a chain field. * tapsets.cxx (*var_expanding*:visit_target_symbol): Set saved semantic_error's chain field. * elaborate.cxx (register_library_aliases, visit_foreach_loop, visit_functioncall, derive_probes): Plop "while: ..." error message prefix/suffix right into the semantic_error message string. * parse.cxx (lexer::scan): Identify erroneous token better in error message for unresolvable $N/@M command line args. * util.h (lex_cast_hex): Use std::hex, not std::ios::hex. 2006-12-19 Frank Ch. Eigler <fche@redhat.com> PR 3522. * buildok/twentyfive.stp: New test for static $var access.
* add a pass 4 check for LKET available trace hooksguanglei2006-11-161-0/+3
|
* 2006-11-09 David Smith <dsmith@redhat.com>dsmith2006-11-091-0/+6
| | | | | | | | | | | | | * buildok/maxactive01.stp: Added test for "maxactive(N)" return probe processing. * parseko/maxactive01.stp: Ditto. * parseko/maxactive02.stp: Ditto. * parseko/maxactive03.stp: Ditto. * parseko/maxactive04.stp: Ditto. * semko/maxactive01.stp: Ditto. * semko/maxactive02.stp: Ditto. * semko/maxactive03.stp: Ditto. * systemtap.base/maxactive.exp: Ditto.
* 2006-09-28 Martin Hunt <hunt@redhat.com>hunt2006-09-282-0/+11
| | | | | * buildok/eighteen.stp: Fix for 2.6.18. * buildok/two.stp: Ditto.
* 2006-09-27 Josh Stone <joshua.i.stone@intel.com>jistone2006-09-281-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * session.h (struct systemtap_session): Add kernel_base_release to store the kernel version without the -NNN suffix. * main.cxx (main): Generate and use kernel_base_release. * parse.cxx (eval_pp_conditional): Use kernel_base_release. * tapsets.cxx (profile_derived_probe::profile_derived_probe): Use kernel_base_release. * tapsets.cxx (timer_builder::build): Support a wide variety of timer varients -- jiffies, s/sec, ms/msec, us/usec, ns/nsec, and hz. Use hrtimers automatically on kernels that have it. (timer_builder::register_patterns): Bind all of the new timer varients in one easy place. (register_standard_tapsets): Call timer_builder::register_patterns. (struct hrtimer_builder): Removed since timer_builder is generic. * stapprobes.5.in: Document new timer.* functionality. * tapsets.cxx (hrtimer_derived_probe_group::emit_probes): Add a shared global for the actual hrtimer resolution, _stp_hrtimer_res. (hrtimer_derived_probe_group::emit_module): Init _stp_hrtimer_res. (hrtimer_derived_probe::emit_interval): Limit intervals at a minimum to the hrtimer's actual resolution. (hrtimer_derived_probe::emit_probe_entries): Forward timers based on previous expiration instead of restarting relative. testsuite/ * buildok/fourteen.stp: Test new timer functionality.
* 2006-09-20 Josh Stone <joshua.i.stone@intel.com>jistone2006-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | PR 3233 ./ * stapfuncs.5.in: Document new gettimeofday_ns. runtime/ * time.c (stp_time_t): Use ns for the base time, and freq is now kHz. (__stp_estimate_cpufreq): Compute kHz instead of MHz. (__stp_time_timer_callback, __stp_init_time): Compute base in ns. (__stp_time_cpufreq_callback): Record kHz instead of MHz. (_stp_init_time): Record kHz, and disable preemption to avoid a race in the cpufreq notifier. (_stp_gettimeofday_ns): Converted from _stp_gettimeofday_us. tapset/ * timestamp.stp (gettimeofday_ns): New function (gettimeofday_us, gettimeofday_ms, gettimeofday_s): Use gettimeofday_ns as the base unit. testsuite/ * buildok/timestamp.stp: add gettimeofday_ns test.