diff options
author | Harald Welte <laforge@osmocom.org> | 2022-05-15 11:43:35 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-05-15 16:23:02 +0200 |
commit | 123261e0bbd595ffa4f9333ed848c90c3e9d4986 (patch) | |
tree | 07926791e557eea7799b2a9d7537a7bf66a2d54c /include/osmocom/msc | |
parent | 173bdf303be5c9f657547b5992916227cd3c1a4d (diff) |
vlr: Add rate counters and stat items
This should give us some more insight into what is happening inside
the MSC's VLR in terms of number of subcribers, rate of successful /
unsuccessful GSUP procedures, etc.
Related: OS#1974
Change-Id: I681bcfc1875363478190151f2931cad197323ee8
Diffstat (limited to 'include/osmocom/msc')
-rw-r--r-- | include/osmocom/msc/vlr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/msc/vlr.h b/include/osmocom/msc/vlr.h index d752dfb65..d23661db0 100644 --- a/include/osmocom/msc/vlr.h +++ b/include/osmocom/msc/vlr.h @@ -5,6 +5,8 @@ #include <osmocom/core/fsm.h> #include <osmocom/core/logging.h> #include <osmocom/core/use_count.h> +#include <osmocom/core/stat_item.h> +#include <osmocom/core/rate_ctr.h> #include <osmocom/gsm/protocol/gsm_23_003.h> #include <osmocom/gsm/protocol/gsm_04_08_gprs.h> #include <osmocom/gsm/gsm23003.h> @@ -274,6 +276,8 @@ struct vlr_instance { uint8_t nri_bitlen; struct osmo_nri_ranges *nri_ranges; } cfg; + struct osmo_stat_item_group *statg; + struct rate_ctr_group *ctrg; /* A free-form pointer for use by the caller */ void *user_ctx; }; |