| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
| |
* stp_dump.c: New file.
|
|
|
|
|
| |
* bench/ALL: Chnage to probe sys_getuid() and sys_getgid()
because those aren't used by stpd, unlike sys_read() and sys_write().
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* io.c (_stp_vlog): Don't count transport failures for
these messages.
|
|
|
|
|
| |
* print.c (_stp_print_flush): Check return value and increment
transport failures.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* alloc.c (_stp_error): Rename, to avoid name collision with ../io.c.
|
| |
|
| |
|
| |
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* print.c (_stp_print_flush): Rename "t" to "_stp_tport".
* io.c (_stp_vlog): Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
| |
* string.c (_stp_string_init): CAll stp_error() on bad
init.
* list.c (_stp_list_clear): Call _stp_warn().
|
|
|
|
|
|
|
|
| |
* Makefile.template (debug): New target.
* build: Support "debug" target.
* build_probe: Ditto.
|
|
|
|
|
|
|
|
|
| |
* probes.c: Convert all _stp_log() calls to either stp_warn() or
dbug().
* print.c: Comment out dbug()s.
* stat-common.c: Comment out dbug()s.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* map.c (_stp_map_new): Call _stp_error() on a bad map type.
Comment out dbug()s.
* map-stat.c (_stp_map_new_hstat_log): Call _stp_warn().
(_stp_map_new_hstat_linear): Ditto.
* map-int.c: Comment out dbug()s.
* map-str.c: Comment out dbug()s.
* map-keys.c: Use _stp_warn(). Comment out dbug()s.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* alloc.c (_stp_alloc): Call _stp_error().
(_stp_valloc): Ditto.
* io.c (_stp_warn): New function.
(_stp_exit): New function.
(_stp_error): New function.
(_stp_dbug): New function.
* runtime.h (dbug): Call _stp_dbug() if DEBUG is defined.
|
|
|
|
| |
* librelay.c: Removed the color coding of cpu output.
|
|
|
|
|
|
|
| |
* map-values.c (_stp_map_add_int64): Fix docs.
* map-str.c: Fix some docs
* map.c: Ditto.
* map.doc: Ditto.
|
|
|
|
|
|
| |
* current.c (_stp_ret_addr_r): New function.
(_stp_probe_addr): New function.
(_stp_probe_addr_r): New function.
|
| |
|
| |
|