[MERGED] osmo-msc[master]: osmo-msc: Add talloc context introspection via VTY

2018-02-13 Thread Harald Welte
Harald Welte has submitted this change and it was merged.

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


osmo-msc: Add talloc context introspection via VTY

This requires libosmocore with Change-Id
I43fc42880b22294d83c565ae600ac65e4f38b30d or later.

Change-Id: I575500bd911f9792ab5ca76eebb1d2682ee34fa3
---
M src/osmo-msc/msc_main.c
1 file changed, 3 insertions(+), 0 deletions(-)

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



diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c
index b0b78be..da28083 100644
--- a/src/osmo-msc/msc_main.c
+++ b/src/osmo-msc/msc_main.c
@@ -51,6 +51,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -366,6 +367,7 @@
 
tall_msc_ctx = talloc_named_const(NULL, 1, "osmo_msc");
talloc_ctx_init(tall_msc_ctx);
+   msc_vty_info.tall_ctx = tall_msc_ctx;
 
osmo_init_logging(_info);
osmo_stats_init(tall_msc_ctx);
@@ -394,6 +396,7 @@
 
ctrl_vty_init(tall_msc_ctx);
logging_vty_add_cmds(_info);
+   osmo_talloc_vty_add_cmds();
msc_vty_init(msc_network);
bsc_vty_init_extra();
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I575500bd911f9792ab5ca76eebb1d2682ee34fa3
Gerrit-PatchSet: 2
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Jenkins Builder


osmo-msc[master]: osmo-msc: Add talloc context introspection via VTY

2018-02-13 Thread Harald Welte

Patch Set 2: Code-Review+2

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I575500bd911f9792ab5ca76eebb1d2682ee34fa3
Gerrit-PatchSet: 2
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Jenkins Builder
Gerrit-HasComments: No


[PATCH] osmo-msc[master]: osmo-msc: Add talloc context introspection via VTY

2018-02-13 Thread Harald Welte

Review at  https://gerrit.osmocom.org/6422

osmo-msc: Add talloc context introspection via VTY

This requires libosmocore with Change-Id
I43fc42880b22294d83c565ae600ac65e4f38b30d or later.

Change-Id: I575500bd911f9792ab5ca76eebb1d2682ee34fa3
---
M src/osmo-msc/msc_main.c
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/22/6422/1

diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c
index b0b78be..da28083 100644
--- a/src/osmo-msc/msc_main.c
+++ b/src/osmo-msc/msc_main.c
@@ -51,6 +51,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -366,6 +367,7 @@
 
tall_msc_ctx = talloc_named_const(NULL, 1, "osmo_msc");
talloc_ctx_init(tall_msc_ctx);
+   msc_vty_info.tall_ctx = tall_msc_ctx;
 
osmo_init_logging(_info);
osmo_stats_init(tall_msc_ctx);
@@ -394,6 +396,7 @@
 
ctrl_vty_init(tall_msc_ctx);
logging_vty_add_cmds(_info);
+   osmo_talloc_vty_add_cmds();
msc_vty_init(msc_network);
bsc_vty_init_extra();
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I575500bd911f9792ab5ca76eebb1d2682ee34fa3
Gerrit-PatchSet: 1
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte