aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r--tools/perf/builtin-diff.c9
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
266int cmd_diff(int argc, const char **argv, const char *prefix __used) 266int 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}