aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-27 09:50:15 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:12 +0100
commit158776411b13cdda080dd3b72296fb97a0141d64 (patch)
treecbc1d6db8d95883b95efc62d84908d5ba86ae0b9 /src/bts.h
parentf537298ccad65dfb64076c5a68895eb93743c432 (diff)
bts: Provide the first set of counters
Diffstat (limited to 'src/bts.h')
-rw-r--r--src/bts.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/bts.h b/src/bts.h
index af51e47..eec3493 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -237,6 +237,31 @@ inline struct rate_ctr_group *BTS::rate_counters() const
return m_ratectrs;
}
+inline void BTS::tbf_dl_created()
+{
+ rate_ctr_inc(&m_ratectrs->ctr[CTR_TBF_DL_ALLOCATED]);
+}
+
+inline void BTS::tbf_dl_freed()
+{
+ rate_ctr_inc(&m_ratectrs->ctr[CTR_TBF_DL_FREED]);
+}
+
+inline void BTS::tbf_ul_created()
+{
+ rate_ctr_inc(&m_ratectrs->ctr[CTR_TBF_UL_ALLOCATED]);
+}
+
+inline void BTS::tbf_ul_freed()
+{
+ rate_ctr_inc(&m_ratectrs->ctr[CTR_TBF_UL_FREED]);
+}
+
+inline void BTS::decode_error()
+{
+ rate_ctr_inc(&m_ratectrs->ctr[CTR_DECODE_ERRORS]);
+}
+
inline gprs_rlcmac_bts *gprs_rlcmac_pdch::bts_data() const
{
return trx->bts->bts_data();