osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-pcu/+/25154 )


Change subject: Add counters: pcu.bts.N.pch.requests
......................................................................

Add counters: pcu.bts.N.pch.requests

Count attempted paging requests over PCH.

Related: SYS#4878
Change-Id: I1026780ef8542f40060b961df2f37213e15c29d7
---
M src/bts.cpp
M src/bts.h
M src/gprs_rlcmac.cpp
3 files changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/54/25154/1

diff --git a/src/bts.cpp b/src/bts.cpp
index ee6b915..4e3b770 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -132,8 +132,9 @@
        { "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 a2f4598..c28bd97 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -125,6 +125,7 @@
        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 71849b8..ffa656c 100644
--- a/src/gprs_rlcmac.cpp
+++ b/src/gprs_rlcmac.cpp
@@ -47,6 +47,7 @@
                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);


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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I1026780ef8542f40060b961df2f37213e15c29d7
Gerrit-Change-Number: 25154
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osm...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to