vty: register talloc / stats introspection commands

Change-Id: I05ecc74426f68e19a18b7111ebc39ef504735d15
This commit is contained in:
Vadim Yanitskiy
2025-07-22 19:04:19 +07:00
committed by fixeria
parent 1b402db278
commit 91ea92868a

View File

@@ -270,6 +270,8 @@ int main(int argc, char **argv)
sbcap_set_log_area(DSBcAP, DASN1C); sbcap_set_log_area(DSBcAP, DASN1C);
osmo_stats_init(tall_cbc_ctx); osmo_stats_init(tall_cbc_ctx);
osmo_fsm_log_timeouts(true); osmo_fsm_log_timeouts(true);
vty_info.tall_ctx = tall_cbc_ctx;
vty_init(&vty_info); vty_init(&vty_info);
g_cbc = cbc_alloc(tall_cbc_ctx); g_cbc = cbc_alloc(tall_cbc_ctx);
@@ -280,6 +282,8 @@ int main(int argc, char **argv)
logging_vty_add_cmds(); logging_vty_add_cmds();
osmo_fsm_vty_add_cmds(); osmo_fsm_vty_add_cmds();
osmo_stats_vty_add_cmds();
osmo_talloc_vty_add_cmds();
rc = vty_read_config_file(cmdline_config.config_file, NULL); rc = vty_read_config_file(cmdline_config.config_file, NULL);
if (rc < 0) { if (rc < 0) {