aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2015-12-17 18:02:37 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2015-12-17 18:02:37 +0100
commit28b9ec1473ab7f679666d9da008a7d88b0fe9e31 (patch)
treefe423ef9b320f381726f57699f57091aae2659dc /src
parent5f810f422288a8e366ab768713a15b100fea59d6 (diff)
Enable vty command to output talloc report
I don't think I can print this into a string and thus output it via VTY. In that case it might be smarte to do in a signal handler
Diffstat (limited to 'src')
-rw-r--r--src/hnbgw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hnbgw.c b/src/hnbgw.c
index 27ace4e..9cd977f 100644
--- a/src/hnbgw.c
+++ b/src/hnbgw.c
@@ -308,10 +308,20 @@ DEFUN(show_ue, show_ue_cmd, "show ue all", SHOW_STR "Display information about a
return CMD_SUCCESS;
}
+DEFUN(show_talloc, show_talloc_cmd, "show talloc", SHOW_STR "Display talloc info")
+{
+ talloc_report_full(tall_hnb_ctx, stderr);
+ talloc_report_full(tall_ue_ctx, stderr);
+ talloc_report_full(talloc_asn1_ctx, stderr);
+
+ return CMD_SUCCESS;
+}
+
static void hnbgw_vty_init(void)
{
install_element_ve(&show_hnb_cmd);
install_element_ve(&show_ue_cmd);
+ install_element_ve(&show_talloc_cmd);
}
int main(int argc, char **argv)