summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* Added buf info tracking, removed buf-full warningtrz2005-08-032-9/+31
|
* Added transport failure messagetrz2005-08-033-6/+14
|
* 2005-08-03 Martin Hunt <hunt@redhat.com>hunt2005-08-032-3/+5
| | | | * librelay.c (init_stp): Change variable name to eliminate shadow warning.
* 2005-08-03 Martin Hunt <hunt@redhat.com>hunt2005-08-033-21/+112
| | | | | | | | | * librelay.c (open_control_channel): Set the receive buffer to 512K, or the max allowed. * stpd.c: Remove "-n" subbug option and change "-b" option so you can specify buffering in different ways. Add a verbose option. Exec the "stp_check" script.
* 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.
* 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.
* .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 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().