diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-03-20 13:38:29 -0400 |
---|---|---|
committer | Masami Hiramatsu <mhiramat@redhat.com> | 2009-03-20 13:38:29 -0400 |
commit | 04ae1b090781725631ba3477ff77721b012cdaba (patch) | |
tree | 36249f31536ce30c49f66a5afb70b9f3d9bb2ce4 /runtime/staprun/staprun.h | |
parent | dc6e1d97c43aa173549ad00bb78d7ea86ec90c95 (diff) | |
download | systemtap-steved-04ae1b090781725631ba3477ff77721b012cdaba.tar.gz systemtap-steved-04ae1b090781725631ba3477ff77721b012cdaba.tar.xz systemtap-steved-04ae1b090781725631ba3477ff77721b012cdaba.zip |
PR9821: staprun supports subset of strftime.
Add strftime subset format support for output file name to systemtap.
This format will be evaluated when opening a new output file.
Diffstat (limited to 'runtime/staprun/staprun.h')
-rw-r--r-- | runtime/staprun/staprun.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h index 6d0f9179..acc533b2 100644 --- a/runtime/staprun/staprun.h +++ b/runtime/staprun/staprun.h @@ -119,7 +119,10 @@ 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); +int make_outfile_name(char *buf, int max, int fnum, int cpu, time_t t); +int init_backlog(int cpu); +void write_backlog(int cpu, int fnum, time_t t); +time_t read_backlog(int cpu, int fnum); /* staprun_funcs.c */ void setup_staprun_signals(void); const char *moderror(int err); @@ -131,6 +134,7 @@ void start_symbol_thread(void); void stop_symbol_thread(void); /* common.c functions */ +int stap_strfloctime(char *buf, size_t max, const char *fmt, time_t t); void parse_args(int argc, char **argv); void usage(char *prog); void parse_modpath(const char *); |