alloc: Add counters for successful algo A/B allocations
This adds counters for algorithm A and B with count successful
allocation combined for UL and DL.
Ticket: #1934
Sponsored-by: On-Waves ehf
diff --git a/src/bts.cpp b/src/bts.cpp
index 412e0c0..cb1c585 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -54,6 +54,8 @@
{ "tbf.ul.alloc", "TBF UL Allocated "},
{ "tbf.ul.freed", "TBF UL Freed "},
{ "tbf.reused", "TBF Reused "},
+ { "tbf.alloc.algo-a", "TBF Alloc Algo A "},
+ { "tbf.alloc.algo-b", "TBF Alloc Algo B "},
{ "rlc.sent", "RLC Sent "},
{ "rlc.resent", "RLC Resent "},
{ "rlc.restarted", "RLC Restarted "},
diff --git a/src/bts.h b/src/bts.h
index ebfcd5e..f2b992b 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -204,6 +204,8 @@
CTR_TBF_UL_ALLOCATED,
CTR_TBF_UL_FREED,
CTR_TBF_REUSED,
+ CTR_TBF_ALLOC_ALGO_A,
+ CTR_TBF_ALLOC_ALGO_B,
CTR_RLC_SENT,
CTR_RLC_RESENT,
CTR_RLC_RESTARTED,
@@ -266,6 +268,8 @@
void tbf_ul_created();
void tbf_ul_freed();
void tbf_reused();
+ void tbf_alloc_algo_a();
+ void tbf_alloc_algo_b();
void rlc_sent();
void rlc_resent();
void rlc_restarted();
@@ -365,6 +369,8 @@
CREATE_COUNT_INLINE(tbf_ul_created, CTR_TBF_UL_ALLOCATED)
CREATE_COUNT_INLINE(tbf_ul_freed, CTR_TBF_UL_FREED)
CREATE_COUNT_INLINE(tbf_reused, CTR_TBF_REUSED)
+CREATE_COUNT_INLINE(tbf_alloc_algo_a, CTR_TBF_ALLOC_ALGO_A)
+CREATE_COUNT_INLINE(tbf_alloc_algo_b, CTR_TBF_ALLOC_ALGO_B)
CREATE_COUNT_INLINE(rlc_sent, CTR_RLC_SENT)
CREATE_COUNT_INLINE(rlc_resent, CTR_RLC_RESENT)
CREATE_COUNT_INLINE(rlc_restarted, CTR_RLC_RESTARTED)
diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp
index d664bbc..d4cd984 100644
--- a/src/gprs_rlcmac_ts_alloc.cpp
+++ b/src/gprs_rlcmac_ts_alloc.cpp
@@ -456,6 +456,7 @@
ms_->set_reserved_slots(trx, 1 << ts, 1 << ts);
tbf_->upgrade_to_multislot = 0;
+ bts->bts->tbf_alloc_algo_a();
return 0;
}
@@ -994,6 +995,8 @@
}
}
+ bts->bts->tbf_alloc_algo_b();
+
return 0;
}