]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - tools/perf/builtin-annotate.c
perf session: Free the ref_reloc_sym memory at the right place
[mv-sheeva.git] / tools / perf / builtin-annotate.c
index 96db5248e99569914c62427a3466aa9b91559530..fd20670ce986bae016759aa61bd01c272bd7f47f 100644 (file)
@@ -61,11 +61,9 @@ static int hists__add_entry(struct hists *self, struct addr_location *al)
 static int process_sample_event(event_t *event, struct perf_session *session)
 {
        struct addr_location al;
+       struct sample_data data;
 
-       dump_printf("(IP, %d): %d: %#Lx\n", event->header.misc,
-                   event->ip.pid, event->ip.ip);
-
-       if (event__preprocess_sample(event, session, &al, NULL) < 0) {
+       if (event__preprocess_sample(event, session, &al, &data, NULL) < 0) {
                pr_warning("problem processing %d event, skipping it.\n",
                           event->header.type);
                return -1;