aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-11-25 12:14:09 +0100
committerOliver Smith <osmith@sysmocom.de>2021-11-29 11:33:34 +0100
commit2df65db3dab8545bd31dcbbed88fc156630ee246 (patch)
tree80e113f54616d8656a04fbb154ae4e47dcc0a9bb /include/osmocom
parent61e041d92a1fadf544f055cc2960d05290f8cd4d (diff)
stats: add bsc.paging:expired
Similar to paging:attempted, count paging:expired not only per BTS, but also for the whole BSC. Add active_paging_requests to struct bsc_subscr, to increase the counter only once if paging expires, and not once per BTS where paging expired. Related: SYS#4878 Change-Id: I9c118e7e3d61ed8c9f1951111255b196905eba4d
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/bsc/bsc_stats.h1
-rw-r--r--include/osmocom/bsc/bsc_subscriber.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/bsc/bsc_stats.h b/include/osmocom/bsc/bsc_stats.h
index 9140f852e..801a2c153 100644
--- a/include/osmocom/bsc/bsc_stats.h
+++ b/include/osmocom/bsc/bsc_stats.h
@@ -76,6 +76,7 @@ enum {
BSC_CTR_PAGING_ATTEMPTED,
BSC_CTR_PAGING_DETACHED,
BSC_CTR_PAGING_RESPONDED,
+ BSC_CTR_PAGING_EXPIRED,
BSC_CTR_PAGING_NO_ACTIVE_PAGING,
BSC_CTR_UNKNOWN_UNIT_ID,
BSC_CTR_MSCPOOL_SUBSCR_NO_MSC,
diff --git a/include/osmocom/bsc/bsc_subscriber.h b/include/osmocom/bsc/bsc_subscriber.h
index 6fffafdb3..f9e8eb2a8 100644
--- a/include/osmocom/bsc/bsc_subscriber.h
+++ b/include/osmocom/bsc/bsc_subscriber.h
@@ -17,6 +17,8 @@ struct bsc_subscr {
char imsi[GSM23003_IMSI_MAX_DIGITS+1];
uint32_t tmsi;
+
+ uint32_t active_paging_requests;
};
const char *bsc_subscr_name(struct bsc_subscr *bsub);