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 | |
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')
-rw-r--r-- | tools/perf/builtin-trace.c | 14 | ||||
-rw-r--r-- | tools/perf/tests/evsel-tp-sched.c | 2 | ||||
-rw-r--r-- | tools/perf/util/data-convert-bt.c | 22 | ||||
-rw-r--r-- | tools/perf/util/evsel.c | 8 | ||||
-rw-r--r-- | tools/perf/util/evsel.h | 6 | ||||
-rw-r--r-- | tools/perf/util/evsel_fprintf.c | 2 | ||||
-rw-r--r-- | tools/perf/util/python.c | 4 | ||||
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-perl.c | 4 | ||||
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 6 | ||||
-rw-r--r-- | tools/perf/util/sort.c | 18 | ||||
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 4 |
11 files changed, 45 insertions, 45 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 9f8c365dacb1..95f3c255d977 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -181,7 +181,7 @@ static int __tp_field__init_uint(struct tp_field *field, int size, int offset, b | |||
181 | return 0; | 181 | return 0; |
182 | } | 182 | } |
183 | 183 | ||
184 | static int tp_field__init_uint(struct tp_field *field, struct format_field *format_field, bool needs_swap) | 184 | static int tp_field__init_uint(struct tp_field *field, struct tep_format_field *format_field, bool needs_swap) |
185 | { | 185 | { |
186 | return __tp_field__init_uint(field, format_field->size, format_field->offset, needs_swap); | 186 | return __tp_field__init_uint(field, format_field->size, format_field->offset, needs_swap); |
187 | } | 187 | } |
@@ -198,7 +198,7 @@ static int __tp_field__init_ptr(struct tp_field *field, int offset) | |||
198 | return 0; | 198 | return 0; |
199 | } | 199 | } |
200 | 200 | ||
201 | static int tp_field__init_ptr(struct tp_field *field, struct format_field *format_field) | 201 | static int tp_field__init_ptr(struct tp_field *field, struct tep_format_field *format_field) |
202 | { | 202 | { |
203 | return __tp_field__init_ptr(field, format_field->offset); | 203 | return __tp_field__init_ptr(field, format_field->offset); |
204 | } | 204 | } |
@@ -214,7 +214,7 @@ static int perf_evsel__init_tp_uint_field(struct perf_evsel *evsel, | |||
214 | struct tp_field *field, | 214 | struct tp_field *field, |
215 | const char *name) | 215 | const char *name) |
216 | { | 216 | { |
217 | struct format_field *format_field = perf_evsel__field(evsel, name); | 217 | struct tep_format_field *format_field = perf_evsel__field(evsel, name); |
218 | 218 | ||
219 | if (format_field == NULL) | 219 | if (format_field == NULL) |
220 | return -1; | 220 | return -1; |
@@ -230,7 +230,7 @@ static int perf_evsel__init_tp_ptr_field(struct perf_evsel *evsel, | |||
230 | struct tp_field *field, | 230 | struct tp_field *field, |
231 | const char *name) | 231 | const char *name) |
232 | { | 232 | { |
233 | struct format_field *format_field = perf_evsel__field(evsel, name); | 233 | struct tep_format_field *format_field = perf_evsel__field(evsel, name); |
234 | 234 | ||
235 | if (format_field == NULL) | 235 | if (format_field == NULL) |
236 | return -1; | 236 | return -1; |
@@ -867,7 +867,7 @@ struct syscall { | |||
867 | int args_size; | 867 | int args_size; |
868 | bool is_exit; | 868 | bool is_exit; |
869 | bool is_open; | 869 | bool is_open; |
870 | struct format_field *args; | 870 | struct tep_format_field *args; |
871 | const char *name; | 871 | const char *name; |
872 | struct syscall_fmt *fmt; | 872 | struct syscall_fmt *fmt; |
873 | struct syscall_arg_fmt *arg_fmt; | 873 | struct syscall_arg_fmt *arg_fmt; |
@@ -1279,7 +1279,7 @@ static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args) | |||
1279 | 1279 | ||
1280 | static int syscall__set_arg_fmts(struct syscall *sc) | 1280 | static int syscall__set_arg_fmts(struct syscall *sc) |
1281 | { | 1281 | { |
1282 | struct format_field *field, *last_field = NULL; | 1282 | struct tep_format_field *field, *last_field = NULL; |
1283 | int idx = 0, len; | 1283 | int idx = 0, len; |
1284 | 1284 | ||
1285 | for (field = sc->args; field; field = field->next, ++idx) { | 1285 | for (field = sc->args; field; field = field->next, ++idx) { |
@@ -1525,7 +1525,7 @@ static size_t syscall__scnprintf_args(struct syscall *sc, char *bf, size_t size, | |||
1525 | ttrace->ret_scnprintf = NULL; | 1525 | ttrace->ret_scnprintf = NULL; |
1526 | 1526 | ||
1527 | if (sc->args != NULL) { | 1527 | if (sc->args != NULL) { |
1528 | struct format_field *field; | 1528 | struct tep_format_field *field; |
1529 | 1529 | ||
1530 | for (field = sc->args; field; | 1530 | for (field = sc->args; field; |
1531 | field = field->next, ++arg.idx, bit <<= 1) { | 1531 | field = field->next, ++arg.idx, bit <<= 1) { |
diff --git a/tools/perf/tests/evsel-tp-sched.c b/tools/perf/tests/evsel-tp-sched.c index 699561fa512c..da9d3c0f8ead 100644 --- a/tools/perf/tests/evsel-tp-sched.c +++ b/tools/perf/tests/evsel-tp-sched.c | |||
@@ -8,7 +8,7 @@ | |||
8 | static int perf_evsel__test_field(struct perf_evsel *evsel, const char *name, | 8 | static int perf_evsel__test_field(struct perf_evsel *evsel, const char *name, |
9 | int size, bool should_be_signed) | 9 | int size, bool should_be_signed) |
10 | { | 10 | { |
11 | struct format_field *field = perf_evsel__field(evsel, name); | 11 | struct tep_format_field *field = perf_evsel__field(evsel, name); |
12 | int is_signed; | 12 | int is_signed; |
13 | int ret = 0; | 13 | int ret = 0; |
14 | 14 | ||
diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c index f75d4aa612c5..1817bbcc4a62 100644 --- a/tools/perf/util/data-convert-bt.c +++ b/tools/perf/util/data-convert-bt.c | |||
@@ -182,7 +182,7 @@ err_put_field: | |||
182 | } | 182 | } |
183 | 183 | ||
184 | static struct bt_ctf_field_type* | 184 | static struct bt_ctf_field_type* |
185 | get_tracepoint_field_type(struct ctf_writer *cw, struct format_field *field) | 185 | get_tracepoint_field_type(struct ctf_writer *cw, struct tep_format_field *field) |
186 | { | 186 | { |
187 | unsigned long flags = field->flags; | 187 | unsigned long flags = field->flags; |
188 | 188 | ||
@@ -287,7 +287,7 @@ static int add_tracepoint_field_value(struct ctf_writer *cw, | |||
287 | struct bt_ctf_event_class *event_class, | 287 | struct bt_ctf_event_class *event_class, |
288 | struct bt_ctf_event *event, | 288 | struct bt_ctf_event *event, |
289 | struct perf_sample *sample, | 289 | struct perf_sample *sample, |
290 | struct format_field *fmtf) | 290 | struct tep_format_field *fmtf) |
291 | { | 291 | { |
292 | struct bt_ctf_field_type *type; | 292 | struct bt_ctf_field_type *type; |
293 | struct bt_ctf_field *array_field; | 293 | struct bt_ctf_field *array_field; |
@@ -396,10 +396,10 @@ err_put_field: | |||
396 | static int add_tracepoint_fields_values(struct ctf_writer *cw, | 396 | static int add_tracepoint_fields_values(struct ctf_writer *cw, |
397 | struct bt_ctf_event_class *event_class, | 397 | struct bt_ctf_event_class *event_class, |
398 | struct bt_ctf_event *event, | 398 | struct bt_ctf_event *event, |
399 | struct format_field *fields, | 399 | struct tep_format_field *fields, |
400 | struct perf_sample *sample) | 400 | struct perf_sample *sample) |
401 | { | 401 | { |
402 | struct format_field *field; | 402 | struct tep_format_field *field; |
403 | int ret; | 403 | int ret; |
404 | 404 | ||
405 | for (field = fields; field; field = field->next) { | 405 | for (field = fields; field; field = field->next) { |
@@ -417,8 +417,8 @@ static int add_tracepoint_values(struct ctf_writer *cw, | |||
417 | struct perf_evsel *evsel, | 417 | struct perf_evsel *evsel, |
418 | struct perf_sample *sample) | 418 | struct perf_sample *sample) |
419 | { | 419 | { |
420 | struct format_field *common_fields = evsel->tp_format->format.common_fields; | 420 | struct tep_format_field *common_fields = evsel->tp_format->format.common_fields; |
421 | struct format_field *fields = evsel->tp_format->format.fields; | 421 | struct tep_format_field *fields = evsel->tp_format->format.fields; |
422 | int ret; | 422 | int ret; |
423 | 423 | ||
424 | ret = add_tracepoint_fields_values(cw, event_class, event, | 424 | ret = add_tracepoint_fields_values(cw, event_class, event, |
@@ -970,7 +970,7 @@ out: | |||
970 | 970 | ||
971 | static int event_class_add_field(struct bt_ctf_event_class *event_class, | 971 | static int event_class_add_field(struct bt_ctf_event_class *event_class, |
972 | struct bt_ctf_field_type *type, | 972 | struct bt_ctf_field_type *type, |
973 | struct format_field *field) | 973 | struct tep_format_field *field) |
974 | { | 974 | { |
975 | struct bt_ctf_field_type *t = NULL; | 975 | struct bt_ctf_field_type *t = NULL; |
976 | char *name; | 976 | char *name; |
@@ -1009,10 +1009,10 @@ static int event_class_add_field(struct bt_ctf_event_class *event_class, | |||
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | static int add_tracepoint_fields_types(struct ctf_writer *cw, | 1011 | static int add_tracepoint_fields_types(struct ctf_writer *cw, |
1012 | struct format_field *fields, | 1012 | struct tep_format_field *fields, |
1013 | struct bt_ctf_event_class *event_class) | 1013 | struct bt_ctf_event_class *event_class) |
1014 | { | 1014 | { |
1015 | struct format_field *field; | 1015 | struct tep_format_field *field; |
1016 | int ret; | 1016 | int ret; |
1017 | 1017 | ||
1018 | for (field = fields; field; field = field->next) { | 1018 | for (field = fields; field; field = field->next) { |
@@ -1055,8 +1055,8 @@ static int add_tracepoint_types(struct ctf_writer *cw, | |||
1055 | struct perf_evsel *evsel, | 1055 | struct perf_evsel *evsel, |
1056 | struct bt_ctf_event_class *class) | 1056 | struct bt_ctf_event_class *class) |
1057 | { | 1057 | { |
1058 | struct format_field *common_fields = evsel->tp_format->format.common_fields; | 1058 | struct tep_format_field *common_fields = evsel->tp_format->format.common_fields; |
1059 | struct format_field *fields = evsel->tp_format->format.fields; | 1059 | struct tep_format_field *fields = evsel->tp_format->format.fields; |
1060 | int ret; | 1060 | int ret; |
1061 | 1061 | ||
1062 | ret = add_tracepoint_fields_types(cw, common_fields, class); | 1062 | ret = add_tracepoint_fields_types(cw, common_fields, class); |
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 4ec909d57e9c..751c98a2e336 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -2682,7 +2682,7 @@ int perf_event__synthesize_sample(union perf_event *event, u64 type, | |||
2682 | return 0; | 2682 | return 0; |
2683 | } | 2683 | } |
2684 | 2684 | ||
2685 | struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name) | 2685 | struct tep_format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name) |
2686 | { | 2686 | { |
2687 | return tep_find_field(evsel->tp_format, name); | 2687 | return tep_find_field(evsel->tp_format, name); |
2688 | } | 2688 | } |
@@ -2690,7 +2690,7 @@ struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *nam | |||
2690 | void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample, | 2690 | void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample, |
2691 | const char *name) | 2691 | const char *name) |
2692 | { | 2692 | { |
2693 | struct format_field *field = perf_evsel__field(evsel, name); | 2693 | struct tep_format_field *field = perf_evsel__field(evsel, name); |
2694 | int offset; | 2694 | int offset; |
2695 | 2695 | ||
2696 | if (!field) | 2696 | if (!field) |
@@ -2706,7 +2706,7 @@ void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample, | |||
2706 | return sample->raw_data + offset; | 2706 | return sample->raw_data + offset; |
2707 | } | 2707 | } |
2708 | 2708 | ||
2709 | u64 format_field__intval(struct format_field *field, struct perf_sample *sample, | 2709 | u64 format_field__intval(struct tep_format_field *field, struct perf_sample *sample, |
2710 | bool needs_swap) | 2710 | bool needs_swap) |
2711 | { | 2711 | { |
2712 | u64 value; | 2712 | u64 value; |
@@ -2748,7 +2748,7 @@ u64 format_field__intval(struct format_field *field, struct perf_sample *sample, | |||
2748 | u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample, | 2748 | u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample, |
2749 | const char *name) | 2749 | const char *name) |
2750 | { | 2750 | { |
2751 | struct format_field *field = perf_evsel__field(evsel, name); | 2751 | struct tep_format_field *field = perf_evsel__field(evsel, name); |
2752 | 2752 | ||
2753 | if (!field) | 2753 | if (!field) |
2754 | return 0; | 2754 | return 0; |
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index c0f275cf96ee..4107c39f4a54 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h | |||
@@ -296,11 +296,11 @@ static inline char *perf_evsel__strval(struct perf_evsel *evsel, | |||
296 | return perf_evsel__rawptr(evsel, sample, name); | 296 | return perf_evsel__rawptr(evsel, sample, name); |
297 | } | 297 | } |
298 | 298 | ||
299 | struct format_field; | 299 | struct tep_format_field; |
300 | 300 | ||
301 | u64 format_field__intval(struct format_field *field, struct perf_sample *sample, bool needs_swap); | 301 | u64 format_field__intval(struct tep_format_field *field, struct perf_sample *sample, bool needs_swap); |
302 | 302 | ||
303 | struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name); | 303 | struct tep_format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name); |
304 | 304 | ||
305 | #define perf_evsel__match(evsel, t, c) \ | 305 | #define perf_evsel__match(evsel, t, c) \ |
306 | (evsel->attr.type == PERF_TYPE_##t && \ | 306 | (evsel->attr.type == PERF_TYPE_##t && \ |
diff --git a/tools/perf/util/evsel_fprintf.c b/tools/perf/util/evsel_fprintf.c index 06dfb027879d..0d0a4c6f368b 100644 --- a/tools/perf/util/evsel_fprintf.c +++ b/tools/perf/util/evsel_fprintf.c | |||
@@ -73,7 +73,7 @@ int perf_evsel__fprintf(struct perf_evsel *evsel, | |||
73 | } | 73 | } |
74 | 74 | ||
75 | if (details->trace_fields) { | 75 | if (details->trace_fields) { |
76 | struct format_field *field; | 76 | struct tep_format_field *field; |
77 | 77 | ||
78 | if (evsel->attr.type != PERF_TYPE_TRACEPOINT) { | 78 | if (evsel->attr.type != PERF_TYPE_TRACEPOINT) { |
79 | printed += comma_fprintf(fp, &first, " (not a tracepoint)"); | 79 | printed += comma_fprintf(fp, &first, " (not a tracepoint)"); |
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; |
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; |
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 9a8a7b7ff64a..dc26e58a791e 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -333,7 +333,7 @@ static void define_event_symbols(struct tep_event_format *event, | |||
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_format *event, |
336 | struct format_field *field, void *data) | 336 | struct tep_format_field *field, void *data) |
337 | { | 337 | { |
338 | bool is_array = field->flags & FIELD_IS_ARRAY; | 338 | bool is_array = field->flags & FIELD_IS_ARRAY; |
339 | PyObject *obj = NULL, *list = NULL; | 339 | PyObject *obj = NULL, *list = NULL; |
@@ -794,7 +794,7 @@ static void python_process_tracepoint(struct perf_sample *sample, | |||
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]; |
797 | struct format_field *field; | 797 | struct tep_format_field *field; |
798 | unsigned long s, ns; | 798 | unsigned long s, ns; |
799 | unsigned n = 0; | 799 | unsigned n = 0; |
800 | int pid; | 800 | int pid; |
@@ -1591,7 +1591,7 @@ static int python_stop_script(void) | |||
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_format *event = NULL; |
1594 | struct 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; |
1597 | FILE *ofp; | 1597 | FILE *ofp; |
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index b284276ec963..5e3179d995f9 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -1884,7 +1884,7 @@ static int __sort_dimension__add_hpp_output(struct sort_dimension *sd, | |||
1884 | struct hpp_dynamic_entry { | 1884 | struct hpp_dynamic_entry { |
1885 | struct perf_hpp_fmt hpp; | 1885 | struct perf_hpp_fmt hpp; |
1886 | struct perf_evsel *evsel; | 1886 | struct perf_evsel *evsel; |
1887 | struct format_field *field; | 1887 | struct tep_format_field *field; |
1888 | unsigned dynamic_len; | 1888 | unsigned dynamic_len; |
1889 | bool raw_trace; | 1889 | bool raw_trace; |
1890 | }; | 1890 | }; |
@@ -1915,7 +1915,7 @@ static void update_dynamic_len(struct hpp_dynamic_entry *hde, | |||
1915 | struct hist_entry *he) | 1915 | struct hist_entry *he) |
1916 | { | 1916 | { |
1917 | char *str, *pos; | 1917 | char *str, *pos; |
1918 | struct format_field *field = hde->field; | 1918 | struct tep_format_field *field = hde->field; |
1919 | size_t namelen; | 1919 | size_t namelen; |
1920 | bool last = false; | 1920 | bool last = false; |
1921 | 1921 | ||
@@ -2000,7 +2000,7 @@ static int __sort__hde_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, | |||
2000 | struct hpp_dynamic_entry *hde; | 2000 | struct hpp_dynamic_entry *hde; |
2001 | size_t len = fmt->user_len; | 2001 | size_t len = fmt->user_len; |
2002 | char *str, *pos; | 2002 | char *str, *pos; |
2003 | struct format_field *field; | 2003 | struct tep_format_field *field; |
2004 | size_t namelen; | 2004 | size_t namelen; |
2005 | bool last = false; | 2005 | bool last = false; |
2006 | int ret; | 2006 | int ret; |
@@ -2060,7 +2060,7 @@ static int64_t __sort__hde_cmp(struct perf_hpp_fmt *fmt, | |||
2060 | struct hist_entry *a, struct hist_entry *b) | 2060 | struct hist_entry *a, struct hist_entry *b) |
2061 | { | 2061 | { |
2062 | struct hpp_dynamic_entry *hde; | 2062 | struct hpp_dynamic_entry *hde; |
2063 | struct format_field *field; | 2063 | struct tep_format_field *field; |
2064 | unsigned offset, size; | 2064 | unsigned offset, size; |
2065 | 2065 | ||
2066 | hde = container_of(fmt, struct hpp_dynamic_entry, hpp); | 2066 | hde = container_of(fmt, struct hpp_dynamic_entry, hpp); |
@@ -2117,7 +2117,7 @@ static void hde_free(struct perf_hpp_fmt *fmt) | |||
2117 | } | 2117 | } |
2118 | 2118 | ||
2119 | static struct hpp_dynamic_entry * | 2119 | static struct hpp_dynamic_entry * |
2120 | __alloc_dynamic_entry(struct perf_evsel *evsel, struct format_field *field, | 2120 | __alloc_dynamic_entry(struct perf_evsel *evsel, struct tep_format_field *field, |
2121 | int level) | 2121 | int level) |
2122 | { | 2122 | { |
2123 | struct hpp_dynamic_entry *hde; | 2123 | struct hpp_dynamic_entry *hde; |
@@ -2252,7 +2252,7 @@ static struct perf_evsel *find_evsel(struct perf_evlist *evlist, char *event_nam | |||
2252 | } | 2252 | } |
2253 | 2253 | ||
2254 | static int __dynamic_dimension__add(struct perf_evsel *evsel, | 2254 | static int __dynamic_dimension__add(struct perf_evsel *evsel, |
2255 | struct format_field *field, | 2255 | struct tep_format_field *field, |
2256 | bool raw_trace, int level) | 2256 | bool raw_trace, int level) |
2257 | { | 2257 | { |
2258 | struct hpp_dynamic_entry *hde; | 2258 | struct hpp_dynamic_entry *hde; |
@@ -2270,7 +2270,7 @@ static int __dynamic_dimension__add(struct perf_evsel *evsel, | |||
2270 | static int add_evsel_fields(struct perf_evsel *evsel, bool raw_trace, int level) | 2270 | static int add_evsel_fields(struct perf_evsel *evsel, bool raw_trace, int level) |
2271 | { | 2271 | { |
2272 | int ret; | 2272 | int ret; |
2273 | struct format_field *field; | 2273 | struct tep_format_field *field; |
2274 | 2274 | ||
2275 | field = evsel->tp_format->format.fields; | 2275 | field = evsel->tp_format->format.fields; |
2276 | while (field) { | 2276 | while (field) { |
@@ -2305,7 +2305,7 @@ static int add_all_matching_fields(struct perf_evlist *evlist, | |||
2305 | { | 2305 | { |
2306 | int ret = -ESRCH; | 2306 | int ret = -ESRCH; |
2307 | struct perf_evsel *evsel; | 2307 | struct perf_evsel *evsel; |
2308 | struct format_field *field; | 2308 | struct tep_format_field *field; |
2309 | 2309 | ||
2310 | evlist__for_each_entry(evlist, evsel) { | 2310 | evlist__for_each_entry(evlist, evsel) { |
2311 | if (evsel->attr.type != PERF_TYPE_TRACEPOINT) | 2311 | if (evsel->attr.type != PERF_TYPE_TRACEPOINT) |
@@ -2327,7 +2327,7 @@ static int add_dynamic_entry(struct perf_evlist *evlist, const char *tok, | |||
2327 | { | 2327 | { |
2328 | char *str, *event_name, *field_name, *opt_name; | 2328 | char *str, *event_name, *field_name, *opt_name; |
2329 | struct perf_evsel *evsel; | 2329 | struct perf_evsel *evsel; |
2330 | struct format_field *field; | 2330 | struct tep_format_field *field; |
2331 | bool raw_trace = symbol_conf.raw_trace; | 2331 | bool raw_trace = symbol_conf.raw_trace; |
2332 | int ret = 0; | 2332 | int ret = 0; |
2333 | 2333 | ||
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 643cf28e1345..a4d7de1c96d1 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
@@ -34,7 +34,7 @@ static int get_common_field(struct scripting_context *context, | |||
34 | { | 34 | { |
35 | struct tep_handle *pevent = context->pevent; | 35 | struct tep_handle *pevent = context->pevent; |
36 | struct tep_event_format *event; | 36 | struct tep_event_format *event; |
37 | struct format_field *field; | 37 | struct tep_format_field *field; |
38 | 38 | ||
39 | if (!*size) { | 39 | if (!*size) { |
40 | if (!pevent->events) | 40 | if (!pevent->events) |
@@ -96,7 +96,7 @@ int common_pc(struct scripting_context *context) | |||
96 | unsigned long long | 96 | unsigned long long |
97 | raw_field_value(struct tep_event_format *event, const char *name, void *data) | 97 | raw_field_value(struct tep_event_format *event, const char *name, void *data) |
98 | { | 98 | { |
99 | struct format_field *field; | 99 | struct tep_format_field *field; |
100 | unsigned long long val; | 100 | unsigned long long val; |
101 | 101 | ||
102 | field = tep_find_any_field(event, name); | 102 | field = tep_find_any_field(event, name); |