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)
Depends: I137992a5479fc39bbceb6c6c2af9c227bd33b39b (libosmocore)
Change-Id: I283d38e7a8c032e274a5bd2fa150ec2c9a7157b4
This commit is contained in:
Neels Hofmeyr 2021-09-19 13:13:45 +02:00 committed by laforge
parent 1e88d691ed
commit 5f1317ba91
4 changed files with 9 additions and 0 deletions

View File

@ -15,3 +15,4 @@ libosmovty >1.5.1 needs vty_read_config_filep()
libosmosgsm >1.5.1 needs GSM_PCHAN_OSMO_DYN
libosmocore >1.5.1 RSL_IPAC_EIE_OSMO*, struct osmo_preproc_*
libosmocore >1.5.1 needs osmo_str_to_int()
libosmocore >1.5.1 needs new osmo_stat_item implementation (omits FIFO size for stat item)

View File

@ -175,6 +175,7 @@ enum {
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[];

View File

@ -162,6 +162,9 @@ void bsc_update_connection_stats(struct gsm_network *net)
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;

View File

@ -1311,6 +1311,10 @@ const struct osmo_stat_item_desc bts_stat_desc[] = {
{ "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 = {