builtin-sched.c (820e9906cf64142169134f35b996108303cf22ca) | builtin-sched.c (7cc72553ac03ec20afe2dec91dce4624ccd379b8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include "builtin.h" 3#include "perf.h" 4#include "perf-sys.h" 5 6#include "util/cpumap.h" 7#include "util/evlist.h" 8#include "util/evsel.h" --- 3524 unchanged lines hidden (view full) --- 3533 .switch_event = map_switch_event, 3534 }; 3535 struct trace_sched_handler replay_ops = { 3536 .wakeup_event = replay_wakeup_event, 3537 .switch_event = replay_switch_event, 3538 .fork_event = replay_fork_event, 3539 }; 3540 unsigned int i; | 1// SPDX-License-Identifier: GPL-2.0 2#include "builtin.h" 3#include "perf.h" 4#include "perf-sys.h" 5 6#include "util/cpumap.h" 7#include "util/evlist.h" 8#include "util/evsel.h" --- 3524 unchanged lines hidden (view full) --- 3533 .switch_event = map_switch_event, 3534 }; 3535 struct trace_sched_handler replay_ops = { 3536 .wakeup_event = replay_wakeup_event, 3537 .switch_event = replay_switch_event, 3538 .fork_event = replay_fork_event, 3539 }; 3540 unsigned int i; |
3541 int ret; |
|
3541 3542 for (i = 0; i < ARRAY_SIZE(sched.curr_pid); i++) 3543 sched.curr_pid[i] = -1; 3544 3545 argc = parse_options_subcommand(argc, argv, sched_options, sched_subcommands, 3546 sched_usage, PARSE_OPT_STOP_AT_NON_OPTION); 3547 if (!argc) 3548 usage_with_options(sched_usage, sched_options); --- 44 unchanged lines hidden (view full) --- 3593 pr_err(" Error: -s and -[n|w] are mutually exclusive.\n"); 3594 parse_options_usage(timehist_usage, timehist_options, "s", true); 3595 if (sched.show_wakeups) 3596 parse_options_usage(NULL, timehist_options, "w", true); 3597 if (sched.show_next) 3598 parse_options_usage(NULL, timehist_options, "n", true); 3599 return -EINVAL; 3600 } | 3542 3543 for (i = 0; i < ARRAY_SIZE(sched.curr_pid); i++) 3544 sched.curr_pid[i] = -1; 3545 3546 argc = parse_options_subcommand(argc, argv, sched_options, sched_subcommands, 3547 sched_usage, PARSE_OPT_STOP_AT_NON_OPTION); 3548 if (!argc) 3549 usage_with_options(sched_usage, sched_options); --- 44 unchanged lines hidden (view full) --- 3594 pr_err(" Error: -s and -[n|w] are mutually exclusive.\n"); 3595 parse_options_usage(timehist_usage, timehist_options, "s", true); 3596 if (sched.show_wakeups) 3597 parse_options_usage(NULL, timehist_options, "w", true); 3598 if (sched.show_next) 3599 parse_options_usage(NULL, timehist_options, "n", true); 3600 return -EINVAL; 3601 } |
3602 ret = symbol__validate_sym_arguments(); 3603 if (ret) 3604 return ret; |
|
3601 3602 return perf_sched__timehist(&sched); 3603 } else { 3604 usage_with_options(sched_usage, sched_options); 3605 } 3606 3607 return 0; 3608} | 3605 3606 return perf_sched__timehist(&sched); 3607 } else { 3608 usage_with_options(sched_usage, sched_options); 3609 } 3610 3611 return 0; 3612} |