public inbox for systemtap-cvs@sourceware.org
help / color / mirror / Atom feed
* src/runtime/staprun ChangeLog ctl.c mainloop.c ...
@ 2007-03-26 16:15 hunt
0 siblings, 0 replies; 4+ messages in thread
From: hunt @ 2007-03-26 16:15 UTC (permalink / raw)
To: systemtap-cvs
CVSROOT: /cvs/systemtap
Module name: src
Changes by: hunt@sourceware.org 2007-03-26 17:15:12
Modified files:
runtime/staprun: ChangeLog ctl.c mainloop.c relay.c relay_old.c
staprun.c staprun.h
Log message:
2007-03-26 Martin Hunt <hunt@redhat.com>
* mainloop.c (run_stp_check): Just use system() call.
(init_staprun): Remove _stp_pid module parameter.
(cleanup_and_exit): If closed==2, just exit without removing module.
(driver_poll): Remove. We no longer require stap running.
(_stp_main_loop): Remove call to driver_poll.
* ctl.c (init_ctl_channel): Don't put files in systemtap_pid,
revert back to systemtap/modulename.
* relay.c: Revert back to systemtap/modulename paths.
* relay_old.c: Ditto.
* staprun.c: Add -L and -A args.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ChangeLog.diff?cvsroot=systemtap&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ctl.c.diff?cvsroot=systemtap&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/mainloop.c.diff?cvsroot=systemtap&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/relay.c.diff?cvsroot=systemtap&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/relay_old.c.diff?cvsroot=systemtap&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.c.diff?cvsroot=systemtap&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.h.diff?cvsroot=systemtap&r1=1.3&r2=1.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* src/runtime/staprun ChangeLog ctl.c mainloop.c ...
@ 2007-08-14 15:24 dsmith
0 siblings, 0 replies; 4+ messages in thread
From: dsmith @ 2007-08-14 15:24 UTC (permalink / raw)
To: systemtap-cvs
CVSROOT: /cvs/systemtap
Module name: src
Changes by: dsmith@sourceware.org 2007-08-14 15:23:59
Modified files:
runtime/staprun: ChangeLog ctl.c mainloop.c relay.c relay_old.c
staprun.c staprun.h symbols.c
Added files:
runtime/staprun: cap.c common.c stapio.c staprun_funcs.c
Log message:
2007-08-14 David Smith <dsmith@redhat.com>
Merge from setuid-branch. Changes also by Martin Hunt
<hunt@redhat.com>.
* staprun.c (init_staprun): Drop CAP_SYS_ADMIN when we're done
with it.
(main): Calls parse_modpath instead of path_parse_modname. Just
call parse_modpath with argv[optind]. Let it allocate and set
modpath and modname. If no modulename was given, display usage
and exit. Drop CAP_SYS_NICE when we're done with it. Set
atexit(exit_cleanup) so cleanup always gets called and modules get
removed. Call handle_symbols.
(run_stapio): Set argv[0] to stapio so that it executes as itself
instead of staprun.
(cleanup): Only do cleanups once and only try to remove module
when appropriate.
(exit_cleanup): New. Calls cleanup().
(mountfs): Sets uid to root before making directory and then
restores uid.
(setup_ctl_channel): Uses DEBUGFS define and improved
error message.
(setup_relayfs): Ditto.
(setup_oldrelayfs): Uses DEBUGFS and RELAYFS defines.
(run_stp_check): Replaced by mountfs().
(mountfs): New function. Replaces an external script with C code.
(init_staprun): Calls mountfs() instead of run_stp_check().
* staprun.h: Renamed path_parse_modname to parse_modpath. Added
MODULE_NAME_LEN define. Added [_][p]err macros. Removed
VERSION_CMD.
* mainloop.c (cleanup_and_exit): Make sure initialized is 2
before exiting with code 2.
(stp_main_loop): Set initialized to 2 when STP_TRANSPORT
is received. Call cleanup_and_exit() with proper status.
(start_cmd): exit 1 instead of -1.
(system_cmd): Ditto.
(init_staprun): Renamed init_stapio.
(cleanup_and_exit): Set exit status.
* cap.c: New file.
* common.c: New file.
* stapio.c: New file.
* staprun_funcs.c: New file.
* Makefile: Removed.
* symbols.c (get_sections): Move the filter code up so that
uninteresting section names are filtered out before
attempting to open them.
(do_kernel_symbols): Better detect overfow conditions and realloc
new space.
(do_module): After sending all modules, send a null message to
indicate we are finished.
* ctl.c (init_ctl_channel): When attempting to attach, if the
control channel doesn't exist, print a better error message.
* relay_old.c (init_oldrelayfs): Errors out if
open_relayfs_files() couldn't open any files.
PR 4795
* mainloop.c (send_request): Fixed buffer overflow check.
* staprun.h: Added buffer overflow checking versions of
strcpy/sprintf/snprintf.
* common.c (path_parse_modname): Checks for overflows on
strcpy/sprintf/snprintf.
(read_buffer_info): Ditto.
* ctl.c (init_ctl_channel): Ditto.
* relay.c (init_relayfs): Ditto.
* relay_old.c (open_relayfs_files): Ditto.
(init_oldrelayfs): Ditto.
* staprun_funcs.c (insert_module): Ditto.
(check_path): Ditto.
* symbols.c (get_sections): Ditto.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/cap.c.diff?cvsroot=systemtap&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/common.c.diff?cvsroot=systemtap&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/stapio.c.diff?cvsroot=systemtap&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun_funcs.c.diff?cvsroot=systemtap&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ChangeLog.diff?cvsroot=systemtap&r1=1.25&r2=1.26
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ctl.c.diff?cvsroot=systemtap&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/mainloop.c.diff?cvsroot=systemtap&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/relay.c.diff?cvsroot=systemtap&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/relay_old.c.diff?cvsroot=systemtap&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.c.diff?cvsroot=systemtap&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.h.diff?cvsroot=systemtap&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/symbols.c.diff?cvsroot=systemtap&r1=1.5&r2=1.6
^ permalink raw reply [flat|nested] 4+ messages in thread
* src/runtime/staprun ChangeLog ctl.c mainloop.c ...
@ 2007-05-08 20:38 hunt
0 siblings, 0 replies; 4+ messages in thread
From: hunt @ 2007-05-08 20:38 UTC (permalink / raw)
To: systemtap-cvs
CVSROOT: /cvs/systemtap
Module name: src
Changes by: hunt@sourceware.org 2007-05-08 20:38:11
Modified files:
runtime/staprun: ChangeLog ctl.c mainloop.c relay.c relay_old.c
staprun.c staprun.h
Log message:
2007-05-08 Martin Hunt <hunt@redhat.com>
Signal handler cleanup.
* mainloop.c (fatal_handler): New. Cleanly handle
unexpected fatal signals.
(setup_main_signals): New. Set signals once mainloop
is entered.
(setup_signals): New. Block certain signals during initialization.
Set handler for fatal signals.
* relay.c (reader_thread): Use ppoll(). Terminate on
SIGUSR2 after reading any remaining data.
(close_relayfs): Remove sleep hack. Send SIGUSR2 to all threads.
Runtime debug messages.
* staprun.h: Change dbug() to accept a debuglevel and
enable it.
* *.c: Modify dbug() calls.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ChangeLog.diff?cvsroot=systemtap&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ctl.c.diff?cvsroot=systemtap&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/mainloop.c.diff?cvsroot=systemtap&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/relay.c.diff?cvsroot=systemtap&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/relay_old.c.diff?cvsroot=systemtap&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.c.diff?cvsroot=systemtap&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.h.diff?cvsroot=systemtap&r1=1.5&r2=1.6
^ permalink raw reply [flat|nested] 4+ messages in thread
* src/runtime/staprun ChangeLog ctl.c mainloop.c ...
@ 2007-04-02 17:03 hunt
0 siblings, 0 replies; 4+ messages in thread
From: hunt @ 2007-04-02 17:03 UTC (permalink / raw)
To: systemtap-cvs
CVSROOT: /cvs/systemtap
Module name: src
Changes by: hunt@sourceware.org 2007-04-02 18:03:57
Modified files:
runtime/staprun: ChangeLog ctl.c mainloop.c relay_old.c
staprun.h
Log message:
2007-04-02 Martin Hunt <hunt@redhat.com>
* relay_old.c (close_oldrelayfs): If just detaching, call
pthread_cancel.
(open_relayfs_files): Just return 0 if relay_fd[cpu] not opened.
(init_oldrelayfs): Scan percpu files to calculate ncpus.
* mainloop.c (init_staprun): Call old transport init when necessary.
(cleanup_and_exit): Ignore signals when cleaning up.
* ctl.c (read_buffer_info): For old transport, need to read transport
parameters.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ChangeLog.diff?cvsroot=systemtap&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ctl.c.diff?cvsroot=systemtap&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/mainloop.c.diff?cvsroot=systemtap&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/relay_old.c.diff?cvsroot=systemtap&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.h.diff?cvsroot=systemtap&r1=1.4&r2=1.5
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-14 15:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 16:15 src/runtime/staprun ChangeLog ctl.c mainloop.c hunt
2007-04-02 17:03 hunt
2007-05-08 20:38 hunt
2007-08-14 15:24 dsmith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).