diff options
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r-- | tools/perf/builtin-timechart.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index d2fc46103f83..d75084bccdb7 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -937,7 +937,8 @@ static struct perf_event_ops event_ops = { | |||
937 | 937 | ||
938 | static int __cmd_timechart(void) | 938 | static int __cmd_timechart(void) |
939 | { | 939 | { |
940 | struct perf_session *session = perf_session__new(input_name, O_RDONLY, 0, false); | 940 | struct perf_session *session = perf_session__new(input_name, O_RDONLY, |
941 | 0, false, &event_ops); | ||
941 | int ret = -EINVAL; | 942 | int ret = -EINVAL; |
942 | 943 | ||
943 | if (session == NULL) | 944 | if (session == NULL) |
@@ -1021,6 +1022,8 @@ static const struct option options[] = { | |||
1021 | OPT_CALLBACK('p', "process", NULL, "process", | 1022 | OPT_CALLBACK('p', "process", NULL, "process", |
1022 | "process selector. Pass a pid or process name.", | 1023 | "process selector. Pass a pid or process name.", |
1023 | parse_process), | 1024 | parse_process), |
1025 | OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", | ||
1026 | "Look for files with symbols relative to this directory"), | ||
1024 | OPT_END() | 1027 | OPT_END() |
1025 | }; | 1028 | }; |
1026 | 1029 | ||