Change in osmo-bts[master]: osmo-bts-trx: print timeslot brief info in 'show transceiver'

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
Thu Jun 17 22:34:13 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/24714 )


Change subject: osmo-bts-trx: print timeslot brief info in 'show transceiver'
......................................................................

osmo-bts-trx: print timeslot brief info in 'show transceiver'

Change-Id: Ibe624e4b801cae2dc00feb99441b7d606005b846
---
M src/osmo-bts-trx/trx_vty.c
1 file changed, 14 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/14/24714/1

diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index eebcf25..fabe9c0 100644
--- a/src/osmo-bts-trx/trx_vty.c
+++ b/src/osmo-bts-trx/trx_vty.c
@@ -57,6 +57,7 @@
 {
 	struct gsm_bts_trx *trx;
 	struct trx_l1h *l1h;
+	unsigned int tn;
 
 	llist_for_each_entry(trx, &g_bts->trx_list, list) {
 		struct phy_instance *pinst = trx_phy_instance(trx);
@@ -87,6 +88,19 @@
 				VTY_NEWLINE);
 		else
 			vty_out(vty, " bisc   : undefined%s", VTY_NEWLINE);
+
+		for (tn = 0; tn < ARRAY_SIZE(trx->ts); tn++) {
+			const struct gsm_bts_trx_ts *ts = &trx->ts[tn];
+			const struct l1sched_ts *l1ts = ts->priv;
+			const struct trx_sched_multiframe *mf;
+
+			mf = &trx_sched_multiframes[l1ts->mf_index];
+
+			vty_out(vty, "  timeslot #%u (%s)%s",
+				tn, mf->name, VTY_NEWLINE);
+			vty_out(vty, "    pending DL prims    : %u%s",
+				llist_count(&l1ts->dl_prims), VTY_NEWLINE);
+		}
 	}
 
 	return CMD_SUCCESS;

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ibe624e4b801cae2dc00feb99441b7d606005b846
Gerrit-Change-Number: 24714
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210617/965c0321/attachment.htm>


More information about the gerrit-log mailing list