]> sourceware.org Git - systemtap.git/log
systemtap.git
19 years ago2005-08-01 Frank Ch. Eigler <fche@elastic.org>
fche [Mon, 1 Aug 2005 22:53:56 +0000 (22:53 +0000)]
2005-08-01  Frank Ch. Eigler  <fche@elastic.org>

* tapsets.cxx: Support ".return" option for function probe points.
* testuite/buildok/five.stp: Try it.

19 years ago2005-08-01 Martin Hunt <hunt@redhat.com>
hunt [Mon, 1 Aug 2005 22:25:11 +0000 (22:25 +0000)]
2005-08-01  Martin Hunt  <hunt@redhat.com>

* 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.

19 years agoRemove "static" from probe_exit declaration.
hunt [Mon, 1 Aug 2005 22:09:32 +0000 (22:09 +0000)]
Remove "static" from probe_exit declaration.

19 years ago2005-08-01 Martin Hunt <hunt@redhat.com>
hunt [Mon, 1 Aug 2005 21:40:52 +0000 (21:40 +0000)]
2005-08-01  Martin Hunt  <hunt@redhat.com>

* 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.

19 years ago2005-08-01 Martin Hunt <hunt@redhat.com>
hunt [Mon, 1 Aug 2005 21:39:52 +0000 (21:39 +0000)]
2005-08-01  Martin Hunt  <hunt@redhat.com>

* 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().

19 years ago2005-08-01 Martin Hunt <hunt@redhat.com>
hunt [Mon, 1 Aug 2005 21:39:14 +0000 (21:39 +0000)]
2005-08-01  Martin Hunt  <hunt@redhat.com>

* 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.

19 years ago2005-08-01 Frank Ch. Eigler <fche@elastic.org>
fche [Mon, 1 Aug 2005 19:39:05 +0000 (19:39 +0000)]
2005-08-01  Frank Ch. Eigler  <fche@elastic.org>

* 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.

19 years ago2005-08-01 Frank Ch. Eigler <fche@elastic.org>
fche [Mon, 1 Aug 2005 17:40:26 +0000 (17:40 +0000)]
2005-08-01  Frank Ch. Eigler  <fche@elastic.org>

* 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.

19 years agomore meat
fche [Sun, 31 Jul 2005 16:01:36 +0000 (16:01 +0000)]
more meat

19 years ago* some more meat
fche [Fri, 29 Jul 2005 22:11:15 +0000 (22:11 +0000)]
* some more meat

19 years ago2005-07-29 Frank Ch. Eigler <fche@redhat.com>
fche [Fri, 29 Jul 2005 19:30:20 +0000 (19:30 +0000)]
2005-07-29  Frank Ch. Eigler  <fche@redhat.com>

From Graydon Hoare <graydon@redhat.com:
* tapsets.cxx (var_expanding_copy_visitor): Correct lvalue cases.

19 years ago2005-07-29 Frank Ch. Eigler <fche@redhat.com>
fche [Fri, 29 Jul 2005 18:48:38 +0000 (18:48 +0000)]
2005-07-29  Frank Ch. Eigler  <fche@redhat.com>

* Makefile.am: Make sure stpd goes into libexec/systemtap/
* Makefile.in: Regenerated.

19 years ago2005-07-29 Frank Ch. Eigler <fche@redhat.com>
fche [Fri, 29 Jul 2005 18:18:10 +0000 (18:18 +0000)]
2005-07-29  Frank Ch. Eigler  <fche@redhat.com>

* 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.

