summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* 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 Graydon Hoare <graydon@redhat.com>graydon2005-07-292-0/+129
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Add io.chunt2005-07-283-1/+81
|
* Add test issii.chunt2005-07-282-0/+51
|
* 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().
* Produce some statistics regarding the time (cpu cycles) in the interrupt handlercspiraki2005-07-221-7/+11
|
* Set HAVE_DOT to NO.hunt2005-07-211-1/+1
|
* Allow clean compile on x86_64 and change output to include process namecspiraki2005-07-211-7/+12
|
* 2005-07-20 Martin Hunt <hunt@redhat.com>hunt2005-07-202-4/+7
| | | | | * io.c (_stp_vlog): Don't count transport failures for these messages.
* 2005-07-19 Martin Hunt <hunt@redhat.com>hunt2005-07-202-2/+10
| | | | | * print.c (_stp_print_flush): Check return value and increment transport failures.
* 2005-07-18 Martin Hunt <hunt@redhat.com>hunt2005-07-193-3/+47
| | | | | | | | | * 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.
* 2005-07-18 Martin Hunt <hunt@redhat.com>hunt2005-07-192-2/+6
| | | | * stp_merge.c (main): Fix dropped count calculation.
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-142-3/+7
| | | | * alloc.c (_stp_error): Rename, to avoid name collision with ../io.c.
* *** empty log message ***trz2005-07-142-0/+9
|
* fix unmatched mutex unlocktrz2005-07-141-0/+1
|
* add forgotten initializationtrz2005-07-141-0/+2
|
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-142-1/+5
| | | | * builtin_functions.h (printk): Use explicit format string.
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-143-3/+9
| | | | | * stpd.c (main): Pass !quiet mode to init_stp(). * librelay.c (init_relayfs): Be quiet if !print_totals.
* 2005-07-13 Martin Hunt <hunt@redhat.com>hunt2005-07-132-1/+3
| | | | * stpd.c (usage): Fix usage string.
* 2005-07-13 Martin Hunt <hunt@redhat.com>hunt2005-07-132-1/+5
| | | | * librelay.c (init_stp): Change last arg to NULL, not 0.
* 2005-07-12 Martin Hunt <hunt@redhat.com>hunt2005-07-135-81/+95
| | | | | | | | | | | | * 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
* 2005-07-12 Graydon Hoare <graydon@redhat.com>graydon2005-07-132-0/+64
| | | | | | | | | | | | | | | | | * 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.
* Fix relayfs.hunt2005-07-121-3/+7
|
* 2005-07-11 Martin Hunt <hunt@redhat.com>hunt2005-07-1212-292/+78
| | | | | | | | | | * 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.
* 2005-07-10 Martin Hunt <hunt@redhat.com>hunt2005-07-112-0/+6
| | | | * runtime.h (init_module): Fix return value.
* Fix buildhunt2005-07-081-16/+2
|
* Update docshunt2005-07-081-0/+1
|
* *** empty log message ***hunt2005-07-081-1/+1
|
* Update.hunt2005-07-081-14/+7
|
* 2005-07-08 Martin Hunt <hunt@redhat.com>hunt2005-07-082-0/+26
| | | | | * runtime.h: Move some common pieces of modules into this file. Includes MODULE_LICENSE, cleanup_module and init_module.
* 2005-07-08 Martin Hunt <hunt@redhat.com>hunt2005-07-0814-189/+39
| | | | | | * ALL: Use new runtime.h. Change init_module() to probe_start() and don't do transport calls. Remove MODULE_LICENSE and cleanup_module().
* Fix accidently commented-out line.hunt2005-07-081-1/+1
|
* 2005-07-08 Martin Hunt <hunt@redhat.com>hunt2005-07-081-8/+20
| | | | | | * shellsnoop/shellsnoop.c (init_module): Call _stp_transport_close() if initialization fails. (cleanup_module): Call _stp_transport_cleanup().
* 2005-07-08 Martin Hunt <hunt@redhat.com>hunt2005-07-083-62/+88
| | | | | | | | | | | | | | | | | | * 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.
* 2005-07-08 Martin Hunt <hunt@redhat.com>hunt2005-07-083-4/+15
| | | | | | * print.c (_stp_print_flush): Rename "t" to "_stp_tport". * io.c (_stp_vlog): Ditto.
* 2005-07-08 Martin Hunt <hunt@redhat.com>hunt2005-07-083-54/+98
| | | | | | | | | | | | | | | | * 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.
* Demonstrate using an asynchronous probe (the os timer)cspiraki2005-07-074-0/+183
|
* 2005-07-01 Martin Hunt <hunt@redhat.com>hunt2005-07-014-5/+10
| | | | | | | * string.c (_stp_string_init): CAll stp_error() on bad init. * list.c (_stp_list_clear): Call _stp_warn().
* 2005-07-01 Martin Hunt <hunt@redhat.com>hunt2005-07-014-51/+86
| | | | | | | | * Makefile.template (debug): New target. * build: Support "debug" target. * build_probe: Ditto.
* 2005-07-01 Martin Hunt <hunt@redhat.com>hunt2005-07-015-21/+24
| | | | | | | | | * 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.
* 2005-07-01 Martin Hunt <hunt@redhat.com>hunt2005-07-016-28/+60
| | | | | | | | | | | | | | * 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.
* 2005-07-01 Martin Hunt <hunt@redhat.com>hunt2005-07-014-23/+152
| | | | | | | | | | | | * 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.
* 2005-07-01 Martin Hunt <hunt@redhat.com>hunt2005-07-012-13/+7
| | | | * librelay.c: Removed the color coding of cpu output.
* 2005-06-29 Martin Hunt <hunt@redhat.com>hunt2005-06-296-30/+17
| | | | | | | * map-values.c (_stp_map_add_int64): Fix docs. * map-str.c: Fix some docs * map.c: Ditto. * map.doc: Ditto.
* 2005-06-29 Martin Hunt <hunt@redhat.com>hunt2005-06-292-1/+30
| | | | | | * current.c (_stp_ret_addr_r): New function. (_stp_probe_addr): New function. (_stp_probe_addr_r): New function.
* *** empty log message ***hunt2005-06-291-17/+2
|
* *** empty log message ***hunt2005-06-281-10/+15
|
* 2005-06-28 Martin Hunt <hunt@redhat.com>hunt2005-06-282-7/+3
| | | | * bench/bench_ret.c (inst_sys_write_ret): Fix prototype.
* *** empty log message ***hunt2005-06-281-0/+22
|