aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trace-cmd.h3
-rw-r--r--trace-output.c7
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 *
176tracecmd_create_file_glob(const char *output_file, 176tracecmd_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);
179struct tracecmd_output *
180tracecmd_create_init_file_glob(const char *output_file,
181 struct tracecmd_event_list *list);
179struct tracecmd_output *tracecmd_create_init_fd(int fd); 182struct tracecmd_output *tracecmd_create_init_fd(int fd);
180struct tracecmd_output *tracecmd_create_init_file(const char *output_file); 183struct tracecmd_output *tracecmd_create_init_file(const char *output_file);
181struct tracecmd_output *tracecmd_create_init_file_override(const char *output_file, 184struct 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
1088struct tracecmd_output *
1089tracecmd_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
1088struct tracecmd_output *tracecmd_create_init_file(const char *output_file) 1095struct 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);