laforge has uploaded this change for review.

View Change

stats: Add per-hnb paging:attempted counter

Adding counters for number of paging succeeded is much harder,
as we currently don't parse connection-oriented DL RANAP and/or any
L3 NAS in it.

Change-Id: I7648caa410dba8474d57121a8128579ba200b18f
---
M include/osmocom/hnbgw/hnbgw.h
M src/osmo-hnbgw/hnbgw.c
M src/osmo-hnbgw/hnbgw_cn.c
3 files changed, 19 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/09/36209/1
diff --git a/include/osmocom/hnbgw/hnbgw.h b/include/osmocom/hnbgw/hnbgw.h
index 58b0903..4d40c57 100644
--- a/include/osmocom/hnbgw/hnbgw.h
+++ b/include/osmocom/hnbgw/hnbgw.h
@@ -98,6 +98,8 @@
HNB_CTR_RUA_UDT_UL,
HNB_CTR_RUA_UDT_DL,

+ HNB_CTR_PAGING_ATTEMPTED,
+
HNB_CTR_RAB_ACTIVE_MILLISECONDS_TOTAL,
};

diff --git a/src/osmo-hnbgw/hnbgw.c b/src/osmo-hnbgw/hnbgw.c
index 8c83995..7b46a8e 100644
--- a/src/osmo-hnbgw/hnbgw.c
+++ b/src/osmo-hnbgw/hnbgw.c
@@ -392,6 +392,9 @@
[HNB_CTR_RUA_UDT_DL] = {
"rua:unit_data:dl", "Transmitted RUA UnitData (UDT) in downlink" },

+ [HNB_CTR_PAGING_ATTEMPTED] = {
+ "paging:attempted", "Transmitted Paging requests" },
+
[HNB_CTR_RAB_ACTIVE_MILLISECONDS_TOTAL] = {
"rab:cs:active_milliseconds:total", "Cumulative number of milliseconds of CS RAB activity" },
};
diff --git a/src/osmo-hnbgw/hnbgw_cn.c b/src/osmo-hnbgw/hnbgw_cn.c
index 7654fb9..6871a21 100644
--- a/src/osmo-hnbgw/hnbgw_cn.c
+++ b/src/osmo-hnbgw/hnbgw_cn.c
@@ -307,6 +307,7 @@
llist_for_each_entry(hnb, &g_hnbgw->hnb_list, list) {
if (!hnb->hnb_registered)
continue;
+ HNBP_CTR_INC(hnb->persistent, HNB_CTR_PAGING_ATTEMPTED);
rua_tx_udt(hnb, data, len);
}


To view, visit change 36209. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I7648caa410dba8474d57121a8128579ba200b18f
Gerrit-Change-Number: 36209
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-MessageType: newchange