diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-02-24 21:12:51 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-02-24 21:12:51 -0500 |
commit | beef6f2839064af40ad6e5f27570a455d674a8ab (patch) | |
tree | 0b3a3d6c78ad6919f434bc3e26c8507f37b6bf75 | |
parent | 93f25f88ad31c86a3e837be434eb4be41e85b561 (diff) |
trace-cmd: Add tracecmd_create_init_file_glob()
Add a version of tracecmd_create_init_file() that allows the caller
to specify what events to save.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-cmd.h | 3 | ||||
-rw-r--r-- | trace-output.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/trace-cmd.h b/trace-cmd.h index cb8e169..e9b4f27 100644 --- a/trace-cmd.h +++ b/trace-cmd.h | |||
@@ -176,6 +176,9 @@ struct tracecmd_output * | |||
176 | tracecmd_create_file_glob(const char *output_file, | 176 | tracecmd_create_file_glob(const char *output_file, |
177 | int cpus, char * const *cpu_data_files, | 177 | int cpus, char * const *cpu_data_files, |
178 | struct tracecmd_event_list *event_globs); | 178 | struct tracecmd_event_list *event_globs); |
179 | struct tracecmd_output * | ||
180 | tracecmd_create_init_file_glob(const char *output_file, | ||
181 | struct tracecmd_event_list *list); | ||
179 | struct tracecmd_output *tracecmd_create_init_fd(int fd); | 182 | struct tracecmd_output *tracecmd_create_init_fd(int fd); |
180 | struct tracecmd_output *tracecmd_create_init_file(const char *output_file); | 183 | struct tracecmd_output *tracecmd_create_init_file(const char *output_file); |
181 | struct tracecmd_output *tracecmd_create_init_file_override(const char *output_file, | 184 | struct tracecmd_output *tracecmd_create_init_file_override(const char *output_file, |
diff --git a/trace-output.c b/trace-output.c index f43aa65..b6875dc 100644 --- a/trace-output.c +++ b/trace-output.c | |||
@@ -1085,6 +1085,13 @@ struct tracecmd_output *tracecmd_create_init_fd(int fd) | |||
1085 | return create_file_fd(fd, NULL, NULL, NULL, &all_event_list); | 1085 | return create_file_fd(fd, NULL, NULL, NULL, &all_event_list); |
1086 | } | 1086 | } |
1087 | 1087 | ||
1088 | struct tracecmd_output * | ||
1089 | tracecmd_create_init_file_glob(const char *output_file, | ||
1090 | struct tracecmd_event_list *list) | ||
1091 | { | ||
1092 | return create_file(output_file, NULL, NULL, NULL, list); | ||
1093 | } | ||
1094 | |||
1088 | struct tracecmd_output *tracecmd_create_init_file(const char *output_file) | 1095 | struct tracecmd_output *tracecmd_create_init_file(const char *output_file) |
1089 | { | 1096 | { |
1090 | return create_file(output_file, NULL, NULL, NULL, &all_event_list); | 1097 | return create_file(output_file, NULL, NULL, NULL, &all_event_list); |