diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-07-14 14:02:41 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-07-16 19:24:16 +0200 |
commit | 5979fe9d8af159bbf8ea382bcd06ad43e25e209c (patch) | |
tree | 1be9fd380a5c70bdaf27d0d08c0c3bdc70916787 /src | |
parent | 400ec02e8a0415a59eae9dcdae43de38247897a3 (diff) |
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
Diffstat (limited to 'src')
-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; } |