diff --git a/TODO-RELEASE b/TODO-RELEASE index 90ec16bba..89bc1cb9d 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -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) diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h index 5ff798bc8..f09d06848 100644 --- a/include/osmocom/bsc/bts.h +++ b/include/osmocom/bsc/bts.h @@ -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[]; diff --git a/src/osmo-bsc/bsc_stats.c b/src/osmo-bsc/bsc_stats.c index f33e6c88c..3b96fedf2 100644 --- a/src/osmo-bsc/bsc_stats.c +++ b/src/osmo-bsc/bsc_stats.c @@ -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; diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c index 3f782c1ea..4bda72155 100644 --- a/src/osmo-bsc/bts.c +++ b/src/osmo-bsc/bts.c @@ -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 = {