summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2018-03-09 15:25:37 +0100
committerGitHub <noreply@github.com>2018-03-09 15:25:37 +0100
commitc67667e74cfbb4e4f2edd3b70609cf9716d5c432 (patch)
treec3fc590ec00266221903856031435be68b4087ca /vtysh
parentMerge pull request #1852 from donaldsharp/notify_owner_fail (diff)
parentlib: add mt-safe debugging facilities (diff)
downloadfrr-c67667e74cfbb4e4f2edd3b70609cf9716d5c432.tar.xz
frr-c67667e74cfbb4e4f2edd3b70609cf9716d5c432.zip
Merge pull request #1808 from qlyoung/debug-mt-safe
MT-safe debug facilities
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index f0010700a..5f87d4c7f 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1957,6 +1957,17 @@ static int show_per_daemon(const char *line, const char *headline)
return ret;
}
+DEFUNSH_HIDDEN (0x00,
+ vtysh_debug_all,
+ vtysh_debug_all_cmd,
+ "[no] debug all",
+ NO_STR
+ DEBUG_STR
+ "Toggle all debugs on or off\n")
+{
+ return CMD_SUCCESS;
+}
+
DEFUN (vtysh_show_debugging,
vtysh_show_debugging_cmd,
"show debugging",
@@ -3350,14 +3361,17 @@ void vtysh_init_vty(void)
install_element(ENABLE_NODE, &vtysh_start_zsh_cmd);
#endif
+ /* debugging */
install_element(VIEW_NODE, &vtysh_show_debugging_cmd);
install_element(VIEW_NODE, &vtysh_show_debugging_hashtable_cmd);
+ install_element(VIEW_NODE, &vtysh_debug_all_cmd);
+ install_element(CONFIG_NODE, &vtysh_debug_all_cmd);
+
+ /* misc lib show commands */
install_element(VIEW_NODE, &vtysh_show_memory_cmd);
install_element(VIEW_NODE, &vtysh_show_modules_cmd);
-
install_element(VIEW_NODE, &vtysh_show_work_queues_cmd);
install_element(VIEW_NODE, &vtysh_show_work_queues_daemon_cmd);
-
install_element(VIEW_NODE, &vtysh_show_thread_cmd);
/* Logging */