From 4df959d3055b5d481a9922be85e54bba1b29b7d8 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 24 Jun 2021 17:01:41 +0200 Subject: [PATCH] Add counters: pcu.bts.N.pch.requests Count attempted paging requests over PCH. Related: SYS#4878 Change-Id: I1026780ef8542f40060b961df2f37213e15c29d7 --- src/bts.cpp | 5 +++-- src/bts.h | 1 + src/gprs_rlcmac.cpp | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bts.cpp b/src/bts.cpp index ee6b915a..4e3b770b 100644 --- a/src/bts.cpp +++ b/src/bts.cpp @@ -132,8 +132,9 @@ static const struct rate_ctr_desc bts_ctr_description[] = { { "llc:scheduled", "Scheduled Frames "}, { "llc:dl_bytes", "RLC encapsulated PDUs"}, { "llc:ul_bytes", "full PDUs received "}, - { "rach:requests", "RACH requests "}, - { "11bit_rach:requests", "11BIT_RACH requests "}, + { "pch:requests", "PCH requests sent "}, + { "rach:requests", "RACH requests received"}, + { "11bit_rach:requests", "11BIT_RACH requests received"}, { "spb:uplink_first_segment", "First seg of UL SPB "}, { "spb:uplink_second_segment", "Second seg of UL SPB "}, { "spb:downlink_first_segment", "First seg of DL SPB "}, diff --git a/src/bts.h b/src/bts.h index a2f4598e..c28bd973 100644 --- a/src/bts.h +++ b/src/bts.h @@ -125,6 +125,7 @@ enum { CTR_LLC_FRAME_SCHED, CTR_LLC_DL_BYTES, CTR_LLC_UL_BYTES, + CTR_PCH_REQUESTS, CTR_RACH_REQUESTS, CTR_11BIT_RACH_REQUESTS, CTR_SPB_UL_FIRST_SEGMENT, diff --git a/src/gprs_rlcmac.cpp b/src/gprs_rlcmac.cpp index 71849b8c..ffa656c3 100644 --- a/src/gprs_rlcmac.cpp +++ b/src/gprs_rlcmac.cpp @@ -47,6 +47,7 @@ int gprs_rlcmac_paging_request(struct gprs_rlcmac_bts *bts, const struct osmo_mo LOGP(DRLCMAC, LOGL_ERROR, "TX: [PCU -> BTS] Failed to encode Paging Request\n"); return -1; } + bts_do_rate_ctr_inc(bts, CTR_PCH_REQUESTS); pcu_l1if_tx_pch(bts, paging_request, plen, pgroup); bitvec_free(paging_request);