summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2005-08-02 Roland McGrath <roland@redhat.com>roland2005-08-031-7/+9
| | | | | | * loc2c.c (emit_bitfield): Return bool, value from emit_base_fetch. (c_translate_fetch): Update caller. (c_translate_pointer): Never ignore emit_base_fetch return value.
* .roland2005-08-021-1/+5
|
* 2005-08-02 Roland McGrath <roland@redhat.com>roland2005-08-021-1/+1
| | | | * systemtap.spec.in (%install): Remove parameters after %makeinstall.
* mbehm grammarianismsfche2005-08-021-24/+24
|
* 2005-08-02 Frank Ch. Eigler <fche@elastic.org>fche2005-08-025-8/+33
| | | | | | | | | * loc2.c (emit_loc_address): Emit interleaved declaration into its own nested { } block. * tapsets.cxx (literal_stmt_for_local): Emit deref_fault block unconditionally. * tapset/builtin_hexstring.stp: New builtin. * testsuite/buildok/six.stp: New test.
* 2005-08-02 Frank Ch. Eigler <fche@elastic.org>fche2005-08-022-12/+11
| | | | | * tapsets.cxx (emit_registrations): Treat module_name="kernel" as if module_name="".
* nonefche2005-08-021-0/+1
|
* 2005-08-01 Graydon Hoare <graydon@redhat.com>graydon2005-08-024-46/+72
| | | | | | | | | | * staptree.{cxx,h} (probe_point::component): Add a ctor. * tapsets.cxx (dwarf_derived_probe): Synthesize concrete probe_point for matched pattern. (dwarf_probe_type) (dwarf_query::add_kernel_probe) (dwarf_query::add_module_probe): Remove, they were noise. (dwflpp::module_name_matches): Don't call get_module_dwarf().
* typofche2005-08-011-3/+6
|
* 2005-08-01 Frank Ch. Eigler <fche@redhat.com>fche2005-08-015-5/+10
| | | | | * librelay.c: Correct fwrite api usage. * all: Correct copyright holder name.
* typosfche2005-08-012-3/+3
|
* 2005-08-01 Frank Ch. Eigler <fche@elastic.org>fche2005-08-013-25/+66
| | | | | * tapsets.cxx: Support ".return" option for function probe points. * testuite/buildok/five.stp: Try it.
* 2005-08-01 Martin Hunt <hunt@redhat.com>hunt2005-08-0114-13/+29
| | | | | | | | | | | | | | | | * agg/stat1.c (probe_exit): Remove "static" * agg/count1.c (probe_exit): Ditto. * agg/count2.c (probe_exit): Ditto. * bench/bench_io2.c (probe_exit): Ditto. * bench/bench_io1.c (probe_exit): Ditto. * bench/bench.c (probe_exit): Ditto. * bench/bench_ret.c (probe_exit): Ditto. * bench/bench_multi.c (probe_exit): Ditto. * where_func/kprobe_where_funct.c (probe_exit): Ditto. * test4/test4.c (probe_exit): Ditto. * tasklet/stp_tasklet.c (probe_exit): Ditto. * os_timer/os_timer.c (probe_exit): Ditto. * scf/scf.c (probe_exit): Ditto.
* Remove "static" from probe_exit declaration.hunt2005-08-011-1/+1
|
* 2005-08-01 Martin Hunt <hunt@redhat.com>hunt2005-08-015-128/+134
| | | | | | | | | | | | | | | | | | | | | | | | * librelay.h: Get structs and enums from ../transport/transport_msgs.h to eliminate duplication. * librelay.c (send_request): Retry if send fails. (open_relayfs_files): Use fopen() instead of open() for the percpu tmpfiles. (request_last_buffers): Just send cpu number for STP_BUF_INFO request. (reader_thread): Ditto. (process_subbufs): Use fwrite_unlocked() instead of write(). (sigchld): Removed. (init_stp): Go back to using system() instead of fork and exec to load module. When done, send a TRANSPORT_INFO request. (cleanup_and_exit): Change parameter to simple flag to indicate if the module needs removing. (sigproc): Remove complicated logic and just send STP_EXIT. (stp_main_loop): When receiving STP_TRANSPORT_INFO, set the local params and reply with a STP_START. When receiving STP_START, there was an error, so cleanup and exit. * stpd.c (main): Added new options to set number of buffers and their size.
* 2005-08-01 Martin Hunt <hunt@redhat.com>hunt2005-08-014-15/+12
| | | | | | | * io.c (_stp_vlog): Use _stp_pid instead os _stp_tport->pid. * print.c (_stp_print_flush): Don't need _stp_tport. *runtime.h (probe_start): Just call _stp_transport_init(). (probe_exit): Just call _stp_transport_close().
* 2005-08-01 Martin Hunt <hunt@redhat.com>hunt2005-08-015-217/+217
| | | | | | | | | | | | | | * control.h: Remove STP commands from here and put in transport_msgs. * transport_msgs.h: New file containing the structs and values for the messages exchanged between stpd and transport. * transport.h: Moved stuff shared with stpd to transport_msgs.h * transport.c: Complete rewrite to better handle complicated initialization involving exchanging data with stpd. Supports buffer size negotiation and more.
* 2005-08-01 Frank Ch. Eigler <fche@elastic.org>fche2005-08-015-55/+68
| | | | | | | | | * elaborate.cxx (derive_probes, semantic_pass_symbols): Improve error message specificity. * translate.cxx (emit_module_init): Compact partial registration recovery code. (emit_module_exit): Invert deregistration sequence. * testsuite/buildok/four.stp: Some module() test case.
* 2005-08-01 Frank Ch. Eigler <fche@elastic.org>fche2005-08-0110-147/+426
| | | | | | | | | | | * elaborate.cxx (derive_probes): Print error if results empty. * tapsets.cxx (dwflpp_assert): Handle positive RCs, which likely came from errno. (dwflpp::setup): Improve missing debug-info messages. * testsuite/semko/sixteen,seventeen.stp: New tests. * runtest.sh: Save stdout/stderr of FAIL/XPASS test cases. * Makefile.am (clean-local): Clean up testsuite/. * Makefile.in, aclocal.m4: Regenerated.
* more meatfche2005-07-311-36/+96
|
* * some more meatfche2005-07-291-18/+164
|
* 2005-07-29 Frank Ch. Eigler <fche@redhat.com>fche2005-07-292-6/+14
| | | | | From Graydon Hoare <graydon@redhat.com: * tapsets.cxx (var_expanding_copy_visitor): Correct lvalue cases.
* 2005-07-29 Frank Ch. Eigler <fche@redhat.com>fche2005-07-293-41/+32
| | | | | * Makefile.am: Make sure stpd goes into libexec/systemtap/ * Makefile.in: Regenerated.
* 2005-07-29 Frank Ch. Eigler <fche@redhat.com>fche2005-07-298-452/+20
| | | | | | * configure.ac: Fail configure stage if elfutils 0.111+ is not found. * Makefile.am, elaborate.cxx, tapsets.cxx: Unconditionalize. * configure, Makefile.in, config.in: Regenerated.
* .roland2005-07-291-14/+52
|
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-292-224/+110
| | | | | | | | | | | | * configure.ac: Add AM_CONDITIONAL definition of HAVE_LIBDW. * Makefile.am [HAVE_LIBDW] (stap_SOURCES_libdw): New variable. (stap_SOURCES): Use it, moving loc2c.c there. * configure, config.in: Regenerated. * configure.ac: Don't check for libelf.h, not actually #include'd. Update -ldw check for merged libdwfl+libdw. (stap_LIBS): New substituted variable. Set only this, not LIBS, with -ldw check. * Makefile.am (stap_LDADD): New variable, use @stap_LIBS@.
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-291-9/+0
| | | | | | | * configure.ac: Add AM_CONDITIONAL definition of HAVE_LIBDW. * Makefile.am [HAVE_LIBDW] (stap_SOURCES_libdw): New variable. (stap_SOURCES): Use it, moving loc2c.c there. * configure, config.in: Regenerated.
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-291-17/+26
| | | | | | | * systemtap.spec.in: Include %{_datadir}/systemtap/tapset directory. (%check): Add section, run make check. * Makefile.am (EXTRA_DIST): Add runtest.sh. * Makefile.in: Regenerated.
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-291-11/+13
| | | | | | | | | | | | | | | | | | | | | | * systemtap.spec.in: Include %{_datadir}/systemtap/tapset directory. (%check): Add section, run make check. * Makefile.am (EXTRA_DIST): Add runtest.sh. * Makefile.in: Regenerated. * systemtap.spec.in: Include man pages. * Makefile.am (man_MANS): Renamed to dist_man_MANS. * configure.ac: Add AM_CONDITIONAL definition of HAVE_LIBDW. * Makefile.am [HAVE_LIBDW] (stap_SOURCES_libdw): New variable. (stap_SOURCES): Use it, moving loc2c.c there. * configure, config.in: Regenerated. * configure.ac: Don't check for libelf.h, not actually #include'd. Update -ldw check for merged libdwfl+libdw. (stap_LIBS): New substituted variable. Set only this, not LIBS, with -ldw check. * Makefile.am (stap_LDADD): New variable, use @stap_LIBS@. * Makefile.am (AM_CPPFLAGS): Use ${pkgdatadir}. (AM_CFLAGS): Use -W instead of -Wextra, for gcc 3 compatibility. (stpd_LDFLAGS): Variable removed. (AM_MAKEFLAGS): Variable removed.
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-291-6/+13
| | | | | | | | | | | | | * systemtap.spec.in: Include %{_datadir}/systemtap/tapset directory. (%check): Add section, run make check. * Makefile.am (EXTRA_DIST): Add runtest.sh. * Makefile.in: Regenerated. * systemtap.spec.in: Include man pages. * Makefile.am (man_MANS): Renamed to dist_man_MANS. * systemtap.spec.in (LDFLAGS): Punt using $ORIGIN here, just hard-code %{_libdir}. (elfutils_version): Bump to 0.111. [bundled_elfutils]: Don't massage libdwfl.h header any more.
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-292-158/+158
| | | | | * tapsets.cxx: <libdw.h> -> <elfutils/libdw.h> * loc2c.c, loc2c.h: Likewise.
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-291-1/+1
| | | | | | | | | * configure.ac: Add AM_CONDITIONAL definition of HAVE_LIBDW. * Makefile.am [HAVE_LIBDW] (stap_SOURCES_libdw): New variable. (stap_SOURCES): Use it, moving loc2c.c there. * configure, config.in: Regenerated. * tapsets.cxx: <libdw.h> -> <elfutils/libdw.h> * loc2c.c, loc2c.h: Likewise.
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-291-6/+8
| | | | * main.cxx (main): Check return value of system.
* .roland2005-07-291-5/+11
|
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-291-30/+30
| | | | | | | * librelay.c (process_subbufs): Use unsigned for I. (sigproc): Add __attribute__((unused)) on parameter. (sigchld): Likewise. Avoid shadowing global variable name. (stp_main_loop): Add a cast.
* 2005-07-28 Frank Ch. Eigler <fche@elastic.org>fche2005-07-292-12/+18
| | | | * elaborate.cxx (find_var): Correct array dereferencing thinko.
* 2005-07-28 Graydon Hoare <graydon@redhat.com>graydon2005-07-2912-117/+1960
| | | | | | | | | | | | | | | | | | | | | | | * elaborate.cxx (derived_probe::derived_probe): Accept NULL probe. * staptree.cxx (provide, require): Move from here... * staptree.h: to here, and virtualize deep-copy methods. * translate.cxx (c_unparser::emit_common_header): Include loc2c-runtime.h * tapsets.cxx (dwflpp::iterate_over_modules): Use new, faster getmodules loop. (dwflpp::literal_stmt_for_local): New method, call loc2c. (var_expanding_copy_visitor): New struct which expands $-vars. (dwarf_derived_probe): Rebuild this->body using var expander. (query_function): Refactor logic a bit for speed. * loc2c.{c,h}: Copies (with minor changes) of Roland's work from elfutils CVS. * Makefile.am (AM_CFLAGS): Set to elfutils-style. (stap_SOURCES): Add loc2c.c. * Makefile.in: Regenerate. 2005-07-28 Graydon Hoare <graydon@redhat.com> * loc2c-runtime.h: New file from elfutils CVS.
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-287-30/+221
| | | | | | | | | * stap.1: Beginnings of a man page. * Makefile.am: Install it. Comment out stpd LDADD goodies. * configure.ac: Futilely complain about non-stpd LIBS. * Makefile.in, configure.in: Regenerated. * main.cxx (usage): Remove ARGS from help text, as nothing is done with these yet.
* Add io.chunt2005-07-283-1/+81
|
* Add test issii.chunt2005-07-282-0/+51
|
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-286-25/+65
| | | | | | | | | * translate.cxx: Add "pt_regs*" field to context. * tapsets.cxx (*): Correct kprobes API interface. * testsuite/buildok/three.stp: New test, copied from semok. * Makefile.am (install-data-local): Also install runtime/relayfs, so scripts can build against headers located thereunder. * Makefile.in: Regenerated.
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-2824-430/+446
| | | | | | | | | | | | | | | | | | | translator/1120 * main.cxx (main): Preset -R and -I options from environment variables (if set). Pass guru mode flags to parser. * parse.cxx (privileged): New parser operation flag. Update callers. (parse_embeddedcode): Throw an error if !privileged. (parse_functiondecl): Change signature. Prevent duplicates. (parse_globals): Ditto. * parse.h: Corresponding changes. * tapset/*.stp: Beginnings of real tapset library, to replace previous builtins. * tapsets.cxx: Greatly reduce verbose mode output. * Makefile.am: Install & dist it. * runtest.sh: Refer to it. * Makefile.in, aclocal.m4: Regenerated. * testsuite/*/*.stp: Set guru mode via /bin/sh if needed. * testusite/*/*ko.stp: Homogenize shell scripts.
* 2005-07-28 Martin Hunt <hunt@redhat.com>hunt2005-07-283-2/+88
| | | | * stp_dump.c: New file.
* 2005-07-28 Martin Hunt <hunt@redhat.com>hunt2005-07-287-73/+58
| | | | | * bench/ALL: Chnage to probe sys_getuid() and sys_getgid() because those aren't used by stpd, unlike sys_read() and sys_write().
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-287-29/+91
| | | | | | | | | | | | translator/1120 translator/1123 * elaborate.cxx (semantic_pass_symbols): Print a more helpful error message around exceptions. * elaborate.h (systemtap_session): Add guru_mode field. * main.cxx (main): Initialize it to false. Add version-sensitive script library searching. Add more failure messages. * tapsets.cxx (dwflpp_assert): Add a decorative text parameter. Update callers.
* 2005-07-28 Martin Hunt <hunt@redhat.com>hunt2005-07-283-2/+13
| | | | | * Makefile.am (install-data-local): Add runtime/transport. * Makefile.in: regenerated.
* 2005-07-26 Graydon Hoare <graydon@redhat.com>graydon2005-07-275-144/+27
| | | | | | * elaborate.cxx: Revert builtin-function code. * translate.cxx: Likewise. * tapsets.{h,cxx}: Likewise.
* 2005-07-26 Martin Hunt <hunt@redhat.com>hunt2005-07-272-1/+6
| | | | | * buildrun.cxx (compile_pass): Add -Wno-unused to CFLAGS because usually a module doesn't use every function in the runtime.
* 2005-07-26 Martin Hunt <hunt@redhat.com>hunt2005-07-274-7/+16
| | | | | | | * Makefile.am (stpd_LDFLAGS): Set rpath correclty because otherwise automake doesn't seem to get it right when binaries are in libexec subdirs. (AM_CPPFLAGS): revert. * systemtap.spec.in (LDFLAGS): Set libexecdir here instead.
* * same sort of thingfche2005-07-261-0/+10
|