From bc7cd435fc98bb3af93b6dc09a2c1f5e3b0423d9 Mon Sep 17 00:00:00 2001 From: Masami Hiramatsu Date: Wed, 16 Sep 2009 16:08:25 -0400 Subject: Signal-based file switching support for relay/ring buffer. * runtime/staprun/relay.c (switch_outfile): New function for file switching. (reader_thread): Don't assign empty_handler to SIGUSR2, and switch output file when receiving signal(SIGUSR2) on ppoll. (switchfile_handler): Send SIGUSR2 signal to reader threads for file switching. (init_relayfs): Assign switchfile_handler to SIGUSR2. * staprun.1.in: Add FILE SWITCHING BY SIGNAL section. --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index b31eaaf7..4fbf59e8 100644 --- a/NEWS +++ b/NEWS @@ -44,6 +44,9 @@ SYSTEMTAP_RUNTIME, SYSTEMTAP_TAPSET, SYSTEMTAP_DEBUGINFO_PATH - nss and nss-tools are required to use this feature. +- Support output file switching by SIGUSR2. Users can command running + stapio to switch output file by sending SIGUSR2. + - Memory consumption for scripts involving many uprobes has been dramatically reduced. -- cgit