diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-06-19 18:19:51 -0400 |
---|---|---|
committer | Masami Hiramatsu <mhiramat@redhat.com> | 2009-06-19 18:19:51 -0400 |
commit | d3584129c20e4246ed5fe53b0f14105d8b7fa212 (patch) | |
tree | 731afa819636340de20934fcc66b8067431b61c9 /runtime/staprun/staprun.h | |
parent | 54bc8f42438e7efc62c5dd2b39618ccd6c953cdd (diff) | |
download | systemtap-steved-d3584129c20e4246ed5fe53b0f14105d8b7fa212.tar.gz systemtap-steved-d3584129c20e4246ed5fe53b0f14105d8b7fa212.tar.xz systemtap-steved-d3584129c20e4246ed5fe53b0f14105d8b7fa212.zip |
Fix on-file flight recorder mode bugs on old kernel.
* runtime/staprun/common.c (make_outfile_name): Moved from relay.c, fix not to
open /dev/null.XXX output files, and add 'bulk' argument for bulkmode.
* runtime/staprun/relay.c (make_outfile_name): Moved to common.c.
* runtime/staprun/relay_old.c (open_oldoutfile): Fix to use fopen() and store
FILE * to percpu_tmpfile[cpu].
Diffstat (limited to 'runtime/staprun/staprun.h')
-rw-r--r-- | runtime/staprun/staprun.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h index bd6402e4..3c9dab3f 100644 --- a/runtime/staprun/staprun.h +++ b/runtime/staprun/staprun.h @@ -120,7 +120,8 @@ int init_oldrelayfs(void); void close_oldrelayfs(int); int write_realtime_data(void *data, ssize_t nb); void setup_signals(void); -int make_outfile_name(char *buf, int max, int fnum, int cpu, time_t t); +int make_outfile_name(char *buf, int max, int fnum, int cpu, + time_t t, int bulk); int init_backlog(int cpu); void write_backlog(int cpu, int fnum, time_t t); time_t read_backlog(int cpu, int fnum); |