Harald Welte has submitted this change and it was merged.

Change subject: osmo-bts: Add talloc context introspection via VTY
......................................................................


osmo-bts: Add talloc context introspection via VTY

This requires libosmocore with Change-Id
I43fc42880b22294d83c565ae600ac65e4f38b30d or later.

Change-Id: Ieed87b8109e0095a3d99c30f0b042aa3ee4b6384
---
M src/common/main.c
M src/common/vty.c
2 files changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/common/main.c b/src/common/main.c
index 2804ca6..b7d5653 100644
--- a/src/common/main.c
+++ b/src/common/main.c
@@ -235,6 +235,7 @@
 
        tall_bts_ctx = talloc_named_const(NULL, 1, "OsmoBTS context");
        msgb_talloc_ctx_init(tall_bts_ctx, 100*1024);
+       bts_vty_info.tall_ctx = tall_bts_ctx;
 
        bts_log_init(NULL);
        vty_init(&bts_vty_info);
diff --git a/src/common/vty.c b/src/common/vty.c
index 06330b4..5abc90e 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -1502,6 +1502,7 @@
        install_element_ve(&show_lchan_summary_cmd);
 
        logging_vty_add_cmds(cat);
+       osmo_talloc_vty_add_cmds();
 
        install_node(&bts_node, config_write_bts);
        install_element(CONFIG_NODE, &cfg_bts_cmd);

-- 
To view, visit https://gerrit.osmocom.org/6418
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ieed87b8109e0095a3d99c30f0b042aa3ee4b6384
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder

Reply via email to