diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-15 17:04:40 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-16 02:53:49 -0500 |
commit | 655000e7c75a559681ee7f15f6fa870c80ae3194 (patch) | |
tree | 69a56e19c818b0929dbea8d119fa133853c5ee80 /tools/perf/builtin-diff.c | |
parent | 75be6cf48738aec68aac49b428423569492cfba3 (diff) |
perf symbols: Adopt the strlists for dso, comm
Will be used in perf diff too.
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-2-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r-- | tools/perf/builtin-diff.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 67328d106994..4fde60655341 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -265,11 +265,6 @@ static const struct option options[] = { | |||
265 | 265 | ||
266 | int cmd_diff(int argc, const char **argv, const char *prefix __used) | 266 | int cmd_diff(int argc, const char **argv, const char *prefix __used) |
267 | { | 267 | { |
268 | if (symbol__init() < 0) | ||
269 | return -1; | ||
270 | |||
271 | setup_sorting(diff_usage, options); | ||
272 | |||
273 | argc = parse_options(argc, argv, options, diff_usage, 0); | 268 | argc = parse_options(argc, argv, options, diff_usage, 0); |
274 | if (argc) { | 269 | if (argc) { |
275 | if (argc > 2) | 270 | if (argc > 2) |
@@ -281,6 +276,10 @@ int cmd_diff(int argc, const char **argv, const char *prefix __used) | |||
281 | input_new = argv[0]; | 276 | input_new = argv[0]; |
282 | } | 277 | } |
283 | 278 | ||
279 | if (symbol__init() < 0) | ||
280 | return -1; | ||
281 | |||
282 | setup_sorting(diff_usage, options); | ||
284 | setup_pager(); | 283 | setup_pager(); |
285 | return __cmd_diff(); | 284 | return __cmd_diff(); |
286 | } | 285 | } |