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-python.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-python.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 0c4b050f6fc2..87ef16a1b17e 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -264,7 +264,7 @@ static void define_field(enum tep_print_arg_type field_type, | |||
264 | Py_DECREF(t); | 264 | Py_DECREF(t); |
265 | } | 265 | } |
266 | 266 | ||
267 | static void define_event_symbols(struct tep_event_format *event, | 267 | static void define_event_symbols(struct tep_event *event, |
268 | const char *ev_name, | 268 | const char *ev_name, |
269 | struct tep_print_arg *args) | 269 | struct tep_print_arg *args) |
270 | { | 270 | { |
@@ -332,7 +332,7 @@ static void define_event_symbols(struct tep_event_format *event, | |||
332 | define_event_symbols(event, ev_name, args->next); | 332 | define_event_symbols(event, ev_name, args->next); |
333 | } | 333 | } |
334 | 334 | ||
335 | static PyObject *get_field_numeric_entry(struct tep_event_format *event, | 335 | static PyObject *get_field_numeric_entry(struct tep_event *event, |
336 | struct tep_format_field *field, void *data) | 336 | struct tep_format_field *field, void *data) |
337 | { | 337 | { |
338 | bool is_array = field->flags & TEP_FIELD_IS_ARRAY; | 338 | bool is_array = field->flags & TEP_FIELD_IS_ARRAY; |
@@ -790,7 +790,7 @@ static void python_process_tracepoint(struct perf_sample *sample, | |||
790 | struct perf_evsel *evsel, | 790 | struct perf_evsel *evsel, |
791 | struct addr_location *al) | 791 | struct addr_location *al) |
792 | { | 792 | { |
793 | struct tep_event_format *event = evsel->tp_format; | 793 | struct tep_event *event = evsel->tp_format; |
794 | PyObject *handler, *context, *t, *obj = NULL, *callchain; | 794 | PyObject *handler, *context, *t, *obj = NULL, *callchain; |
795 | PyObject *dict = NULL, *all_entries_dict = NULL; | 795 | PyObject *dict = NULL, *all_entries_dict = NULL; |
796 | static char handler_name[256]; | 796 | static char handler_name[256]; |
@@ -1590,7 +1590,7 @@ static int python_stop_script(void) | |||
1590 | 1590 | ||
1591 | static int python_generate_script(struct tep_handle *pevent, const char *outfile) | 1591 | static int python_generate_script(struct tep_handle *pevent, const char *outfile) |
1592 | { | 1592 | { |
1593 | struct tep_event_format *event = NULL; | 1593 | struct tep_event *event = NULL; |
1594 | struct tep_format_field *f; | 1594 | struct tep_format_field *f; |
1595 | char fname[PATH_MAX]; | 1595 | char fname[PATH_MAX]; |
1596 | int not_first, count; | 1596 | int not_first, count; |