summaryrefslogtreecommitdiffstats
path: root/runtime/stpd/librelay.c
Commit message (Collapse)AuthorAgeFilesLines
* 2005-08-01 Martin Hunt <hunt@redhat.com>hunt2005-08-011-104/+85
| | | | | | | | | | | | | | | | | | | | | | | | * 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-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.
* fix unmatched mutex unlocktrz2005-07-141-0/+1
|
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-141-2/+3
| | | | | * 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-131-1/+1
| | | | * librelay.c (init_stp): Change last arg to NULL, not 0.
* 2005-07-08 Martin Hunt <hunt@redhat.com>hunt2005-07-081-49/+82
| | | | | | | | | | | | | | | | * 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.
* 2005-07-01 Martin Hunt <hunt@redhat.com>hunt2005-07-011-13/+3
| | | | * librelay.c: Removed the color coding of cpu output.
* 2005-06-28 Martin Hunt <hunt@redhat.com>hunt2005-06-281-24/+15
| | | | | | | | | * librelay.c (merge_output): Use unlocked stdio to improve speed. * stp_merge.c: New file. * Makefile: Add stp_merge.
* 2005-06-27 Martin Hunt <hunt@redhat.com>hunt2005-06-271-96/+77
| | | | | | | | * stpd.c (main): Add new command line arg, "-m" to disable the per-cpu merging. * librelay.c (merge_output): Replacement for sort_output(). Efficiently merges per-cpu streams.
* double rmmod fixtrz2005-06-271-3/+8
|
* Added merging/sorting of per-cpu data, transport config/selection by probe, etctrz2005-06-211-189/+450
|
* 2005-05-16 Martin Hunt <hunt@redhat.com>hunt2005-05-171-11/+13
| | | | | | * librelay.c (sigproc): If STP_EXIT send fails, keep retrying every 10ms. (init_stp): Don't set n_subbufs and subbuf_size params.
* updated to use new transporttrz2005-05-061-134/+90
|
* Update to use relayfs.hunt2005-04-071-0/+520