| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1937
* buildrun.cxx (run_pass): Pass new "-d PID" option to stpd.
Set SIGHUP to SIG_IGN too.
2005-12-08 Frank Ch. Eigler <fche@elastic.org>
PR 1937
* stpd.c (main): Support new "-d" option.
(usage): Document it.
* librelay.c (driver_poll): New function to react to death of
driver process.
(stp_main_loop): Call it if "-d PID" given. Treat SIGHUP like others.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* librelay.c: Remove all USE_PROCFS ifdefs.
(sig_usr): Signal handler for SIGUSR1.
(start_cmd): New function to handle "-c" option, forks()
off a new process then waits for SIGUSR1 to exec it.
(init_stp): Call start_cmd().
(stp_main_loop): Set a signal handler for SIGCHLD.
* stpd.c (main): Add "-t" and "-c" options.
(usage): Update with new options.
|
|
|
|
|
| |
* stpd.c main): Add enable_relayfs flag.
Turn it off with "-r".
|
|
|
|
|
| |
* librelay.c (sigproc): Removed the "Exiting..."
message for now.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* librelay.c (merge_output): Don't add an extra \n.
|
|
|
|
|
|
|
| |
* librelay.c (read_last_buffers): New function. Directly grab the
last buffers.
(info_pending): Deleted.
(request_last_buffers): Deleted.
|
|
|
|
|
|
| |
* Makefile (debug): Add debug target.
* librelay.h (dbug): Define.
* librelay.c: Enable some dbug lines.
|
|
|
|
| |
* librelay.c (reader_thread): Check the return value for write().
|
|
|
|
|
|
| |
* librelay.c (modpath): New global. Use it for insmod only.
* stpd.c (main): Set both modpath and modname, to support
modules specified by full path name.
|
|
|
|
|
| |
* stpd.c (main): Simplify buffer size code.
* librelay.c: Major changes to support procfs instead of netlink.
|
| |
|
|
|
|
| |
* librelay.c (init_stp): Change variable name to eliminate shadow warning.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* librelay.c: Correct fwrite api usage.
* all: Correct copyright holder name.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* stp_dump.c: New file.
|
|
|
|
| |
* stp_merge.c (main): Fix dropped count calculation.
|
| |
|
| |
|
|
|
|
|
| |
* stpd.c (main): Pass !quiet mode to init_stp().
* librelay.c (init_relayfs): Be quiet if !print_totals.
|
|
|
|
| |
* stpd.c (usage): Fix usage string.
|
|
|
|
| |
* librelay.c (init_stp): Change last arg to NULL, not 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* librelay.c: Removed the color coding of cpu output.
|
|
|
|
|
|
|
|
|
| |
* librelay.c (merge_output): Use unlocked stdio
to improve speed.
* stp_merge.c: New file.
* Makefile: Add stp_merge.
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
| |
* librelay.c (sigproc): If STP_EXIT send fails, keep retrying
every 10ms.
(init_stp): Don't set n_subbufs and subbuf_size params.
|
| |
|
|
|