Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Tzvetomir 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.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Tzvetomir Stoyanov and committed by
Arnaldo Carvalho de Melo
fc39851c 97fbf3f0

+4 -4
+3 -3
tools/lib/traceevent/event-parse.c
··· 6154 6154 return 0; 6155 6155 6156 6156 event_add_failed: 6157 - tep_free_format(event); 6157 + tep_free_event(event); 6158 6158 return ret; 6159 6159 } 6160 6160 ··· 6763 6763 free_format_fields(format->fields); 6764 6764 } 6765 6765 6766 - void tep_free_format(struct tep_event *event) 6766 + void tep_free_event(struct tep_event *event) 6767 6767 { 6768 6768 free(event->name); 6769 6769 free(event->system); ··· 6849 6849 } 6850 6850 6851 6851 for (i = 0; i < pevent->nr_events; i++) 6852 - tep_free_format(pevent->events[i]); 6852 + tep_free_event(pevent->events[i]); 6853 6853 6854 6854 while (pevent->handlers) { 6855 6855 handle = pevent->handlers;
+1 -1
tools/lib/traceevent/event-parse.h
··· 475 475 struct tep_event **eventp, 476 476 const char *buf, 477 477 unsigned long size, const char *sys); 478 - void tep_free_format(struct tep_event *event); 478 + void tep_free_event(struct tep_event *event); 479 479 void tep_free_format_field(struct tep_format_field *field); 480 480 481 481 void *tep_get_field_raw(struct trace_seq *s, struct tep_event *event,