2005-08-01 Martin Hunt * 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 * 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-18 Martin Hunt * stp_merge.c (main): Fix dropped count calculation. 2005-07-14 Tom Zanussi * librelay.c (reader_thread): Add missing pthread_mutex_lock 2005-07-14 Frank Ch. Eigler * stpd.c (main): Pass !quiet mode to init_stp(). * librelay.c (init_relayfs): Be quiet if !print_totals. 2005-07-13 Martin Hunt * stpd.c (usage): Fix usage string. * librelay.c (init_stp): Change last arg to NULL, not 0. 2005-07-08 Martin Hunt * 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 * librelay.c: Removed the color coding of cpu output. 2005-06-28 Martin Hunt * librelay.c (merge_output): Use unlocked stdio to improve speed. * stp_merge.c: New file. * Makefile: Add stp_merge. 2005-06-27 Martin Hunt * 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. 2005-06-20 Tom Zanussi * librelay.c: Large refactoring, important changes are added transport_mode command, for relayfs transport display results only when probe completes and/or write output file, merge, sort and delete the per-cpu files in postprocessing, refactor so that relayfs files aren't created until transport command received, removed sigalrm, read the final subbuffers on exit * stpd.c: Remove all command-line args except for -p and -q as well as all code related to buffer sizes. * librelay.h: Add transport mode command and struct. 2005-05-16 Martin Hunt * librelay.c (sigproc): If STP_EXIT send fails, keep retrying every 10ms. (init_stp): Don't set n_subbufs and subbuf_size params.