stats: Set class_id in rate_ctr group descriptions
This commit adds the class_id initialiser to all rate_ctr_group_desc definitions. Sponsored-by: On-Waves ehf
This commit is contained in:
parent
64630cccc7
commit
46caed8fc4
|
@ -34,6 +34,7 @@
|
|||
#include <osmocom/core/talloc.h>
|
||||
#include <osmocom/core/select.h>
|
||||
#include <osmocom/core/rate_ctr.h>
|
||||
#include <osmocom/core/stats.h>
|
||||
|
||||
#include <osmocom/gprs/gprs_ns.h>
|
||||
#include <osmocom/gprs/gprs_bssgp.h>
|
||||
|
@ -72,6 +73,7 @@ static const struct rate_ctr_group_desc global_ctrg_desc = {
|
|||
.group_description = "GBProxy Global Statistics",
|
||||
.num_ctr = ARRAY_SIZE(global_ctr_description),
|
||||
.ctr_desc = global_ctr_description,
|
||||
.class_id = OSMO_STATS_CLASS_GLOBAL,
|
||||
};
|
||||
|
||||
static int gbprox_relay2peer(struct msgb *old_msg, struct gbproxy_peer *peer,
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include <osmocom/gprs/protocol/gsm_08_18.h>
|
||||
#include <osmocom/core/rate_ctr.h>
|
||||
#include <osmocom/core/stats.h>
|
||||
#include <osmocom/core/talloc.h>
|
||||
|
||||
#include <string.h>
|
||||
|
@ -59,6 +60,7 @@ static const struct rate_ctr_group_desc peer_ctrg_desc = {
|
|||
.group_description = "GBProxy Peer Statistics",
|
||||
.num_ctr = ARRAY_SIZE(peer_ctr_description),
|
||||
.ctr_desc = peer_ctr_description,
|
||||
.class_id = OSMO_STATS_CLASS_PEER,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <osmocom/core/talloc.h>
|
||||
#include <osmocom/core/timer.h>
|
||||
#include <osmocom/core/rate_ctr.h>
|
||||
#include <osmocom/core/stats.h>
|
||||
#include <osmocom/core/backtrace.h>
|
||||
#include <osmocom/gprs/gprs_ns.h>
|
||||
#include <osmocom/gprs/gprs_bssgp.h>
|
||||
|
@ -71,6 +72,7 @@ static const struct rate_ctr_group_desc mmctx_ctrg_desc = {
|
|||
.group_description = "SGSN MM Context Statistics",
|
||||
.num_ctr = ARRAY_SIZE(mmctx_ctr_description),
|
||||
.ctr_desc = mmctx_ctr_description,
|
||||
.class_id = OSMO_STATS_CLASS_SUBSCRIBER,
|
||||
};
|
||||
|
||||
static const struct rate_ctr_desc pdpctx_ctr_description[] = {
|
||||
|
@ -85,6 +87,7 @@ static const struct rate_ctr_group_desc pdpctx_ctrg_desc = {
|
|||
.group_description = "SGSN PDP Context Statistics",
|
||||
.num_ctr = ARRAY_SIZE(pdpctx_ctr_description),
|
||||
.ctr_desc = pdpctx_ctr_description,
|
||||
.class_id = OSMO_STATS_CLASS_SUBSCRIBER,
|
||||
};
|
||||
|
||||
static int ra_id_equals(const struct gprs_ra_id *id1,
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <openbsc/bsc_nat.h>
|
||||
|
||||
#include <osmocom/core/rate_ctr.h>
|
||||
#include <osmocom/core/stats.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@ -35,6 +36,7 @@ static const struct rate_ctr_group_desc bsc_cfg_acc_list_desc = {
|
|||
.group_description = "NAT Access-List Statistics",
|
||||
.num_ctr = ARRAY_SIZE(acc_list_ctr_description),
|
||||
.ctr_desc = acc_list_ctr_description,
|
||||
.class_id = OSMO_STATS_CLASS_GLOBAL,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <osmocom/core/linuxlist.h>
|
||||
#include <osmocom/core/talloc.h>
|
||||
#include <osmocom/core/stats.h>
|
||||
#include <osmocom/gsm/gsm0808.h>
|
||||
#include <osmocom/gsm/ipa.h>
|
||||
|
||||
|
@ -65,6 +66,7 @@ static const struct rate_ctr_group_desc bsc_cfg_ctrg_desc = {
|
|||
.group_description = "NAT BSC Statistics",
|
||||
.num_ctr = ARRAY_SIZE(bsc_cfg_ctr_description),
|
||||
.ctr_desc = bsc_cfg_ctr_description,
|
||||
.class_id = OSMO_STATS_CLASS_PEER,
|
||||
};
|
||||
|
||||
struct bsc_nat *bsc_nat_alloc(void)
|
||||
|
|
Loading…
Reference in New Issue