aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-02-24 20:39:36 +0100
committerHarald Welte <laforge@osmocom.org>2022-02-24 20:40:24 +0100
commit218789e8338af397af755dd5bf0ec1fd3aaf67c3 (patch)
treef6cbd3677e665ee98760b3b4721651cec3a08b65
parenta1bf0c96eca2f444555e0ea5e1f17ea4cb745bee (diff)
sccp_demo_user: enable stats / rate_counter timers
-rw-r--r--examples/sccp_demo_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/sccp_demo_user.c b/examples/sccp_demo_user.c
index 84ad84b..1a4ebac 100644
--- a/examples/sccp_demo_user.c
+++ b/examples/sccp_demo_user.c
@@ -11,6 +11,8 @@
#include <osmocom/core/logging.h>
#include <osmocom/core/application.h>
#include <osmocom/core/fsm.h>
+#include <osmocom/core/stats.h>
+#include <osmocom/core/rate_ctr.h>
#include <osmocom/vty/vty.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
@@ -260,6 +262,8 @@ int main(int argc, char **argv)
signal(SIGUSR1, &signal_handler);
signal(SIGUSR2, &signal_handler);
+ osmo_stats_init(tall_ctx);
+ rate_ctr_init(tall_ctx);
OSMO_ASSERT(osmo_ss7_init() == 0);
osmo_fsm_log_addr(false);
vty_info.tall_ctx = tall_ctx;