Change in osmo-pcap[master]: vty: register commands for talloc context introspection

fixeria gerrit-no-reply at lists.osmocom.org
Fri Apr 16 17:36:32 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcap/+/23777 )


Change subject: vty: register commands for talloc context introspection
......................................................................

vty: register commands for talloc context introspection

Change-Id: I3774cfd483102993340bd6e96f8512af61085679
---
M src/osmo_client_main.c
M src/osmo_server_main.c
2 files changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/77/23777/1

diff --git a/src/osmo_client_main.c b/src/osmo_client_main.c
index 4ef46cc..cbaefef 100644
--- a/src/osmo_client_main.c
+++ b/src/osmo_client_main.c
@@ -33,6 +33,7 @@
 #include <osmocom/vty/logging.h>
 #include <osmocom/vty/telnet_interface.h>
 #include <osmocom/vty/stats.h>
+#include <osmocom/vty/misc.h>
 
 #include <pcap.h>
 #include <signal.h>
@@ -228,9 +229,11 @@
 	osmo_init_logging2(tall_cli_ctx, &log_info);
 
 	vty_info.copyright = osmopcap_copyright;
+	vty_info.tall_ctx = tall_cli_ctx;
 	vty_init(&vty_info);
 	logging_vty_add_cmds();
 	osmo_stats_vty_add_cmds();
+	osmo_talloc_vty_add_cmds();
 	vty_client_init(tall_cli_ctx);
 
 	/* parse options */
diff --git a/src/osmo_server_main.c b/src/osmo_server_main.c
index 9fa00e1..f8850db 100644
--- a/src/osmo_server_main.c
+++ b/src/osmo_server_main.c
@@ -34,6 +34,7 @@
 #include <osmocom/vty/logging.h>
 #include <osmocom/vty/telnet_interface.h>
 #include <osmocom/vty/stats.h>
+#include <osmocom/vty/misc.h>
 
 #include <pcap.h>
 #include <signal.h>
@@ -241,9 +242,11 @@
 	osmo_init_logging2(tall_srv_ctx, &log_info);
 
 	vty_info.copyright = osmopcap_copyright;
+	vty_info.tall_ctx = tall_srv_ctx;
 	vty_init(&vty_info);
 	logging_vty_add_cmds();
 	osmo_stats_vty_add_cmds();
+	osmo_talloc_vty_add_cmds();
 	vty_server_init(tall_srv_ctx);
 
 	/* parse options */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/23777
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: I3774cfd483102993340bd6e96f8512af61085679
Gerrit-Change-Number: 23777
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210416/bf6c061a/attachment.htm>


More information about the gerrit-log mailing list