- if (pm->is_running)
- return clib_error_return (0, "please stop first");
-
- return perfmon_set (vm, b);
-}
-
-VLIB_CLI_COMMAND (set_perfmon_bundle_command, static) = {
- .path = "set perfmon bundle",
- .short_help = "set perfmon bundle [<bundle-name>]",
- .function = set_perfmon_bundle_command_fn,
- .is_mp_safe = 1,
-};
-
-static clib_error_t *
-perfmon_reset_command_fn (vlib_main_t *vm, unformat_input_t *input,
- vlib_cli_command_t *cmd)
-{
- perfmon_reset (vm);
- return 0;
-}
-
-VLIB_CLI_COMMAND (perfmon_reset_command, static) = {
- .path = "perfmon reset",
- .short_help = "perfmon reset",
- .function = perfmon_reset_command_fn,
- .is_mp_safe = 1,
-};
-
-static clib_error_t *
-perfmon_start_command_fn (vlib_main_t *vm, unformat_input_t *input,
- vlib_cli_command_t *cmd)
-{
- return perfmon_start (vm);