summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-03-11 03:27:55 +0700
committerlaforge <laforge@osmocom.org>2020-03-16 10:32:42 +0000
commitf889e916a971405f9354397c0cf3360834051705 (patch)
tree560875a41980d9d8d16a014be63c3104ad16b6f1
parentd944f1d89db89ab473a7df8363e2339dfd8f2411 (diff)
trxcon/scheduler: print TDMA statistics on lchan deactivation
-rw-r--r--src/host/trxcon/sched_trx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index b53b0e83..e1726100 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -458,6 +458,16 @@ static void sched_trx_reset_lchan(struct trx_lchan_state *lchan)
/* 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;