perf tools: Check recorded kernel version when finding vmlinux
[deliverable/linux.git] / tools / perf / builtin-timechart.c
index 2f1a5220c090f4fd8461b743f85b88b0b812214b..48eea6cd2f5be475088e0c55d053ab4bd4e66246 100644 (file)
@@ -1607,6 +1607,8 @@ static int __cmd_timechart(struct timechart *tchart, const char *output_name)
        if (session == NULL)
                return -ENOMEM;
 
+       symbol__init(&session->header.env);
+
        (void)perf_header__process_sections(&session->header,
                                            perf_data_file__fd(session->file),
                                            tchart,
@@ -1920,7 +1922,7 @@ int cmd_timechart(int argc, const char **argv,
                        .fork            = process_fork_event,
                        .exit            = process_exit_event,
                        .sample          = process_sample_event,
-                       .ordered_samples = true,
+                       .ordered_events  = true,
                },
                .proc_num = 15,
                .min_time = 1000000,
@@ -1982,8 +1984,6 @@ int cmd_timechart(int argc, const char **argv,
                return -1;
        }
 
-       symbol__init();
-
        if (argc && !strncmp(argv[0], "rec", 3)) {
                argc = parse_options(argc, argv, record_options, record_usage,
                                     PARSE_OPT_STOP_AT_NON_OPTION);
This page took 0.036246 seconds and 5 git commands to generate.