Change in osmo-bsc[master]: stat: add bts.N.num_trx:total

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

neels gerrit-no-reply at lists.osmocom.org
Sun Sep 19 11:30:56 UTC 2021


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/25506 )


Change subject: stat: add bts.N.num_trx:total
......................................................................

stat: add bts.N.num_trx:total

This is similar to bsc.0.num_trx:total but per single BTS.

Related: SYS#5542
Related: I5be1cb470930354c4561cbed301bc50a32484ed9 (osmo-ttcn3-hacks)
Change-Id: I283d38e7a8c032e274a5bd2fa150ec2c9a7157b4
---
M include/osmocom/bsc/bts.h
M src/osmo-bsc/bsc_stats.c
M src/osmo-bsc/bts.c
3 files changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/06/25506/1

diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h
index 5ff798b..f09d068 100644
--- a/include/osmocom/bsc/bts.h
+++ b/include/osmocom/bsc/bts.h
@@ -175,6 +175,7 @@
 	BTS_STAT_RSL_CONNECTED,
 	BTS_STAT_LCHAN_BORKEN,
 	BTS_STAT_TS_BORKEN,
+	BTS_STAT_NUM_TRX_TOTAL,
 };
 
 extern const struct osmo_stat_item_desc bts_stat_desc[];
diff --git a/src/osmo-bsc/bsc_stats.c b/src/osmo-bsc/bsc_stats.c
index f33e6c8..3b96fed 100644
--- a/src/osmo-bsc/bsc_stats.c
+++ b/src/osmo-bsc/bsc_stats.c
@@ -162,6 +162,9 @@
 				trx_rsl_connected++;
 		}
 
+		osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_NUM_TRX_TOTAL),
+				   num_trx);
+
 		num_trx_total += num_trx;
 		trx_rsl_connected_total += trx_rsl_connected;
 
diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c
index c0d6634..86fa823 100644
--- a/src/osmo-bsc/bts.c
+++ b/src/osmo-bsc/bts.c
@@ -1313,6 +1313,10 @@
 		{ "ts_borken",
 		  "Number of timeslots in the BORKEN state",
 		  "", 16, 0 },
+	[BTS_STAT_NUM_TRX_TOTAL] =
+		{ "num_trx:total",
+		  "Number of configured TRX in this BTS",
+		  "" },
 };
 
 const struct osmo_stat_item_group_desc bts_statg_desc = {

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I283d38e7a8c032e274a5bd2fa150ec2c9a7157b4
Gerrit-Change-Number: 25506
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210919/94856ca7/attachment.htm>


More information about the gerrit-log mailing list