forked from cellular-infrastructure/osmo-pcu
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
This commit is contained in:
parent
400ec02e8a
commit
5979fe9d8a
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue