This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/3] Signal-based file switching support


Hi,

This patch series adds signal-based file switching support on systemtap
runtime. This feature allows administators to move their stap logs to
other storage safely on file-flight recorder mode (-F and -o option
specified).

E.g.

$ stap -F -o logfile -S 100 systemlog.stp
12345
$ ls
logfile.0
<<something happened, or backup routine work>>
$ kill -USR1 12345
$ ls
logfile.0 logfile.1
$ mv logfile.0 /mnt/backup/ 

Thank you,

---
 
Masami Hiramatsu (3):
      Add signal based file switching testcase
      Signal-based file switching support for old relay
      Signal-based file switching support for relay/ring buffer.


 runtime/staprun/relay.c                 |   60 ++++++++++++++++++----
 runtime/staprun/relay_old.c             |   83 +++++++++++++++++++++++++++----
 testsuite/systemtap.base/flightrec1.exp |   12 ++++
 testsuite/systemtap.base/flightrec4.exp |   56 +++++++++++++++++++++
 testsuite/systemtap.base/flightrec5.exp |   64 ++++++++++++++++++++++++
 5 files changed, 251 insertions(+), 24 deletions(-)
 create mode 100644 testsuite/systemtap.base/flightrec4.exp
 create mode 100644 testsuite/systemtap.base/flightrec5.exp

-- 
Masami Hiramatsu
 
Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division
 
e-mail: mhiramat@redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]