From 93e048fe272d1d20522c26b96fc7e777255c6906 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 27 Oct 2013 10:00:47 +0100 Subject: sba: Count SBA allocation, frees and timeouts Add a warning about the receive message poking in the internal of the sba. This will be cleaned up in a follow up commit --- src/sba.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sba.cpp') diff --git a/src/sba.cpp b/src/sba.cpp index d87a9a3b..ddcbe52e 100644 --- a/src/sba.cpp +++ b/src/sba.cpp @@ -79,6 +79,7 @@ int SBAController::alloc( sba->ta = ta; llist_add(&sba->list, &m_sbas); + m_bts.sba_allocated(); *_trx = trx; *_ts = ts; @@ -124,6 +125,8 @@ int SBAController::timeout(struct gprs_rlcmac_sba *sba) { LOGP(DRLCMAC, LOGL_NOTICE, "Poll timeout for SBA\n"); llist_del(&sba->list); + m_bts.sba_timedout(); + m_bts.sba_freed(); talloc_free(sba); return 0; @@ -138,6 +141,7 @@ void SBAController::free_resources(struct gprs_rlcmac_pdch *pdch) llist_for_each_entry_safe(sba, sba2, &m_sbas, list) { if (sba->trx_no == trx_no && sba->ts_no == ts_no) { llist_del(&sba->list); + m_bts.sba_freed(); talloc_free(sba); } } -- cgit v1.2.3