aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/sgsn_main.c
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-10-26 16:25:37 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-02 16:01:27 +0100
commit64630cccc763da7088c1d1ff251a89d4d352cd4b (patch)
tree6e4ea25f13e3ebd0d7a0fd9bb8a446e41aeb8c3c /openbsc/src/gprs/sgsn_main.c
parent11cb27ece64944c17c2714cfe7ea9971a8c4ab7c (diff)
stats: Enable stats for sgsn, gbproxy, nitb, bsc, nat
This commit initialises and enables the stats subsystem for the given binaries. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/gprs/sgsn_main.c')
-rw-r--r--openbsc/src/gprs/sgsn_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c
index e6a361d2a..2d3a0e4a9 100644
--- a/openbsc/src/gprs/sgsn_main.c
+++ b/openbsc/src/gprs/sgsn_main.c
@@ -37,12 +37,14 @@
#include <osmocom/core/select.h>
#include <osmocom/core/rate_ctr.h>
#include <osmocom/core/logging.h>
+#include <osmocom/core/stats.h>
#include <osmocom/gprs/gprs_ns.h>
#include <osmocom/gprs/gprs_bssgp.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
+#include <osmocom/vty/stats.h>
#include <osmocom/vty/ports.h>
#include <openbsc/signal.h>
@@ -302,11 +304,13 @@ int main(int argc, char **argv)
osmo_init_ignore_signals();
osmo_init_logging(&gprs_log_info);
+ osmo_stats_init(tall_bsc_ctx);
vty_info.copyright = openbsc_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(&gprs_log_info);
- sgsn_vty_init();
+ osmo_stats_vty_add_cmds(&gprs_log_info);
+ sgsn_vty_init();
handle_options(argc, argv);