aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/sgsn_main.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-14 01:02:22 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-14 00:55:36 +0000
commit731930b6720c82f12dab4556ef6946335f24cf4f (patch)
tree5d01e61dde852b0a85bed522b44d1415acc6bde8 /src/gprs/sgsn_main.c
parente77ee12fd582a4847808d6db0edceb7c6f525400 (diff)
Add talloc context introspection via VTY
This requires libosmocore with Change-Id I43fc42880b22294d83c565ae600ac65e4f38b30d or later. Change-Id: I50eb1c5a28efbe4542e177ce3d0a236e75eecdd0
Diffstat (limited to 'src/gprs/sgsn_main.c')
-rw-r--r--src/gprs/sgsn_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gprs/sgsn_main.c b/src/gprs/sgsn_main.c
index b2a028c4..0276e34a 100644
--- a/src/gprs/sgsn_main.c
+++ b/src/gprs/sgsn_main.c
@@ -49,6 +49,7 @@
#include <osmocom/vty/logging.h>
#include <osmocom/vty/stats.h>
#include <osmocom/vty/ports.h>
+#include <osmocom/vty/misc.h>
#include <osmocom/ctrl/control_vty.h>
@@ -376,6 +377,7 @@ int main(int argc, char **argv)
srand(time(NULL));
tall_bsc_ctx = talloc_named_const(NULL, 0, "osmo_sgsn");
msgb_talloc_ctx_init(tall_bsc_ctx, 0);
+ vty_info.tall_ctx = tall_bsc_ctx;
signal(SIGINT, &signal_handler);
signal(SIGTERM, &signal_handler);
@@ -390,6 +392,7 @@ int main(int argc, char **argv)
vty_info.copyright = openbsc_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(NULL);
+ osmo_talloc_vty_add_cmds();
osmo_stats_vty_add_cmds(&gprs_log_info);
sgsn_vty_init(&sgsn_inst.cfg);
ctrl_vty_init(tall_bsc_ctx);