summaryrefslogtreecommitdiffstats
path: root/runtime/stpd/librelay.h
Commit message (Collapse)AuthorAgeFilesLines
* 2007-03-14 Martin Hunt <hunt@redhat.com>hunt2007-03-141-33/+0
| | | | | * stpd: Remove directory. * relayfs: Remove directory.
* 2006-11-09 Martin Hunt <hunt@redhat.com>hunt2006-11-091-0/+11
| | | | | | | | | | | * librelay.c: Change all references to transport messages to use the new names with "_stp" prefix. (stp_main_loop): For STP_SYMBOLS, check pointer size and endianess to confirm staprun is compatible with the kernel. * librelay.h: Move a bunch of common includes here. * stpd.c: Cleanup includes. * symbols.c: Ditto.
* New dynamic module and symbol handling code.hunt2006-11-021-4/+12
|
* 2006-09-13 Martin Hunt <hunt@redhat.com>hunt2006-09-131-1/+1
| | | | | | | | | | * librelay.c (init_relayfs): Exec stp_check and find relay_filebase. * librelay.h (stp_main_loop): Fix declaration of init_stp(). * stpd.c (usage): Remove "-r" option. (main): Don't find stpd_filebase and don't send it to init_stp().
* 2005-08-24 Martin Hunt <hunt@redhat.com>hunt2005-08-241-1/+1
| | | | | | | | | | | * librelay.c (sigproc): Reestablish signal handler so impatient people don't hit ^C twice and terminate the program before it saves the data and removes the module. Also print a message to stderr that it is exiting. (stp_main_loop): Write OOB data (warnings, errors, etc) to stderr instead of stdout. * librelay.h: Write debug info to stderr. * Makefile: add librelay.h to dependencies.
* 2005-08-22 Martin Hunt <hunt@redhat.com>hunt2005-08-221-0/+6
| | | | | | * Makefile (debug): Add debug target. * librelay.h (dbug): Define. * librelay.c: Enable some dbug lines.
* 2005-08-01 Martin Hunt <hunt@redhat.com>hunt2005-08-011-19/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Added merging/sorting of per-cpu data, transport config/selection by probe, etctrz2005-06-211-4/+8
|
* updated to use new transporttrz2005-05-061-43/+13
|
* Update to use relayfs.hunt2005-04-071-0/+51