aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/builtin-sched.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index 45c46c790493..7481ebdb17ef 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -1888,13 +1888,18 @@ static int __cmd_record(int argc, const char **argv)
1888 1888
1889int cmd_sched(int argc, const char **argv, const char *prefix __used) 1889int cmd_sched(int argc, const char **argv, const char *prefix __used)
1890{ 1890{
1891 symbol__init(0);
1892
1893 argc = parse_options(argc, argv, sched_options, sched_usage, 1891 argc = parse_options(argc, argv, sched_options, sched_usage,
1894 PARSE_OPT_STOP_AT_NON_OPTION); 1892 PARSE_OPT_STOP_AT_NON_OPTION);
1895 if (!argc) 1893 if (!argc)
1896 usage_with_options(sched_usage, sched_options); 1894 usage_with_options(sched_usage, sched_options);
1897 1895
1896 /*
1897 * Aliased to 'perf trace' for now:
1898 */
1899 if (!strcmp(argv[0], "trace"))
1900 return cmd_trace(argc, argv, prefix);
1901
1902 symbol__init(0);
1898 if (!strncmp(argv[0], "rec", 3)) { 1903 if (!strncmp(argv[0], "rec", 3)) {
1899 return __cmd_record(argc, argv); 1904 return __cmd_record(argc, argv);
1900 } else if (!strncmp(argv[0], "lat", 3)) { 1905 } else if (!strncmp(argv[0], "lat", 3)) {
@@ -1918,11 +1923,6 @@ int cmd_sched(int argc, const char **argv, const char *prefix __used)
1918 usage_with_options(replay_usage, replay_options); 1923 usage_with_options(replay_usage, replay_options);
1919 } 1924 }
1920 __cmd_replay(); 1925 __cmd_replay();
1921 } else if (!strcmp(argv[0], "trace")) {
1922 /*
1923 * Aliased to 'perf trace' for now:
1924 */
1925 return cmd_trace(argc, argv, prefix);
1926 } else { 1926 } else {
1927 usage_with_options(sched_usage, sched_options); 1927 usage_with_options(sched_usage, sched_options);
1928 } 1928 }