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/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Mar 16 10:32:44 UTC 2020


laforge has submitted this change. ( 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(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



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: 3
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200316/bf6fb865/attachment.htm>


More information about the gerrit-log mailing list