diff options
-rw-r--r-- | src/bts.cpp | 2 | ||||
-rw-r--r-- | src/bts.h | 6 | ||||
-rw-r--r-- | src/gprs_rlcmac_ts_alloc.cpp | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/bts.cpp b/src/bts.cpp index 412e0c03..cb1c585e 100644 --- a/src/bts.cpp +++ b/src/bts.cpp @@ -54,6 +54,8 @@ static const struct rate_ctr_desc bts_ctr_description[] = { { "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 "}, @@ -204,6 +204,8 @@ public: 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 @@ public: 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_dl_freed, CTR_TBF_DL_FREED) 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 d664bbc9..d4cd9841 100644 --- a/src/gprs_rlcmac_ts_alloc.cpp +++ b/src/gprs_rlcmac_ts_alloc.cpp @@ -456,6 +456,7 @@ int alloc_algorithm_a(struct gprs_rlcmac_bts *bts, 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 @@ int alloc_algorithm_b(struct gprs_rlcmac_bts *bts, } } + bts->bts->tbf_alloc_algo_b(); + return 0; } |