| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
* Makefile.am (AM_CPPFLAGS): Set PKGLIBDIR correctly.
|
|
|
|
|
|
|
|
| |
* systemtap.spec.in: Stpd goes in libexec/systemtap.
* Makefile.am (libexecdir): Set to libexecdir/systemtap.
* aclocal.m4, Makefile.in: Regenerated
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* io.c (_stp_vlog): Don't count transport failures for
these messages.
|
|
|
|
|
| |
* print.c (_stp_print_flush): Check return value and increment
transport failures.
|
| |
|
|
|
|
|
| |
* Makefile.am (dist-hook): Complete the resulting tarball.
* Makefile.in: Regenerated.
|
|
|
|
|
| |
* translate.cxx (emit_module_init/exit, translate_pass): Conform
to newer runtime startup/shutdown hooks.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* stp_merge.c (main): Fix dropped count calculation.
|
|
|
|
|
|
| |
* Makefile.am (install-data-local): Correct typo.
* buildrun.cxx (compile_pass): Ditto.
* main.cxx (main): Print errors if passes 4 or 5 fail.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* alloc.c (_stp_error): Rename, to avoid name collision with ../io.c.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* builtin_functions.h (printk): Use explicit format string.
|
|
|
|
|
| |
* stpd.c (main): Pass !quiet mode to init_stp().
* librelay.c (init_relayfs): Be quiet if !print_totals.
|
|
|
|
| |
* stpd.c (usage): Fix usage string.
|
|
|
|
| |
* librelay.c (init_stp): Change last arg to NULL, not 0.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* staptree.cxx (require): Generally handle null pointers in src.
(deep_copy_visitor::visit_if_statement): Revert fche's change.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* runtime.h (init_module): Fix return value.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* runtime.h: Move some common pieces of modules into this file.
Includes MODULE_LICENSE, cleanup_module and init_module.
|
|
|
|
|
|
| |
* ALL: Use new runtime.h. Change init_module()
to probe_start() and don't do transport calls.
Remove MODULE_LICENSE and cleanup_module().
|
| |
|
|
|
|
|
|
| |
* shellsnoop/shellsnoop.c (init_module): Call _stp_transport_close()
if initialization fails.
(cleanup_module): Call _stp_transport_cleanup().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|