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/python.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/python.c')
| -rw-r--r-- | tools/perf/util/python.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index 6714d2c517db..ebf84fe8cd29 100644 --- a/tools/perf/util/python.c +++ b/tools/perf/util/python.c | |||
| @@ -340,7 +340,7 @@ static bool is_tracepoint(struct pyrf_event *pevent) | |||
| 340 | } | 340 | } |
| 341 | 341 | ||
| 342 | static PyObject* | 342 | static PyObject* |
| 343 | tracepoint_field(struct pyrf_event *pe, struct format_field *field) | 343 | tracepoint_field(struct pyrf_event *pe, struct tep_format_field *field) |
| 344 | { | 344 | { |
| 345 | struct tep_handle *pevent = field->event->pevent; | 345 | struct tep_handle *pevent = field->event->pevent; |
| 346 | void *data = pe->sample.raw_data; | 346 | void *data = pe->sample.raw_data; |
| @@ -383,7 +383,7 @@ get_tracepoint_field(struct pyrf_event *pevent, PyObject *attr_name) | |||
| 383 | { | 383 | { |
| 384 | const char *str = _PyUnicode_AsString(PyObject_Str(attr_name)); | 384 | const char *str = _PyUnicode_AsString(PyObject_Str(attr_name)); |
| 385 | struct perf_evsel *evsel = pevent->evsel; | 385 | struct perf_evsel *evsel = pevent->evsel; |
| 386 | struct format_field *field; | 386 | struct tep_format_field *field; |
| 387 | 387 | ||
| 388 | if (!evsel->tp_format) { | 388 | if (!evsel->tp_format) { |
| 389 | struct tep_event_format *tp_format; | 389 | struct tep_event_format *tp_format; |
