diff options
-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); |