]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - tools/perf/builtin-lock.c
perf tools: Check recorded kernel version when finding vmlinux
[mirror_ubuntu-artful-kernel.git] / tools / perf / builtin-lock.c
index 6148afc995c68a0bd11b61826a741185a69e4294..92790ed7af45d4376e2d95c10e515601bdbb70e1 100644 (file)
@@ -852,7 +852,7 @@ static int __cmd_report(bool display_info)
        struct perf_tool eops = {
                .sample          = process_sample_event,
                .comm            = perf_event__process_comm,
-               .ordered_samples = true,
+               .ordered_events  = true,
        };
        struct perf_data_file file = {
                .path = input_name,
@@ -865,6 +865,8 @@ static int __cmd_report(bool display_info)
                return -ENOMEM;
        }
 
+       symbol__init(&session->header.env);
+
        if (!perf_session__has_traces(session, "lock record"))
                goto out_delete;
 
@@ -974,7 +976,6 @@ int cmd_lock(int argc, const char **argv, const char *prefix __maybe_unused)
        unsigned int i;
        int rc = 0;
 
-       symbol__init();
        for (i = 0; i < LOCKHASH_SIZE; i++)
                INIT_LIST_HEAD(lockhash_table + i);