Skip to contentSkip to conversation

trace-cmd library: Clean up comments and handle variable name

PATCH New Steven Rostedt 1 participant 1 message Nov 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace-cmd library: Clean up comments and handle variable name

From: "Steven Rostedt (VMware)" <[email protected]>

The descriptor name for the tracecmd_output structure has always been "handle" and not "handler". Rename all the locations that added the use of "handler".

Clean up the function descriptions to remove the self reference of "API".

No functional changes.

---
 .../include/private/trace-cmd-private.h       |  12 +-
 lib/trace-cmd/trace-output.c                  | 177 ++++++++++--------
 2 files changed, 101 insertions(+), 88 deletions(-)
lib/trace-cmd/include/private/trace-cmd-private.h +6 -6
index fb050671..86dbf683 100644
@@ -270,13 +270,13 @@ struct tracecmd_option;
 struct tracecmd_msg_handle;
 
 struct tracecmd_output *tracecmd_output_allocate(int fd);
-int tracecmd_output_set_msg(struct tracecmd_output *handler,
+int tracecmd_output_set_msg(struct tracecmd_output *handle,
 			    struct tracecmd_msg_handle *msg_handle);
-int tracecmd_output_set_trace_dir(struct tracecmd_output *handler, const char *tracing_dir);
-int tracecmd_output_set_kallsyms(struct tracecmd_output *handler, const char *kallsyms);
-int tracecmd_output_set_from_input(struct tracecmd_output *handler, struct tracecmd_input *ihandle);
-int tracecmd_output_write_init(struct tracecmd_output *handler);
-int tracecmd_output_write_headers(struct tracecmd_output *handler,
+int tracecmd_output_set_trace_dir(struct tracecmd_output *handle, const char *tracing_dir);
+int tracecmd_output_set_kallsyms(struct tracecmd_output *handle, const char *kallsyms);
+int tracecmd_output_set_from_input(struct tracecmd_output *handle, struct tracecmd_input *ihandle);
+int tracecmd_output_write_init(struct tracecmd_output *handle);
+int tracecmd_output_write_headers(struct tracecmd_output *handle,
 				  struct tracecmd_event_list *list);
 
 struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, int cpus);
lib/trace-cmd/trace-output.c +95 -82

305 lines not on this page · raw message

Signature · 1 line
2.31.1