|
| struct osmo_stat_item_group * | osmo_stat_item_group_alloc (void *ctx, const struct osmo_stat_item_group_desc *desc, unsigned int idx) |
| | Allocate a new group of counters according to description. More...
|
| |
| static void | osmo_stat_item_group_udp_idx (struct osmo_stat_item_group *grp, unsigned int idx) |
| |
| void | osmo_stat_item_group_free (struct osmo_stat_item_group *grp) |
| | Free the memory for the specified group of stat items. More...
|
| |
| void | osmo_stat_item_set (struct osmo_stat_item *item, int32_t value) |
| | Set the a given stat_item to the given value. More...
|
| |
| int | osmo_stat_item_init (void *tall_ctx) |
| | Initialize the stat item module. More...
|
| |
| struct osmo_stat_item_group * | osmo_stat_item_get_group_by_name_idx (const char *name, const unsigned int idx) |
| | Search for item group based on group name and index. More...
|
| |
| const struct osmo_stat_item * | osmo_stat_item_get_by_name (const struct osmo_stat_item_group *statg, const char *name) |
| | Search for item based on group + item name. More...
|
| |
| int | osmo_stat_item_get_next (const struct osmo_stat_item *item, int32_t *next_idx, int32_t *value) |
| | Retrieve the next value from the osmo_stat_item object. More...
|
| |
| static int32_t | osmo_stat_item_get_last (const struct osmo_stat_item *item) |
| | Get the last (freshest) value. More...
|
| |
| int | osmo_stat_item_discard (const struct osmo_stat_item *item, int32_t *idx) |
| | Skip/discard all values of this item and update idx accordingly. More...
|
| |
| int | osmo_stat_item_discard_all (int32_t *idx) |
| | Skip all values of all items and update idx accordingly. More...
|
| |
| int | osmo_stat_item_for_each_item (struct osmo_stat_item_group *statg, osmo_stat_item_handler_t handle_item, void *data) |
| | Iterate over all items in group, call user-supplied function on each. More...
|
| |
| int | osmo_stat_item_for_each_group (osmo_stat_item_group_handler_t handle_group, void *data) |
| | Iterate over all stat_item groups in system, call user-supplied function on each. More...
|
| |