tools lib traceevent, perf tools: Rename pevent find APIs
[linux-2.6-microblaze.git] / tools / perf / util / sort.c
index fed2952..f27087d 100644 (file)
@@ -601,7 +601,7 @@ static char *get_trace_output(struct hist_entry *he)
 {
        struct trace_seq seq;
        struct perf_evsel *evsel;
-       struct pevent_record rec = {
+       struct tep_record rec = {
                .data = he->raw_data,
                .size = he->raw_size,
        };
@@ -613,7 +613,7 @@ static char *get_trace_output(struct hist_entry *he)
                pevent_print_fields(&seq, he->raw_data, he->raw_size,
                                    evsel->tp_format);
        } else {
-               pevent_event_info(&seq, evsel->tp_format, &rec);
+               tep_event_info(&seq, evsel->tp_format, &rec);
        }
        /*
         * Trim the buffer, it starts at 4KB and we're not going to
@@ -2311,7 +2311,7 @@ static int add_all_matching_fields(struct perf_evlist *evlist,
                if (evsel->attr.type != PERF_TYPE_TRACEPOINT)
                        continue;
 
-               field = pevent_find_any_field(evsel->tp_format, field_name);
+               field = tep_find_any_field(evsel->tp_format, field_name);
                if (field == NULL)
                        continue;
 
@@ -2378,7 +2378,7 @@ static int add_dynamic_entry(struct perf_evlist *evlist, const char *tok,
        if (!strcmp(field_name, "*")) {
                ret = add_evsel_fields(evsel, raw_trace, level);
        } else {
-               field = pevent_find_any_field(evsel->tp_format, field_name);
+               field = tep_find_any_field(evsel->tp_format, field_name);
                if (field == NULL) {
                        pr_debug("Cannot find event field for %s.%s\n",
                                 event_name, field_name);