diff options
author | Tzvetomir Stoyanov <tstoyanov@vmware.com> | 2018-11-30 10:44:07 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-12-17 12:56:02 -0500 |
commit | 97fbf3f0e0aa854ed33141dc9a5410f0ac6c71f3 (patch) | |
tree | af372b9195ebb0b8ec0c5eefece85c030a45e7c5 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 4c784894ac29195af24362125a72beda4aeb8b9f (diff) |
tools lib traceevent, perf tools: Rename 'struct tep_event_format' to 'struct tep_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 'struct tep_event_format' to 'struct tep_event', which
describes more closely the purpose of the struct.
Signed-off-by: Tzvetomir Stoyanov <tstoyanov@vmware.com>
Cc: Adrian Hunter <adrian.hunter@intel.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.436403995@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
[ Fixup conflict with 6e33c250a88f ("tools lib traceevent: Fix compile warnings in tools/lib/traceevent/event-parse.c") ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-perl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index 89cb887648f9..b93f36b887b5 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -189,7 +189,7 @@ static void define_flag_field(const char *ev_name, | |||
189 | LEAVE; | 189 | LEAVE; |
190 | } | 190 | } |
191 | 191 | ||
192 | static void define_event_symbols(struct tep_event_format *event, | 192 | static void define_event_symbols(struct tep_event *event, |
193 | const char *ev_name, | 193 | const char *ev_name, |
194 | struct tep_print_arg *args) | 194 | struct tep_print_arg *args) |
195 | { | 195 | { |
@@ -338,7 +338,7 @@ static void perl_process_tracepoint(struct perf_sample *sample, | |||
338 | struct addr_location *al) | 338 | struct addr_location *al) |
339 | { | 339 | { |
340 | struct thread *thread = al->thread; | 340 | struct thread *thread = al->thread; |
341 | struct tep_event_format *event = evsel->tp_format; | 341 | struct tep_event *event = evsel->tp_format; |
342 | struct tep_format_field *field; | 342 | struct tep_format_field *field; |
343 | static char handler[256]; | 343 | static char handler[256]; |
344 | unsigned long long val; | 344 | unsigned long long val; |
@@ -537,7 +537,7 @@ static int perl_stop_script(void) | |||
537 | 537 | ||
538 | static int perl_generate_script(struct tep_handle *pevent, const char *outfile) | 538 | static int perl_generate_script(struct tep_handle *pevent, const char *outfile) |
539 | { | 539 | { |
540 | struct tep_event_format *event = NULL; | 540 | struct tep_event *event = NULL; |
541 | struct tep_format_field *f; | 541 | struct tep_format_field *f; |
542 | char fname[PATH_MAX]; | 542 | char fname[PATH_MAX]; |
543 | int not_first, count; | 543 | int not_first, count; |