diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-09-19 14:56:45 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-09-19 16:13:15 -0400 |
commit | 2c92f9828b3ca4e82e7ceffeea76c6fba4044acc (patch) | |
tree | 7d5da2f8651e0d9ea1358d2e2bf66936bed0f279 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 4963b0f88bb91ed0122f7b08876ae89fcafb2842 (diff) |
tools lib traceevent, perf tools: Rename struct format{_field} to struct tep_format{_field}
In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_". This renames struct format to
struct tep_format and struct format_field to struct tep_format_field
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180919185722.661319373@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index 370cc60f0afa..1bb0b0c685b7 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -339,7 +339,7 @@ static void perl_process_tracepoint(struct perf_sample *sample, | |||
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_format *event = evsel->tp_format; |
342 | struct 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; |
345 | unsigned long s, ns; | 345 | unsigned long s, ns; |
@@ -538,7 +538,7 @@ static int perl_stop_script(void) | |||
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_format *event = NULL; |
541 | struct 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; |
544 | FILE *ofp; | 544 | FILE *ofp; |