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

laforge gerrit-no-reply at lists.osmocom.org
Mon Jun 21 16:24:25 UTC 2021


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

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



diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index a110f43..27c835f 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, " bsic   : 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: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-CC: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210621/07a4b662/attachment.htm>


More information about the gerrit-log mailing list