[MERGED] osmo-ggsn[master]: Add talloc context introspection via VTY
Harald Welte has submitted this change and it was merged. Change subject: Add talloc context introspection via VTY .. Add talloc context introspection via VTY This requires libosmocore with Change-Id I43fc42880b22294d83c565ae600ac65e4f38b30d or later. Change-Id: I460efff3a3dfa2c7d955871aca78b37552a29aff --- M ggsn/ggsn.c 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c index caf6151..df071d2 100644 --- a/ggsn/ggsn.c +++ b/ggsn/ggsn.c @@ -56,6 +56,7 @@ #include #include #include +#include #include #include "../lib/tun.h" @@ -1062,6 +1063,7 @@ tall_ggsn_ctx = talloc_named_const(NULL, 0, "OsmoGGSN"); msgb_talloc_ctx_init(tall_ggsn_ctx, 0); + g_vty_info.tall_ctx = tall_ggsn_ctx; /* Handle keyboard interrupt SIGINT */ signal(SIGINT, &signal_handler); @@ -1076,6 +1078,7 @@ vty_init(&g_vty_info); logging_vty_add_cmds(NULL); + osmo_talloc_vty_add_cmds(); osmo_stats_vty_add_cmds(&log_info); ggsn_vty_init(); ctrl_vty_init(tall_ggsn_ctx); -- To view, visit https://gerrit.osmocom.org/6425 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I460efff3a3dfa2c7d955871aca78b37552a29aff Gerrit-PatchSet: 2 Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Owner: Harald Welte Gerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder
osmo-ggsn[master]: Add talloc context introspection via VTY
Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/6425 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I460efff3a3dfa2c7d955871aca78b37552a29aff Gerrit-PatchSet: 1 Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Owner: Harald Welte Gerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder Gerrit-HasComments: No
[PATCH] osmo-ggsn[master]: Add talloc context introspection via VTY
Review at https://gerrit.osmocom.org/6425 Add talloc context introspection via VTY This requires libosmocore with Change-Id I43fc42880b22294d83c565ae600ac65e4f38b30d or later. Change-Id: I460efff3a3dfa2c7d955871aca78b37552a29aff --- M ggsn/ggsn.c 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/25/6425/1 diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c index caf6151..df071d2 100644 --- a/ggsn/ggsn.c +++ b/ggsn/ggsn.c @@ -56,6 +56,7 @@ #include #include #include +#include #include #include "../lib/tun.h" @@ -1062,6 +1063,7 @@ tall_ggsn_ctx = talloc_named_const(NULL, 0, "OsmoGGSN"); msgb_talloc_ctx_init(tall_ggsn_ctx, 0); + g_vty_info.tall_ctx = tall_ggsn_ctx; /* Handle keyboard interrupt SIGINT */ signal(SIGINT, &signal_handler); @@ -1076,6 +1078,7 @@ vty_init(&g_vty_info); logging_vty_add_cmds(NULL); + osmo_talloc_vty_add_cmds(); osmo_stats_vty_add_cmds(&log_info); ggsn_vty_init(); ctrl_vty_init(tall_ggsn_ctx); -- To view, visit https://gerrit.osmocom.org/6425 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I460efff3a3dfa2c7d955871aca78b37552a29aff Gerrit-PatchSet: 1 Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Owner: Harald Welte