summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-04-013-1/+66
|\
| * PR4105: support up to 9 (up from 5) array index dimensionsFrank Ch. Eigler2009-04-012-0/+63
| | | | | | | | | | | | | | | | * 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.
| * semok/badvar.stp test: add stap -p2 as for other semok testsFrank Ch. Eigler2009-04-011-1/+3
| |
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-03-313-6/+54
|\|
| * Customize .mark -l output.Stan Cox2009-03-311-6/+32
| | | | | | | | | | | | * tapsets.cxx (dwarf_builder::build): Add .mark name wildcard check. Customize -l handling. * testsuite/systemtap.base/static_uprobes.exp: Test .mark name wildcard.
| * PR9998: new config and test filesWenji Huang2009-03-302-0/+22
| | | | | | | | | | | | * runtime/autoconf-x86-gs.c : New file. * testsuite/systemtap.base/x86_gs.exp : New test case. * testsuite/systemtap.base/x86_gs.stp : Ditto.
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-03-309-41/+596
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: aclocal.m4 configure testsuite/aclocal.m4 Also: 2009-03-30 Dave Brolley <brolley@redhat.com> * nsscommon.c (nssError): Handle SEC_ERROR_BAD_SIGNATURE. 2009-03-30 Dave Brolley <brolley@redhat.com> * modverify.c (verify_it): Print a message if the module may have been tampered with.
| * Test marker probe parameter types.Stan Cox2009-03-303-25/+561
| | | | | | | | | | | | * testsuite/systemtap.base/sdt_types.c: New file. * testsuite/systemtap.base/sdt_types.stp: New file. * testsuite/systemtap.base/static_uprobes.exp: Use sdt_types for type testing.
| * prefer using /usr/bin/lsb_release to deduce distribution for testsuiteFrank Ch. Eigler2009-03-291-3/+9
| |
| * tweak "Distro:" line generation in testsuite logs, to moot ↵Frank Ch. Eigler2009-03-291-4/+3
| | | | | | | | "oracle-enterprise.patch"
| * Add headerEugeniy Meshcheryakov2009-03-281-0/+2
| |
| * Version bumps for 0.9.5 releaseJosh Stone2009-03-274-589/+753
| |
| * 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.
| * .gitignore: Add testsuite exe and so files and initscript systemtap.Mark Wielaard2009-03-271-0/+3
| |
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-03-255-0/+117
|\| | | | | | | | | | | Conflicts: Makefile.in
| * Add testcase for uprobe on shared library (PR9940).Mark Wielaard2009-03-244-0/+94
| | | | | | | | | | | | | | * testsuite/systemtap.base/uprobes_exe.c: New file. * testsuite/systemtap.base/uprobes_lib.c: New file. * testsuite/systemtap.base/uprobes_lib.exp: New file. * testsuite/systemtap.base/uprobes_lib.stp: New file.
| * PR9993: tracepoint toleration for undeclared types in trace/*.h headersFrank Ch. Eigler2009-03-241-0/+23
| | | | | | | | | | | | | | | | | | * tapsets.cxx (tracepoint_extra_headers): New function to return needed header file names. (emit_module_decls): Emit them. * buildrun.cxx (make_tracequery): Emit them. * testsuite/systemtap.base/tracepoints.exp: Rewrite to exercise building each tracepoint.
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-03-235-20/+45
|\|
| * sdt.exp: save intermediate sdt.h-client executables for analysisFrank Ch. Eigler2009-03-213-16/+20
| | | | | | | | | | | | * testsuite/lib/stap_run2.exp (stap_run3): Put supplied stap extra arguments after the .stp script name, not before, so that @1/such arguments can be substituted within.
| * Define static user probe point using asm instead of c.Stan Cox2009-03-202-4/+14
| | | | | | | | | | | | | | | | | | * includes/sys/sdt.h (STAP_PROBE_DATA): New. Define the probe point using asm instead of c. (STAP_PROBEN): Use it. * testsuite/systemtap.base/sdt.exp: Continue if a compile fails. * testsuite/systemtap.base/static_uprobes.exp: Don't test setting probe without .probes section.
| * Added functions to grab IP source and destination from a socket, andBreno Leitao2009-03-201-0/+11
| | | | | | | | | | | | | | functions to grab TCP source and destination port from a socket. Also, used this function inside some TCP probe functions, as recvmsg, to provide a richer set of fields.
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-03-199-28/+76
|\|
| * rename process().itrace -> process().insn introduce process().insn.blockFrank Ch. Eigler2009-03-191-5/+2
| |
| * Replace systemtap.samples/ioblocktest.stp with ioblktime.stp.William Cohen2009-03-178-23/+74
| |
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-03-173-13/+11
|\|
| * Improve static_uprobes.expStan Cox2009-03-171-12/+6
| | | | | | | | * systemtap.base/static_uprobes.exp: Compile with -x c++. Test .probes absence.
| * Add pid-based data lookup function.Wenji Huang2009-03-162-1/+5
| | | | | | | | Two functions pid2task and pid2execname.
* | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-03-1651-78/+450
|\| | | | | | | | | | | | | | | | | Conflicts: Makefile.in main.cxx stap-find-servers stap-start-server
| * Add -ansi -pedantic pair to sdt test.Mark Wielaard2009-03-131-1/+1
| | | | | | | | | | * testsuite/systemtap.base/sdt.exp: Add additional_flags -ansi together with -pedantic.
| * Add -O2 and -O3 as extra test flags to sdt.Mark Wielaard2009-03-131-1/+1
| | | | | | | | * testsuite/systemtap.base/sdt.exp: Add -O2, -O3.
| * Introduce stap_run3 for distinct test names.Mark Wielaard2009-03-132-8/+21
| | | | | | | | | | * testsuite/lib/stap_run2.exp: Add stap_run3, called from stap_run2. * testsuite/systemtap.base/sdt.exp: Use stap_run3, for distinct test names.
| * Add test to compile and run all tracepointsJosh Stone2009-03-112-0/+26
| | | | | | | | | | | | | | | | | | This checks that kernel.trace("*") will compile, with all context variables accessed as well. For kernels without tracepoints, it will just hit a "begin" and quit. This doesn't ensure that kernel.trace("*") will always find something when it should, though...
| * Add simple testcases for @castJosh Stone2009-03-113-0/+39
| |
| * improve sdt.h compatibility and test suiteFrank Ch. Eigler2009-03-112-11/+16
| | | | | | | | | | | | Replaced cpp VA_ARGS in sdt.h with explicit enumeration of arguments (since with -pedantic, cpp has no varargs), and added a few more cflags variants to the sdt.exp test case.
| * PR 7071: Optional $context variables fixRajan Arora2009-03-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Substitute erroneous target symbol with literal 0 if session level flag, skip_badvars is set. * session.h (struct systemtap_session): New flag: skip_badvars. * main.cxx: Command line argument --skip-badvars added. * stap.1.in: Entry for new option --skip-badvars. * NEWS: Added blurb for new option now available. * testsuite/semok/badvar.stp: Test case to check added functionality.
| * Run the tests for each member of a list of extra options.Stan Cox2009-03-111-1/+30
| | | | | | | | * testsuite/systemtap.base/sdt.h: Add extra_flags and g++ as a test language.
| * Use alternate keywords for sdt.hStan Cox2009-03-091-1/+1
| | | | | | | | * include/sys/sdt.h: Initialize args when declaring. Use alternate keywords.
| * PR9935. Fixed stap script typos. arg[5-10] -> $arg[5-10].Mark Wielaard2009-03-092-9/+7
| | | | | | | | | | * testsuite/systemtap.base/sdt.exp: Enable stap_run2 when installtest_p. * testsuite/systemtap.base/sdt.stp: Fixed all arg to $arg typos.
| * Add PR9935 number to sdt.exp disabled test.Mark Wielaard2009-03-091-1/+1
| |
| * Add new sdt.exp testcase.Mark Wielaard2009-03-093-0/+154
| | | | | | | | | | | | * testsuite/systemtap.base/sdt.exp: New test file. * testsuite/systemtap.base/sdt.stp: Likewise. * testsuite/systemtap.base/sdt.c: Likewise.
| * Make stap_run2 count exact number of lines.Mark Wielaard2009-03-0939-71/+38
| | | | | | | | | | * testsuite/lib/stap_run2.exp: Compare found and expected number of lines. * testsuite/systemtap.*/*.exp (result_string): Make number of lines exact.
| * Minor changes to labels.exp.Stan Cox2009-03-081-6/+6
| |
| * Fix and add tests for function(".so").statement(N)Stan Cox2009-03-081-3/+83
| | | | | | | | | | | | | | | | * tapsets.cxx (query_dwarf_func): die_has_pc (dwarf_haspc) does not expect a module_start for shared objects so don't call module_address_to_global for the statement address. * testsuite/systemtap.base/labels.exp: Add tests for executable .statement(N), shared object .label("L") and so .statement(N).
| * PR9919: Set last_stmt for array (scalar or statistical) assignments.Mark Wielaard2009-03-042-0/+54
| | | | | | | | * translate.cxx (visit_arrayindex): Update last_stmt.
* | 2009-03-12 Dave Brolley <brolley@redhat.com>Dave Brolley2009-03-122-85/+50
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * util.cxx (remove_file_or_dir): New function. * util.h (remove_file_or_dir): New function. * systemtap.spec (stap): Add stap-env, stap-gen-cert, stap-authorize-cert, and stap-authorize-signing-cert. (stap-client): Remove stap-find-or-start-server, stap-add-server-cert. Add stap-authorize-server-cert. (stap-server): Add stap-find-servers, stap-find-or-start-server, stap-authorize-server-cert. Remove stap-gen-server-cert. * stap-find-servers: Source stap-env. Use $stap_avahi_service_tag. (initialization): Set timeout to 10. (find_servers): Run avahi-browse in the background and wait for it. Use a temp file for the output of avahi-browse. Kill avahi-browse if the timeout expires. (match_server): Set read timeout. (fatal): New function. * stap-find-or-start-server: Source stap-env. Use $stap_exec_prefix. Always exit with 0. * stap-start-server: Source stap-env. Check for the server PID as a running process and for avahi-publish-service running as a child in order to verify that the server is ready. * stap-add-server-cert: Renamed to stap-authorize-server-cert. Source stap-env. Call stap-authorize-cert. * stap-client: Source stap-env. Use $stap_user_ssl_db and $stap_root_ssl_db. Use $stap_tmpdir_prefix_client, $stap_tmpdir_prefix_server. Use $stap_exec_prefix. (configuration): Removed. (staprun_running): Removed. (interrupt): Don't kill staprun. * stap-server: Source stap-env. Use $stap_user_ssl_db and $stap_root_ssl_db. Use $stap_tmpdir_prefix_client, $stap_tmpdir_prefix_server. Use $stap_exec_prefix. (configuration): Removed. * session.h (systemtap_session): Add cert_db_path. * runtime/staprun/staprun_funcs.c (config.h): #include it. (modverify.h): #include it. (check_signature): New function. (check_groups): New function extracted from check_permissions. (check_permissions): Call check_groups and check_signature. * runtime/staprun/mainloop.c (cleanup_and_exit): Pass modpath to staprun, not modname. * main.cxx (main): Initialize cert_db_path. Handle LONG_OPT_SIGN_MODULE. Save the module signature if the module was signed and is being saved. (LONG_OPT_SIGN_MODULE): #define it. (long_options): Add --sign-module. * cache.cxx (config.h): #include it. (add_to_cache): Add the module signature file to the cache if the module has been signed. * buildrun.cxx (modsign.h): #include it. (compile_pass): Call sign_module, if requested. * configure.ac: Define HAVE_NSS if NSS libraries are available. * Makefile.am (AM_CPPFLAGS): Add -DSYSCONFDIR. (bin_SCRIPTS): Add stap-env, stap-gen-cert, stap-authorize-cert, stap-authorize-signing-cert, stap-authorize-server-cert. Remove stap-gen-server-cert, stap-add-server-cert. (stap_SOURCES): Add nsscommon.c, modsign.cxx (stap_CPPFLAGS): Add $(nss_CFLAGS), $(nspr_CFLAGS). (stap_LDADD): Add -lnss3. (staprun_SOURCES): Add nsscommon.c. * modsign.cxx: New file. * modsign.h: New file. * nsscommon.c: New file. * nsscommon.h: New file. * runtime/staprun/modverify.c: New file. * runtime/staprun/modverify.h: New file. * stap-authorize-cert: New file. * stap-authorize-signing-cert: New file. * stap-env: New file. * Makefile.in: Regenerated. * aclocal.m4: Regenerated. * config.in: Regenerated. * configure: Regenerated. * doc/Makefile.in: Regenerated. * doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * testsuite/aclocal.m4: Regenerated.
* Merge branch 'gtod'Josh Stone2009-02-231-0/+29
|\
| * Add a testcase for gtod init/killJosh Stone2009-02-231-0/+29
| | | | | | | | | | | | This test simply checks that _gettimeofday_init and _gettimeofday_kill are pulled in when gettimeofday is used, and also that they are NOT pulled in when gettimeofday is not used.
* | Improve static probe: c++ navigation, -l output.Stan Cox2009-02-231-3/+3
|/ | | | | | | * tapsets.cxx (dwflpp::build): Improve c+ method navigation. Use .label for listing mode. * systemtap.base/static_uprobes.exp: Test multiple invocations of the same probe per block. (SW9770)
* make all examples executableEugeniy Meshcheryakov2009-02-217-0/+0
|
* Check for required resources and tools before attempting tests using the ↵Dave Brolley2009-02-203-11/+42
| | | | | | client/server. Ensure that tests run with/without the server have unique names.