Commit fc39851c authored by Tzvetomir Stoyanov's avatar Tzvetomir Stoyanov Committed by Arnaldo Carvalho de Melo

tools lib traceevent: Rename tep_free_format() to tep_free_event()

In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. This renames tep_free_format() to tep_free_event(), which
describes more closely the purpose of the function.
Signed-off-by: default avatarTzvetomir Stoyanov <tstoyanov@vmware.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20181130154647.591673556@goodmis.orgSigned-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 97fbf3f0
...@@ -6154,7 +6154,7 @@ __parse_event(struct tep_handle *pevent, ...@@ -6154,7 +6154,7 @@ __parse_event(struct tep_handle *pevent,
return 0; return 0;
event_add_failed: event_add_failed:
tep_free_format(event); tep_free_event(event);
return ret; return ret;
} }
...@@ -6763,7 +6763,7 @@ static void free_formats(struct tep_format *format) ...@@ -6763,7 +6763,7 @@ static void free_formats(struct tep_format *format)
free_format_fields(format->fields); free_format_fields(format->fields);
} }
void tep_free_format(struct tep_event *event) void tep_free_event(struct tep_event *event)
{ {
free(event->name); free(event->name);
free(event->system); free(event->system);
...@@ -6849,7 +6849,7 @@ void tep_free(struct tep_handle *pevent) ...@@ -6849,7 +6849,7 @@ void tep_free(struct tep_handle *pevent)
} }
for (i = 0; i < pevent->nr_events; i++) for (i = 0; i < pevent->nr_events; i++)
tep_free_format(pevent->events[i]); tep_free_event(pevent->events[i]);
while (pevent->handlers) { while (pevent->handlers) {
handle = pevent->handlers; handle = pevent->handlers;
......
...@@ -475,7 +475,7 @@ enum tep_errno tep_parse_format(struct tep_handle *pevent, ...@@ -475,7 +475,7 @@ enum tep_errno tep_parse_format(struct tep_handle *pevent,
struct tep_event **eventp, struct tep_event **eventp,
const char *buf, const char *buf,
unsigned long size, const char *sys); unsigned long size, const char *sys);
void tep_free_format(struct tep_event *event); void tep_free_event(struct tep_event *event);
void tep_free_format_field(struct tep_format_field *field); void tep_free_format_field(struct tep_format_field *field);
void *tep_get_field_raw(struct trace_seq *s, struct tep_event *event, void *tep_get_field_raw(struct trace_seq *s, struct tep_event *event,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment