aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-02-25 18:30:33 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-03-01 13:18:36 +0100
commit9688dc9acaa86b9c9f181d822482d08b8308d146 (patch)
tree6648010f2229d26ac9696664ad4d2149cbfb15b2 /src/bts.h
parentc85e093969d64ec99f1dec1ece3f2ff92d70dd51 (diff)
bts: Add new stats to detect TBF allocation failure reasons
This is specially useful to detect for instance if a cell is handling too many users, ending up in TFI or USF exhaustions. This information can be later in the future used to tune TBF allocation algorithm behavior (either manually/statially through config file, or automatically/dynamically in code based on some thresholds). Related: OS#5042 Change-Id: I5402e937ff8d800684655e500ef8e5c867141dc3
Diffstat (limited to 'src/bts.h')
-rw-r--r--src/bts.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bts.h b/src/bts.h
index d321b8d0..15a72bdc 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -88,6 +88,10 @@ enum {
CTR_TBF_ALLOC_ALGO_A,
CTR_TBF_ALLOC_ALGO_B,
CTR_TBF_ALLOC_FAIL,
+ CTR_TBF_ALLOC_FAIL_NO_TFI,
+ CTR_TBF_ALLOC_FAIL_NO_USF,
+ CTR_TBF_ALLOC_FAIL_NO_SLOT_COMBI,
+ CTR_TBF_ALLOC_FAIL_NO_SLOT_AVAIL,
CTR_RLC_SENT,
CTR_RLC_RESENT,
CTR_RLC_RESTARTED,
@@ -319,11 +323,11 @@ static inline struct osmo_stat_item_group *bts_stat_items(struct gprs_rlcmac_bts
return bts->statg;
}
-static inline void bts_do_rate_ctr_inc(struct gprs_rlcmac_bts *bts, unsigned int ctr_id) {
+static inline void bts_do_rate_ctr_inc(const struct gprs_rlcmac_bts *bts, unsigned int ctr_id) {
rate_ctr_inc(&bts->ratectrs->ctr[ctr_id]);
}
-static inline void bts_do_rate_ctr_add(struct gprs_rlcmac_bts *bts, unsigned int ctr_id, int inc) {
+static inline void bts_do_rate_ctr_add(const struct gprs_rlcmac_bts *bts, unsigned int ctr_id, int inc) {
rate_ctr_add(&bts->ratectrs->ctr[ctr_id], inc);
}