diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-09-26 15:18:18 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-10-02 18:09:58 -0400 |
commit | dddb20b8050f3328d8fe6e41e63829f45300789f (patch) | |
tree | 250df905d071524b289e8918ea07db3c8224ea07 /python | |
parent | 258bf567e4d6841834911ccd01c2e982a8667465 (diff) | |
download | trace-cmd-dddb20b8050f3328d8fe6e41e63829f45300789f.tar.gz |
tools lib traceevent, perf tools: Rename struct event_format to struct tep_event_format
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 event_format
to struct tep_event_format
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>
Cc: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180919185722.495820809@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/ctracecmd.i | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/ctracecmd.i b/python/ctracecmd.i index e826679a..4505649f 100644 --- a/python/ctracecmd.i +++ b/python/ctracecmd.i @@ -32,7 +32,7 @@ %inline %{ static int python_callback(struct trace_seq *s, struct tep_record *record, - struct event_format *event, + struct tep_event_format *event, void *context); static int skip_output = 0; @@ -82,7 +82,7 @@ void py_pevent_register_event_handler(struct tep_handle *pevent, int id, static PyObject *py_field_get_stack(struct tep_handle *pevent, struct tep_record *record, - struct event_format *event, + struct tep_event_format *event, int long_size) { PyObject *list; @@ -169,7 +169,7 @@ static PyObject *py_field_get_str(struct format_field *f, struct tep_record *r) strnlen((char *)r->data + f->offset, f->size)); } -static PyObject *py_format_get_keys(struct event_format *ef) +static PyObject *py_format_get_keys(struct tep_event_format *ef) { PyObject *list; struct format_field *f; @@ -191,7 +191,7 @@ static PyObject *py_format_get_keys(struct event_format *ef) %wrapper %{ static int python_callback(struct trace_seq *s, struct tep_record *record, - struct event_format *event, + struct tep_event_format *event, void *context) { PyObject *arglist, *result; @@ -205,7 +205,7 @@ static int python_callback(struct trace_seq *s, SWIG_NewPointerObj(SWIG_as_voidptr(record), SWIGTYPE_p_tep_record, 0), SWIG_NewPointerObj(SWIG_as_voidptr(event), - SWIGTYPE_p_event_format, 0)); + SWIGTYPE_p_tep_event_format, 0)); result = PyEval_CallObject(context, arglist); Py_XDECREF(arglist); |