stats: Enable stats subsystem

Sponsored-by: On-Waves ehf
This commit is contained in:
Jacob Erlbeck 2015-11-10 15:32:00 +01:00
parent 08e5d604d3
commit 42aba81c2f
2 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,7 @@ extern "C" {
#include "pcu_vty.h"
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
#include <osmocom/core/stats.h>
}
extern struct gprs_nsvc *nsvc;
@ -194,6 +195,7 @@ int main(int argc, char *argv[])
msgb_set_talloc_ctx(tall_pcu_ctx);
osmo_init_logging(&gprs_log_info);
osmo_stats_init(tall_pcu_ctx);
gprs_ns_set_log_ss(DNS);
bssgp_set_log_ss(DBSSGP);

View File

@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <osmocom/vty/logging.h>
#include <osmocom/vty/stats.h>
#include <osmocom/vty/misc.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/rate_ctr.h>
@ -805,6 +806,7 @@ int pcu_vty_init(const struct log_info *cat)
// install_element_ve(&show_pcu_cmd);
logging_vty_add_cmds(cat);
osmo_stats_vty_add_cmds(cat);
install_node(&pcu_node, config_write_pcu);
install_element(CONFIG_NODE, &cfg_pcu_cmd);