mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-27 08:21:36 +00:00
lib: move hashstats under debug, show per-daemon
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
d261dd7ea1
commit
40818cec85
@ -335,10 +335,11 @@ void hash_free(struct hash *hash)
|
|||||||
|
|
||||||
/* CLI commands ------------------------------------------------------------ */
|
/* CLI commands ------------------------------------------------------------ */
|
||||||
|
|
||||||
DEFUN(show_hash_stats,
|
DEFUN_NOSH(show_hash_stats,
|
||||||
show_hash_stats_cmd,
|
show_hash_stats_cmd,
|
||||||
"show hashtable [statistics]",
|
"show debugging hashtable [statistics]",
|
||||||
SHOW_STR
|
SHOW_STR
|
||||||
|
DEBUG_STR
|
||||||
"Statistics about hash tables\n"
|
"Statistics about hash tables\n"
|
||||||
"Statistics about hash tables\n")
|
"Statistics about hash tables\n")
|
||||||
{
|
{
|
||||||
|
@ -1925,6 +1925,18 @@ DEFUN (vtysh_show_debugging,
|
|||||||
"Debugging Information for %s:\n");
|
"Debugging Information for %s:\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFUN (vtysh_show_debugging_hashtable,
|
||||||
|
vtysh_show_debugging_hashtable_cmd,
|
||||||
|
"show debugging hashtable [statistics]",
|
||||||
|
SHOW_STR
|
||||||
|
DEBUG_STR
|
||||||
|
"Statistics about hash tables\n"
|
||||||
|
"Statistics about hash tables\n")
|
||||||
|
{
|
||||||
|
return show_per_daemon("do show debugging hashtable\n",
|
||||||
|
"Hashtable statistics for %s:\n");
|
||||||
|
}
|
||||||
|
|
||||||
/* Memory */
|
/* Memory */
|
||||||
DEFUN (vtysh_show_memory,
|
DEFUN (vtysh_show_memory,
|
||||||
vtysh_show_memory_cmd,
|
vtysh_show_memory_cmd,
|
||||||
@ -3233,6 +3245,7 @@ void vtysh_init_vty(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
install_element(VIEW_NODE, &vtysh_show_debugging_cmd);
|
install_element(VIEW_NODE, &vtysh_show_debugging_cmd);
|
||||||
|
install_element(VIEW_NODE, &vtysh_show_debugging_hashtable_cmd);
|
||||||
install_element(VIEW_NODE, &vtysh_show_memory_cmd);
|
install_element(VIEW_NODE, &vtysh_show_memory_cmd);
|
||||||
install_element(VIEW_NODE, &vtysh_show_modules_cmd);
|
install_element(VIEW_NODE, &vtysh_show_modules_cmd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user