Skip to contentSkip to conversation

trace-cmd library: Remove deprecated APIs for creating an output handler

PATCH In review Tzvetomir Stoyanov (VMware) 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 10/10 trace-cmd library: Remove deprecated APIs for creating an output handler

With the introduction of the new output handler creation flow, some of the old APIs are not used any more. Removed unused APIs:
tracecmd_create_init_file_glob() tracecmd_create_init_fd_glob() tracecmd_create_init_fd_msg() tracecmd_create_init_file_override()

---
 .../include/private/trace-cmd-private.h       |  12 +-
 lib/trace-cmd/trace-output.c                  | 165 ------------------
 2 files changed, 1 insertion(+), 176 deletions(-)
lib/trace-cmd/include/private/trace-cmd-private.h +1 -11
index f148d520..fb050671 100644
@@ -280,19 +280,9 @@ int tracecmd_output_write_headers(struct tracecmd_output *handler,
 				  struct tracecmd_event_list *list);
 
 struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, int cpus);
-struct tracecmd_output *
-tracecmd_create_init_file_glob(const char *output_file,
-			       struct tracecmd_event_list *list);
 struct tracecmd_output *tracecmd_create_init_fd(int fd);
-struct tracecmd_output *
-tracecmd_create_init_fd_glob(int fd, struct tracecmd_event_list *list);
-struct tracecmd_output *
-tracecmd_create_init_fd_msg(struct tracecmd_msg_handle *msg_handle,
-			    struct tracecmd_event_list *list);
+
 struct tracecmd_output *tracecmd_create_init_file(const char *output_file);
-struct tracecmd_output *tracecmd_create_init_file_override(const char *output_file,
-							   const char *tracing_dir,
-							   const char *kallsyms);
 struct tracecmd_option *tracecmd_add_option(struct tracecmd_output *handle,
 					    unsigned short id, int size,
 					    const void *data);
lib/trace-cmd/trace-output.c +0 -165

189 lines not on this page · raw message

Signature · 1 line
2.33.1