Change in osmocom-bb[master]: trxcon/scheduler: print TDMA statistics on lchan deactivation

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Tue Mar 10 20:36:23 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/17450 )


Change subject: trxcon/scheduler: print TDMA statistics on lchan deactivation
......................................................................

trxcon/scheduler: print TDMA statistics on lchan deactivation

Change-Id: If8688ca331a7b1f841aa21f7a5ebc9750327b90a
---
M src/host/trxcon/sched_trx.c
1 file changed, 10 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/50/17450/1

diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index b53b0e8..e172610 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -458,6 +458,16 @@
 	/* Prevent NULL-pointer deference */
 	OSMO_ASSERT(lchan != NULL);
 
+	/* Print some TDMA statistics for Downlink */
+	if (trx_lchan_desc[lchan->type].rx_fn && lchan->active) {
+		LOGP(DSCH, LOGL_DEBUG, "TDMA statistics for lchan=%s on ts=%u: "
+				       "%lu DL frames have been processed, "
+				       "%lu lost (compensated), last fn=%u\n",
+		     trx_lchan_desc[lchan->type].name, lchan->ts->index,
+		     lchan->tdma.num_proc, lchan->tdma.num_lost,
+		     lchan->tdma.last_proc);
+	}
+
 	/* Reset internal state variables */
 	lchan->rx_burst_mask = 0x00;
 	lchan->tx_burst_mask = 0x00;

-- 
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/17450
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: If8688ca331a7b1f841aa21f7a5ebc9750327b90a
Gerrit-Change-Number: 17450
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200310/73e1d7d1/attachment.htm>


More information about the gerrit-log mailing list