19 years ago.
roland [Fri, 29 Jul 2005 08:37:51 +0000 (08:37 +0000)]
.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:37:14 +0000 (08:37 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* 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@.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:37:11 +0000 (08:37 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* 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.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:37:09 +0000 (08:37 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* systemtap.spec.in: Include %{_datadir}/systemtap/tapset directory.
(%check): Add section, run make check.
* Makefile.am (EXTRA_DIST): Add runtest.sh.
* Makefile.in: Regenerated.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:37:06 +0000 (08:37 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* 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.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:37:04 +0000 (08:37 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* 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.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:37:01 +0000 (08:37 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* tapsets.cxx: <libdw.h> -> <elfutils/libdw.h>
* loc2c.c, loc2c.h: Likewise.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:36:58 +0000 (08:36 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* 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.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:36:56 +0000 (08:36 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* main.cxx (main): Check return value of system.

19 years ago.
roland [Fri, 29 Jul 2005 08:18:22 +0000 (08:18 +0000)]
.

19 years ago2005-07-29 Roland McGrath <roland@redhat.com>
roland [Fri, 29 Jul 2005 08:18:18 +0000 (08:18 +0000)]
2005-07-29  Roland McGrath  <roland@redhat.com>

* 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.

19 years ago2005-07-28 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 29 Jul 2005 02:03:12 +0000 (02:03 +0000)]
2005-07-28  Frank Ch. Eigler  <fche@elastic.org>

* elaborate.cxx (find_var): Correct array dereferencing thinko.

19 years ago2005-07-28 Graydon Hoare <graydon@redhat.com>
graydon [Fri, 29 Jul 2005 01:47:56 +0000 (01:47 +0000)]
2005-07-28  Graydon Hoare  <graydon@redhat.com>

* 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.

19 years ago2005-07-28 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 28 Jul 2005 22:12:59 +0000 (22:12 +0000)]
2005-07-28  Frank Ch. Eigler  <fche@redhat.com>

* 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.

19 years agoAdd io.c
hunt [Thu, 28 Jul 2005 18:46:16 +0000 (18:46 +0000)]
Add io.c

19 years agoAdd test issii.c
hunt [Thu, 28 Jul 2005 18:45:24 +0000 (18:45 +0000)]
Add test issii.c

19 years ago2005-07-28 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 28 Jul 2005 18:42:58 +0000 (18:42 +0000)]
2005-07-28  Frank Ch. Eigler  <fche@redhat.com>

* 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.

19 years ago2005-07-28 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 28 Jul 2005 18:07:02 +0000 (18:07 +0000)]
2005-07-28  Frank Ch. Eigler  <fche@redhat.com>

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.

19 years ago2005-07-28 Martin Hunt <hunt@redhat.com>
hunt [Thu, 28 Jul 2005 17:35:11 +0000 (17:35 +0000)]
2005-07-28  Martin Hunt  <hunt@redhat.com>

* stp_dump.c: New file.

19 years ago2005-07-28 Martin Hunt <hunt@redhat.com>
hunt [Thu, 28 Jul 2005 17:33:09 +0000 (17:33 +0000)]
2005-07-28  Martin Hunt  <hunt@redhat.com>

* bench/ALL: Chnage to probe sys_getuid() and sys_getgid()
because those aren't used by stpd, unlike sys_read() and sys_write().

19 years ago2005-07-28 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 28 Jul 2005 16:12:38 +0000 (16:12 +0000)]
2005-07-28  Frank Ch. Eigler  <fche@redhat.com>

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.

19 years ago2005-07-28 Martin Hunt <hunt@redhat.com>
hunt [Thu, 28 Jul 2005 15:56:36 +0000 (15:56 +0000)]
2005-07-28  Martin Hunt  <hunt@redhat.com>

* Makefile.am (install-data-local): Add runtime/transport.
* Makefile.in: regenerated.

19 years ago2005-07-26 Graydon Hoare <graydon@redhat.com>
graydon [Wed, 27 Jul 2005 18:08:45 +0000 (18:08 +0000)]
2005-07-26  Graydon Hoare  <graydon@redhat.com>

* elaborate.cxx: Revert builtin-function code.
* translate.cxx: Likewise.
* tapsets.{h,cxx}: Likewise.

19 years ago2005-07-26 Martin Hunt <hunt@redhat.com>
hunt [Wed, 27 Jul 2005 05:52:00 +0000 (05:52 +0000)]
2005-07-26  Martin Hunt  <hunt@redhat.com>

* buildrun.cxx (compile_pass): Add -Wno-unused to CFLAGS because
usually a module doesn't use every function in the runtime.

19 years ago2005-07-26 Martin Hunt <hunt@redhat.com>
hunt [Wed, 27 Jul 2005 05:48:11 +0000 (05:48 +0000)]
2005-07-26  Martin Hunt  <hunt@redhat.com>

* 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.

19 years ago* same sort of thing
fche [Tue, 26 Jul 2005 22:42:55 +0000 (22:42 +0000)]
* same sort of thing

19 years ago2005-07-26 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 26 Jul 2005 22:40:14 +0000 (22:40 +0000)]
2005-07-26  Frank Ch. Eigler  <fche@redhat.com>

Support %{ embedded-c %}
* staptree.h (embeddedcode): New statement subtype.  Stub support in
visitors.
* staptree.cxx: Ditto.
* parse.cxx: Parse %{ / %}.  Accept "_" as identifier leading char.
(parse_probe): Simplify calling convention.
* elaborate.h: Store embedded code.
* elaborate.cxx: Pass it.
* translate.cxx: Transcribe it.  Return some dropped module init/exit
code.
* Makefile.am: Add buildok/buildko tests.
* Makefile.in: Regenerated.
* main.cxx: Return EXIT_SUCCESS/FAILURE even for weird rc.
* testsuite/parseok/nine.stp: Test _identifiers.
* testsuite/transko/*.stp: Tweak to force -p3 rather than -p2 errors.
* testsuite/semok/transko.stp: ... and keep it that way in the future.
* testsuite/parse*/*: Some new tests for %{ %}.
* testsuite/build*/*: New tests for -p4.

19 years ago2005-07-26 Martin Hunt <hunt@redhat.com>
hunt [Tue, 26 Jul 2005 21:08:00 +0000 (21:08 +0000)]
2005-07-26  Martin Hunt  <hunt@redhat.com>

* Makefile.am (AM_CPPFLAGS): Set PKGLIBDIR correctly.

19 years ago2005-07-26 Martin Hunt <hunt@redhat.com>
hunt [Tue, 26 Jul 2005 20:59:29 +0000 (20:59 +0000)]
2005-07-26  Martin Hunt  <hunt@redhat.com>

* systemtap.spec.in: Stpd goes in libexec/systemtap.

* Makefile.am (libexecdir): Set to libexecdir/systemtap.

* aclocal.m4, Makefile.in: Regenerated

19 years agoClean up spec file, fix build of bundled elfutils.
roland [Mon, 25 Jul 2005 19:31:42 +0000 (19:31 +0000)]
Clean up spec file, fix build of bundled elfutils.

19 years ago2005-07-25 Roland McGrath <roland@redhat.com>
roland [Mon, 25 Jul 2005 19:30:44 +0000 (19:30 +0000)]
2005-07-25  Roland McGrath  <roland@redhat.com>

* configure.ac: Don't define PKGLIBDIR and PKGDATADIR here.
* Makefile.am (AM_CPPFLAGS): New variable, use -D here instead.
(dist-hook): Don't remove ChangeLog files.
(install-data-local): Don't install docs, just runtime stuff.
(rpm, clean-local): Use make variables instead of @substitution@s.
* configure, config.in, aclocal.m4, Makefile.in: Regenerated

19 years ago2005-07-22 Graydon Hoare <graydon@redhat.com>
graydon [Sat, 23 Jul 2005 02:50:14 +0000 (02:50 +0000)]
2005-07-22  Graydon Hoare  <graydon@redhat.com>

* translate.cxx (itervar): New class.
(*::visit_foreach_loop): Implement.
Various bug fixes.
* staptree.cxx (deep_copy_visitor::*): Copy tok fields.
* elaborate.cxx (lvalue_aware_traversing_visitor):
(mutated_map_collector):
(no_map_mutation_during_iteration_check): New classes.
(semantic_pass_maps): New function to check map usage.
(semantic_pass): Call it.
* testsuite/transok/eight.stp: Test 'foreach' loop translation.
* testsuite/semko/{thirteen,fourteen,fifteen}.stp:
Test prohibited forms of foreach loops.

19 years agoProduce some statistics regarding the time (cpu cycles) in the interrupt handler
cspiraki [Fri, 22 Jul 2005 18:25:28 +0000 (18:25 +0000)]
Produce some statistics regarding the time (cpu cycles) in the interrupt handler

19 years agoNew file.
hunt [Thu, 21 Jul 2005 22:20:43 +0000 (22:20 +0000)]
New file.

19 years ago2005-07-21 Martin Hunt <hunt@redhat.com>
hunt [Thu, 21 Jul 2005 21:15:24 +0000 (21:15 +0000)]
2005-07-21  Martin Hunt  <hunt@redhat.com>

        * Makefile.am (EXTRA_DIST): Add systemtap.spec.
        (install-data-local): Install docs and probes.
        (docs): New target.
        (rpm): New target.

        * configure.ac: Set initial version to 0.1.1.
        (pkglibdir): Set to libexec.

        * Makefile.in: Regenerated.

19 years agoSet HAVE_DOT to NO.
hunt [Thu, 21 Jul 2005 20:43:31 +0000 (20:43 +0000)]
Set HAVE_DOT to NO.

19 years agoAllow clean compile on x86_64 and change output to include process name
cspiraki [Thu, 21 Jul 2005 03:15:12 +0000 (03:15 +0000)]
Allow clean compile on x86_64 and change output to include process name

19 years ago2005-07-20 Graydon Hoare <graydon@redhat.com>
graydon [Wed, 20 Jul 2005 23:51:17 +0000 (23:51 +0000)]
2005-07-20  Graydon Hoare  <graydon@redhat.com>

* elaborate.{cxx,h} (find_array): Remove.
(find_scalar): Rename to find_var, add array support.
* staptree.{cxx,h} (vardecl::compatible_arity): New method.
* translate.cxx: Refactor, add array read/write support.
* testsuite/transok/three.stp: Uncomment array uses.
* testsuite/transok/seven.stp: New test of array r/w.

19 years ago2005-07-20 Frank Ch. Eigler <fche@redhat.com>
fche [Wed, 20 Jul 2005 22:17:29 +0000 (22:17 +0000)]
2005-07-20  Frank Ch. Eigler  <fche@redhat.com>

* tapsets.cxx (*::emit_[de]registrations): Add logic for probe
lifecycle control (session_state).
* translate.cxx (emit_common_header,emit_module_{init,exit}): Ditto.
(visit_*): Use per-context errorcount.

19 years ago2005-07-20 Martin Hunt <hunt@redhat.com>
hunt [Wed, 20 Jul 2005 18:46:46 +0000 (18:46 +0000)]
2005-07-20  Martin Hunt  <hunt@redhat.com>

        * io.c (_stp_vlog): Don't count transport failures for
        these messages.

19 years ago2005-07-19 Martin Hunt <hunt@redhat.com>
hunt [Wed, 20 Jul 2005 05:27:45 +0000 (05:27 +0000)]
2005-07-19  Martin Hunt  <hunt@redhat.com>

* print.c (_stp_print_flush): Check return value and increment
transport failures.

19 years agonone
fche [Tue, 19 Jul 2005 18:39:31 +0000 (18:39 +0000)]
none

19 years ago2005-07-19 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 19 Jul 2005 18:35:12 +0000 (18:35 +0000)]
2005-07-19  Frank Ch. Eigler  <fche@redhat.com>

* Makefile.am (dist-hook): Complete the resulting tarball.
* Makefile.in: Regenerated.

19 years ago2005-07-19 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 19 Jul 2005 18:24:16 +0000 (18:24 +0000)]
2005-07-19  Frank Ch. Eigler  <fche@redhat.com>

* translate.cxx (emit_module_init/exit, translate_pass): Conform
to newer runtime startup/shutdown hooks.

19 years ago2005-07-18 Martin Hunt <hunt@redhat.com>
hunt [Tue, 19 Jul 2005 06:52:14 +0000 (06:52 +0000)]
2005-07-18  Martin Hunt  <hunt@redhat.com>

* transport.h (_stp_transport_write): Call _stp_relay_write().

* transport.c (_stp_cleanup_and_exit): Print transport
failure count.
(_stp_relay_write): Like relay_write() except returns
-1 on error.

19 years ago2005-07-18 Martin Hunt <hunt@redhat.com>
hunt [Tue, 19 Jul 2005 06:28:57 +0000 (06:28 +0000)]
2005-07-18  Martin Hunt  <hunt@redhat.com>

* stp_merge.c (main): Fix dropped count calculation.

19 years ago2005-07-15 Frank Ch. Eigler <fche@redhat.com>
fche [Fri, 15 Jul 2005 14:49:59 +0000 (14:49 +0000)]
2005-07-15  Frank Ch. Eigler  <fche@redhat.com>

* Makefile.am (install-data-local): Correct typo.
* buildrun.cxx (compile_pass): Ditto.
* main.cxx (main): Print errors if passes 4 or 5 fail.

19 years ago2005-07-14 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 14 Jul 2005 21:09:33 +0000 (21:09 +0000)]
2005-07-14  Frank Ch. Eigler  <fche@redhat.com>

* buildrun.cxx (compile_pass, run_pass): Get closer to a working
test_mode.
* translate.cxx (emit_module_init, emit_common_header): Ditto.
(translate_pass): Ditto.

19 years ago2005-07-14 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 14 Jul 2005 21:08:14 +0000 (21:08 +0000)]
2005-07-14  Frank Ch. Eigler  <fche@redhat.com>

* alloc.c (_stp_error): Rename, to avoid name collision with ../io.c.

19 years ago*** empty log message ***
trz [Thu, 14 Jul 2005 21:07:00 +0000 (21:07 +0000)]
*** empty log message ***

19 years agofix unmatched mutex unlock
trz [Thu, 14 Jul 2005 20:58:22 +0000 (20:58 +0000)]
fix unmatched mutex unlock

19 years agoadd forgotten initialization
trz [Thu, 14 Jul 2005 20:53:17 +0000 (20:53 +0000)]
add forgotten initialization

19 years agonone
fche [Thu, 14 Jul 2005 18:50:37 +0000 (18:50 +0000)]
none

19 years ago2005-07-14 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 14 Jul 2005 18:39:00 +0000 (18:39 +0000)]
2005-07-14  Frank Ch. Eigler  <fche@redhat.com>

* Makefile.am (stpd): Install in $pkglibdir.
(runtime): Copy to $pkgdatadir.
* configure.ac: Pass along pkgdatadir and pkglibdir.
* main.cxx: Default runtime_path from pkgdatadir.
* buildrun.cxx (run_pass): Correct stpd directory.
* Makefile.in, configure, config.in: Regenerated.

19 years ago2005-07-14 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 14 Jul 2005 18:33:29 +0000 (18:33 +0000)]
2005-07-14  Frank Ch. Eigler  <fche@redhat.com>

* builtin_functions.h (printk): Use explicit format string.

19 years ago2005-07-14 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 14 Jul 2005 18:32:49 +0000 (18:32 +0000)]
2005-07-14  Frank Ch. Eigler  <fche@redhat.com>

* stpd.c (main): Pass !quiet mode to init_stp().
* librelay.c (init_relayfs): Be quiet if !print_totals.

19 years ago2005-07-13 Martin Hunt <hunt@redhat.com>
hunt [Wed, 13 Jul 2005 19:37:18 +0000 (19:37 +0000)]
2005-07-13  Martin Hunt  <hunt@redhat.com>

* stpd.c (usage): Fix usage string.

19 years ago2005-07-13 Martin Hunt <hunt@redhat.com>
hunt [Wed, 13 Jul 2005 17:28:28 +0000 (17:28 +0000)]
2005-07-13  Martin Hunt  <hunt@redhat.com>

* librelay.c (init_stp): Change last arg to NULL, not 0.

19 years ago2005-07-12 Martin Hunt <hunt@redhat.com>
hunt [Wed, 13 Jul 2005 06:34:00 +0000 (06:34 +0000)]
2005-07-12  Martin Hunt  <hunt@redhat.com>

* bench/run_bench (do_time): Use ttest instead of "time".
Fix processor computation.

* bench/ttest.c: Like "time.c" except takes an argument
to adjust loop size. Also computes system time + user time
instead of real time. Added a warmup loop to get
consistent results from cpus which adjust speed based on load.

* bench/time.c: Replaced by ttest.c

19 years ago2005-07-12 Graydon Hoare <graydon@redhat.com>
graydon [Wed, 13 Jul 2005 04:47:54 +0000 (04:47 +0000)]
2005-07-12  Graydon Hoare  <graydon@redhat.com>

* elaborate.cxx
(semantic_pass_symbols): Only enter body if non-null.
(semantic_pass_types): Likewise.
(semantic_pass): Pass session to register_standard_tapsets.
* translate.cxx
(builtin_collector): New struct.
(hookup_builtins): New function.
(translate_pass): Only translate functions with bodies.
(c_unparser::emit_common_header): Likewise, and call hookup_builtins.
* tapsets.hh (builtin_function): New class.
(register_standard_tapsets): Change parameter to session.
* tapsets.cc (bultin_function::*): Implement class.
(register_standard_tapsets): Register printk, log, warn.
* testsuite/transok/six.stp: New test.

19 years agonone
fche [Tue, 12 Jul 2005 21:34:04 +0000 (21:34 +0000)]
none

19 years ago2005-07-12 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 12 Jul 2005 21:31:25 +0000 (21:31 +0000)]
2005-07-12  Frank Ch. Eigler  <fche@redhat.com>

* buildrun.cxx (compile_pass): Make non-verbose mode quieter.
(run_pass): Spawn stpd for dirty work.
* Makefile.am: Also build stpd into libexecdir.
* configure.ac: Pass LIBEXECDIR.
* Makefile.in, configure, config.in: Regenerated.
* AUTHORS: Update.

19 years agoFix relayfs.
hunt [Tue, 12 Jul 2005 18:02:39 +0000 (18:02 +0000)]
Fix relayfs.

19 years ago2005-07-11 Martin Hunt <hunt@redhat.com>
hunt [Tue, 12 Jul 2005 00:32:11 +0000 (00:32 +0000)]
2005-07-11  Martin Hunt  <hunt@redhat.com>

* build_probe: Set RELAYFS correctly.

* Makefile.template: Fix for RELAYFS.

* stp: Moved here.  All probes now use this copy.

* ALL/stp: source the master copy of stp.

19 years ago2005-07-11 Graydon Hoare <graydon@redhat.com>
graydon [Mon, 11 Jul 2005 21:47:39 +0000 (21:47 +0000)]
2005-07-11  Graydon Hoare  <graydon@redhat.com>

* staptree.cxx (require): Generally handle null pointers in src.
(deep_copy_visitor::visit_if_statement): Revert fche's change.

19 years ago2005-07-11 Frank Ch. Eigler <fche@redhat.com>
fche [Mon, 11 Jul 2005 19:58:00 +0000 (19:58 +0000)]
2005-07-11  Frank Ch. Eigler  <fche@redhat.com>

* parse.cxx (parse_literal): Compile cleanly on 64-bit host.
* staptree.cxx (deep_copy_visitor::visit_if_statement): Don't
freak on a null if_statement.elseblock.

19 years ago2005-07-10 Martin Hunt <hunt@redhat.com>
hunt [Mon, 11 Jul 2005 06:57:26 +0000 (06:57 +0000)]
2005-07-10  Martin Hunt  <hunt@redhat.com>

* runtime.h (init_module): Fix return value.

19 years agoFix build
hunt [Fri, 8 Jul 2005 22:02:12 +0000 (22:02 +0000)]
Fix build

19 years agoUpdate docs
hunt [Fri, 8 Jul 2005 21:07:19 +0000 (21:07 +0000)]
Update docs

19 years ago*** empty log message ***
hunt [Fri, 8 Jul 2005 20:55:07 +0000 (20:55 +0000)]
*** empty log message ***

19 years agoUpdate.
hunt [Fri, 8 Jul 2005 20:54:30 +0000 (20:54 +0000)]
Update.

19 years ago2005-07-08 Martin Hunt <hunt@redhat.com>
hunt [Fri, 8 Jul 2005 20:51:09 +0000 (20:51 +0000)]
2005-07-08  Martin Hunt  <hunt@redhat.com>

* runtime.h: Move some common pieces of modules into this file.
Includes MODULE_LICENSE, cleanup_module and init_module.

19 years ago2005-07-08 Martin Hunt <hunt@redhat.com>
hunt [Fri, 8 Jul 2005 20:49:58 +0000 (20:49 +0000)]
2005-07-08  Martin Hunt  <hunt@redhat.com>

* ALL: Use new runtime.h. Change init_module()
to probe_start() and don't do transport calls.
Remove MODULE_LICENSE and cleanup_module().

19 years agoFix accidently commented-out line.
hunt [Fri, 8 Jul 2005 19:50:46 +0000 (19:50 +0000)]
Fix accidently commented-out line.

19 years ago2005-07-08 Martin Hunt <hunt@redhat.com>
hunt [Fri, 8 Jul 2005 19:49:23 +0000 (19:49 +0000)]
2005-07-08  Martin Hunt  <hunt@redhat.com>

* shellsnoop/shellsnoop.c (init_module): Call _stp_transport_close()
if initialization fails.
(cleanup_module): Call _stp_transport_cleanup().

19 years ago2005-07-08 Martin Hunt <hunt@redhat.com>
hunt [Fri, 8 Jul 2005 19:40:33 +0000 (19:40 +0000)]
2005-07-08  Martin Hunt  <hunt@redhat.com>

* transport.c: Rename pid to _stp_pid.
Rename t to _stp_tport.
(_stp_cleanup_and_exit): New internal function.
(stp_exit_helper): Call _stp_cleanup_and_exit().
(_stp_transport_cleanup): New function.
(_stp_cmd_handler): Remove handler for STP_TRANSPORT_MODE.
The transport now notifies the daemon of the transport.
(_stp_transport_close): No longer calls _stp_exit_helper().
That is done by _stp_transport_cleanup().
(_stp_transport_open): When done, call _stp_handle_transport()
to notify the daemon what our transport is.
(_stp_transport_send): Put a retry limit on sends.

* transport.h: Rename pid to _stp_pid.
(_stp_transport_cleanup): Add prototype.

19 years ago2005-07-08 Martin Hunt <hunt@redhat.com>
hunt [Fri, 8 Jul 2005 19:32:14 +0000 (19:32 +0000)]
2005-07-08  Martin Hunt  <hunt@redhat.com>

* print.c (_stp_print_flush): Rename "t" to "_stp_tport".

* io.c (_stp_vlog): Ditto.

19 years ago2005-07-08 Martin Hunt <hunt@redhat.com>
hunt [Fri, 8 Jul 2005 19:23:33 +0000 (19:23 +0000)]
2005-07-08  Martin Hunt  <hunt@redhat.com>

* librelay.c (sigchld): Signal handler to detect
completion of module loading.
(init_stp): Use fork/exec instead of system() so
we can get async signal of module load success/failure.
(cleanup_and_exit): New function.
(sigproc): If module is not loaded, don't send message to it.
(stp_main_loop): Call cleanup_and_exit() when STP_EXIT
is received. Don't send a request for the transport
mode. The module will send notification to the daemon
when it is ready.

* stpd.c (main): Don't print message until module
is loaded.

19 years ago2005-07-07 Graydon Hoare <graydon@redhat.com>
graydon [Fri, 8 Jul 2005 03:11:36 +0000 (03:11 +0000)]
2005-07-07  Graydon Hoare  <graydon@redhat.com>

* staptree.{h,cxx} (deep_copy_visitor): New visitor.
* elaborate.cxx
(derived_probe::derived_probe):
(alias_expansion_builder::build): Use it.
* testsuite/semok/fifteen.stp: New test which relies on deep copy.

19 years agonone
fche [Thu, 7 Jul 2005 18:46:05 +0000 (18:46 +0000)]
none

19 years ago2005-07-07 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 7 Jul 2005 18:43:36 +0000 (18:43 +0000)]
2005-07-07  Frank Ch. Eigler  <fche@redhat.com>

* Makefile.am (dist): Package up the source tree, including
testsuite and runtime.
* main.cxx: Use clog instead of cerr for logging messages.
* buildrun.cxx: Ditto.
(compile_pass): Add -Iruntime/user for test mode.
* translate.cxx (*): Commonalize test/real mode output.
* Makefile.in: Regenerated.

19 years agoDemonstrate using an asynchronous probe (the os timer)
cspiraki [Thu, 7 Jul 2005 16:58:36 +0000 (16:58 +0000)]
Demonstrate using an asynchronous probe (the os timer)

19 years ago2005-07-05 Graydon Hoare <graydon@redhat.com>
graydon [Wed, 6 Jul 2005 01:32:09 +0000 (01:32 +0000)]
2005-07-05  Graydon Hoare  <graydon@redhat.com>

* elaborate.{h,cxx}: Revert previous changes.
* tapsets.{h,cxx}: Adapt to verbose as a member of session.
* elaborate.cxx (alias_expansion_builder::build): Avoid copying
locals between alias definition and use.
* testsuite/semok/{twelve,thirteen,fourteen}.stp: New tests.
* staptree.cxx (probe_alias::printsig): Print equals sign.

19 years ago2005-07-05 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 5 Jul 2005 21:27:06 +0000 (21:27 +0000)]
2005-07-05  Frank Ch. Eigler  <fche@redhat.com>

* elaborate.h (systemtap_session): Add more command-line arguments.
* staptree.h (verbose): Bad global, no donut.
* elaborate.cxx: Temporarily disable verbose variable access.
* main.cxx: Support more arguments, build/run passes.  Revamp
temporary file generation and partial-pass output generation.
* tapsets.cxx, translate.cxx: Emit just enough extra punctuation
and fluff to make generated probe pass -Werror.
* buildrun.cxx, buildrun.h: New files for passes 4/5.  Partial
support for build pass, nothing on probe execution yet.
* testsuite/transok/*.stp: Force just -p3, now that -p4/5 exist.
* Makefile.am, Makefile.in: Corresponding changes.

19 years ago2005-07-05 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 5 Jul 2005 20:38:37 +0000 (20:38 +0000)]
2005-07-05  Frank Ch. Eigler  <fche@redhat.com>

* elaborate.h (systemtap_session): Add more command-line arguments.
* staptree.h (verbose): Bad global, no donut.
* elaborate.cxx: Temporarily disable verbose variable access.
* main.cxx: Support more arguments, build/run passes.  Revamp
temporary file generation and partial-pass output generation.
* tapsets.cxx, translate.cxx: Emit just enough extra punctuation
and fluff to make generated probe pass -Werror.
* buildrun.cxx, buildrun.h: New files for passes 4/5.  Partial
support for build pass, nothing on probe execution yet.
* testsuite/transok/*.stp: Force just -p3, now that -p4/5 exist.
* Makefile.am, Makefile.in: Corresponding changes.

19 years ago2005-07-04 Graydon Hoare <graydon@redhat.com>
graydon [Tue, 5 Jul 2005 05:33:56 +0000 (05:33 +0000)]
2005-07-04  Graydon Hoare  <graydon@redhat.com>

* elaborate.h (symresolution_info::current_derived_probe): New field.
(symresolution_info::current_probe): Change type.
* elaborate.cxx (semantic_pass_symbols): Add passes for resolving
locals in pre-derivation base probes and pre-expansion aliases.
(symresolution_info::visit_symbol):
(symresolution_info::find_scalar): Update to match new field.

19 years ago2005-07-01 Martin Hunt <hunt@redhat.com>
hunt [Fri, 1 Jul 2005 19:40:50 +0000 (19:40 +0000)]
2005-07-01  Martin Hunt  <hunt@redhat.com>

* string.c (_stp_string_init): CAll stp_error() on bad
init.

* list.c (_stp_list_clear): Call _stp_warn().

This page took 0.065798 seconds and 5 git commands to generate.