summaryrefslogtreecommitdiffstats
path: root/runtime/stpd
Commit message (Collapse)AuthorAgeFilesLines
* 2007-03-14 Martin Hunt <hunt@redhat.com>hunt2007-03-148-1928/+0
| | | | | * stpd: Remove directory. * relayfs: Remove directory.
* 2007-03-12 Frank Ch. Eigler <fche@elastic.org>fche2007-03-122-2/+8
| | | | | | | | | | * librelay.c (init_stp): Use /proc/MODULE rather than /proc/systemtap/MODULE. 2007-03-12 Frank Ch. Eigler <fche@elastic.org> * procfs.c (_stp_register_procfs): Use /proc/MODULE rather than /proc/systemtap/MODULE.
* 2006-12-11 Martin Hunt <hunt@redhat.com>hunt2006-12-112-5/+27
| | | | | | * symbols.c (get_sections): Set buffer sizes to large enough sizes to hold all possible values, but also include checks in case we are wrong.
* *** empty log message ***hunt2006-11-151-6/+7
|
* 2006-11-15 Martin Hunt <hunt@redhat.com>hunt2006-11-152-3/+8
| | | | | * symbols.c (do_kernel_symbols): Add sizeof(long) to sym_base to preserve 64-bit alignment.
* 2006-11-09 Martin Hunt <hunt@redhat.com>hunt2006-11-095-39/+47
| | | | | | | | | | | * 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-025-46/+311
|
* fix for transport test failure in nightly testsuitetrz2006-10-102-2/+7
|
* 2006-09-26 David Smith <dsmith@redhat.com>dsmith2006-09-264-9/+15
| | | | | | * Makefile: Changed 'stpd' references to 'staprun'. * librelay.c: Ditto. * stpd.c: Ditto.
* fix for bz 2816trz2006-09-252-46/+27
|
* clean up if stp_check failstrz2006-09-222-1/+5
|
* Conversion from relay-on-procfs to relay-on-debugfstrz2006-09-192-20/+30
|
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-183-35/+57
| | | | | | | | | * stpd.c (usage): Remove "-m" option. (main): Print warning if "-m" is used. * librelay.c (merge_output): Rewrite to handle new format that support binary. (stp_main_loop): Read merge option from the transport info message.
* 2006-09-13 Martin Hunt <hunt@redhat.com>hunt2006-09-134-59/+59
| | | | | | | | | | * 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().
* Fix for bug #2992trz2006-08-022-2/+13
|
* 2006-07-20 Martin Hunt <hunt@redhat.com>hunt2006-07-202-2/+9
| | | | | * librelay.c (stp_main_loop): If module doesn't start, kill any target command.
* Part of fix for bug #2532trz2006-06-232-3/+10
|
* 2006-06-13 Martin Hunt <hunt@redhat.com>hunt2006-06-132-17/+14
| | | | | * librelay.c (start_cmd): Rewrite using sigwait() to eliminate a race.
* 2006-05-18 Martin Hunt <hunt@redhat.com>hunt2006-05-182-0/+6
| | | | | * librelay.c (stp_main_loop): Set output to always be line buffered.
* 2006-04-08 Martin Hunt <hunt@redhat.com>hunt2006-04-082-8/+12
| | | | | * librelay.c (stp_main_loop): Write with fwrite() instead of fputs() so we can write binary data.
* 2006-04-05 Martin Hunt <hunt@redhat.com>hunt2006-04-052-1/+6
| | | | | * librelay.c (merge_output): Remove ANSI codes and write warning to stderr.
* 2006-04-05 Martin Hunt <hunt@redhat.com>hunt2006-04-053-6/+12
| | | | | | * librelay.c (merge_output): Set the output filename if necessary. * stpd.c (main): Don't reset output_filename just because relayfs is possible. Move that code to librelay.c.
* .roland2006-04-051-16/+20
|
* 2006-04-04 Roland McGrath <roland@redhat.com>roland2006-04-051-6/+7
| | | | * stpd.c (main): Cast f_type when comparing; type differs by machine.
* fix for bug #2511trz2006-04-042-4/+9
|
* Fix for bug #2406 (autodetect supported relayfs versions)trz2006-03-152-2/+12
|
* 2006-03-06 Martin Hunt <hunt@redhat.com>hunt2006-03-063-28/+100
| | | | | | | | | | * librelay.c (start_cmd): Set proper uid/gid before execing command. (system_cmd): New function. (cleanup_and_exit): Wait for any child processes to complete. (stp_main_loop): Recognize STP_SYSTEM message. * stpd.c (main): Add support for "-u username".
* 2006-02-25 Martin Hunt <hunt@redhat.com>hunt2006-02-252-6/+15
| | | | * librelay.c (init_stp): Better error handling and cleanup.
* 2006-02-23 Frank Ch. Eigler <fche@elastic.org>fche2006-02-233-5/+31
| | | | | | | | | | | | | | | PR 1304 * parse.cxx (lexer): Take systemtap_session argument. (lexer::scan): Support $1..$NNNN and @1...@NNNN expansion. * stap.1.in: Document this. * testsuite/semok/args.stp: New test. * translate.cxx (var::init, emit_global): Emit code to allow named module parameters to initialize global string/number scalars. * stap.1.in: Don't document this yet. PR 2334 * main.cxx (main): Clarify "-v" option repeatibility. * stap.1.in: Ditto.
* 2005-12-08 Frank Ch. Eigler <fche@elastic.org>fche2005-12-083-1/+38
| | | | | | | | | | | | | | | 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.
* fixes part of PR1194 (passing -o option to stpd)trz2005-10-193-5/+34
|
* switch to binary TIMESTAMPtrz2005-10-194-9/+15
|
* Fix for PR 1476trz2005-10-142-9/+35
|
* 2005-09-06 Martin Hunt <hunt@redhat.com>hunt2005-09-063-21/+79
| | | | | | | | | | | | * 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.
* 2005-08-29 Martin Hunt <hunt@redhat.com>hunt2005-08-292-17/+29
| | | | | * stpd.c main): Add enable_relayfs flag. Turn it off with "-r".
* 2005-08-24 Martin Hunt <hunt@redhat.com>hunt2005-08-242-1/+6
| | | | | * librelay.c (sigproc): Removed the "Exiting..." message for now.
* 2005-08-24 Martin Hunt <hunt@redhat.com>hunt2005-08-244-3/+20
| | | | | | | | | | | * 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-23 Martin Hunt <hunt@redhat.com>hunt2005-08-242-3/+5
| | | | * librelay.c (merge_output): Don't add an extra \n.
* 2005-08-23 Martin Hunt <hunt@redhat.com>hunt2005-08-242-38/+29
| | | | | | | * librelay.c (read_last_buffers): New function. Directly grab the last buffers. (info_pending): Deleted. (request_last_buffers): Deleted.
* 2005-08-22 Martin Hunt <hunt@redhat.com>hunt2005-08-224-7/+21
| | | | | | * Makefile (debug): Add debug target. * librelay.h (dbug): Define. * librelay.c: Enable some dbug lines.
* 2005-08-19 Martin Hunt <hunt@redhat.com>hunt2005-08-192-1/+6
| | | | * librelay.c (reader_thread): Check the return value for write().
* 2005-08-19 Frank Ch. Eigler <fche@elastic.org>fche2005-08-193-3/+19
| | | | | | * 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.
* 2005-08-19 Martin Hunt <hunt@redhat.com>hunt2005-08-193-213/+131
| | | | | * stpd.c (main): Simplify buffer size code. * librelay.c: Major changes to support procfs instead of netlink.
* Added buf info tracking, removed buf-full warningtrz2005-08-032-9/+31
|
* 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-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.
* .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.