diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-15 17:04:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-16 02:53:48 -0500 |
commit | 75be6cf48738aec68aac49b428423569492cfba3 (patch) | |
tree | d7f5ceb028361e8b725ba6f3b8219e66c7b89790 /tools/perf/builtin-timechart.c | |
parent | 7ef17aafc98406d01ebbf7fe98ef1332b70d20bb (diff) |
perf symbols: Make symbol_conf global
This simplifies a lot of functions, less stuff to be done by
tool writers.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1260914682-29652-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r-- | tools/perf/builtin-timechart.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index ffd81e87ce69..9c98b7a2b19a 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -1050,8 +1050,7 @@ static struct perf_event_ops event_ops = { | |||
1050 | 1050 | ||
1051 | static int __cmd_timechart(void) | 1051 | static int __cmd_timechart(void) |
1052 | { | 1052 | { |
1053 | struct perf_session *session = perf_session__new(input_name, O_RDONLY, | 1053 | struct perf_session *session = perf_session__new(input_name, O_RDONLY, 0); |
1054 | 0, NULL); | ||
1055 | int ret; | 1054 | int ret; |
1056 | 1055 | ||
1057 | if (session == NULL) | 1056 | if (session == NULL) |
@@ -1138,7 +1137,7 @@ static const struct option options[] = { | |||
1138 | 1137 | ||
1139 | int cmd_timechart(int argc, const char **argv, const char *prefix __used) | 1138 | int cmd_timechart(int argc, const char **argv, const char *prefix __used) |
1140 | { | 1139 | { |
1141 | symbol__init(0); | 1140 | symbol__init(); |
1142 | 1141 | ||
1143 | argc = parse_options(argc, argv, options, timechart_usage, | 1142 | argc = parse_options(argc, argv, options, timechart_usage, |
1144 | PARSE_OPT_STOP_AT_NON_OPTION); | 1143 | PARSE_OPT_STOP_AT_NON_OPTION); |