|
libosmovty
1.5.1
Osmocom VTY library
|
#include <stdint.h>#include <inttypes.h>#include <string.h>#include <ctype.h>#include <limits.h>#include <osmocom/core/linuxlist.h>#include <osmocom/core/talloc.h>#include <osmocom/core/timer.h>#include <osmocom/core/rate_ctr.h>#include <osmocom/core/stat_item.h>#include <osmocom/core/utils.h>#include <osmocom/core/counter.h>#include <osmocom/vty/vty.h>Data Structures | |
| struct | vty_out_context |
Functions | |
| static int | rate_ctr_handler (struct rate_ctr_group *ctrg, struct rate_ctr *ctr, const struct rate_ctr_desc *desc, void *vctx_) |
| void | vty_out_rate_ctr_group (struct vty *vty, const char *prefix, struct rate_ctr_group *ctrg) |
| print a rate counter group to given VTY More... | |
| static char * | pad_append_str (char *s, const char *a, int minwidth) |
| static char * | pad_append_ctr (char *s, uint64_t ctr, int minwidth) |
| static int | rate_ctr_handler_fmt (struct rate_ctr_group *ctrg, struct rate_ctr *ctr, const struct rate_ctr_desc *desc, void *vctx_) |
| void | vty_out_rate_ctr_group_fmt (struct vty *vty, const char *fmt, struct rate_ctr_group *ctrg) |
| print a rate counter group to given VTY, formatting the line for each counter according to a format string. More... | |
| static int | rate_ctr_group_handler (struct rate_ctr_group *ctrg, void *vctx_) |
| static int | osmo_stat_item_handler (struct osmo_stat_item_group *statg, struct osmo_stat_item *item, void *vctx_) |
| void | vty_out_stat_item_group (struct vty *vty, const char *prefix, struct osmo_stat_item_group *statg) |
| print a stat item group to given VTY More... | |
| static int | osmo_stat_item_group_handler (struct osmo_stat_item_group *statg, void *vctx_) |
| static int | handle_counter (struct osmo_counter *counter, void *vctx_) |
| void | vty_out_statistics_partial (struct vty *vty, const char *prefix, int max_level) |
| void | vty_out_statistics_full (struct vty *vty, const char *prefix) |
| char * | vty_cmd_string_from_valstr (void *ctx, const struct value_string *vals, const char *prefix, const char *sep, const char *end, int do_lower) |
| Generate a VTY command string from value_string. More... | |
|
static |
References osmo_stat_item_group_desc::class_id, osmo_stat_item_group::desc, osmo_stat_item_group_desc::group_description, osmo_stat_item_group::idx, vty_out_context::max_level, osmo_stat_item_for_each_item(), osmo_stat_item_handler(), vty_out_context::prefix, vty_out_context::vty, VTY_NEWLINE, and vty_out().
Referenced by vty_out_statistics_partial().
|
static |
|
static |
References OSMO_ASSERT.
Referenced by rate_ctr_handler_fmt().
|
static |
References OSMO_ASSERT.
Referenced by rate_ctr_handler_fmt().
|
static |
References rate_ctr_group_desc::class_id, rate_ctr_group::desc, rate_ctr_group_desc::group_description, rate_ctr_group::idx, vty_out_context::max_level, vty_out_context::prefix, rate_ctr_for_each_counter(), rate_ctr_handler(), vty_out_context::vty, VTY_NEWLINE, and vty_out().
Referenced by vty_out_statistics_partial().
|
static |
References rate_ctr::current, rate_ctr_desc::description, rate_ctr::intv, vty_out_context::prefix, rate_ctr_per_intv::rate, RATE_CTR_INTV_DAY, RATE_CTR_INTV_HOUR, RATE_CTR_INTV_MIN, RATE_CTR_INTV_SEC, vty_out_context::vty, VTY_NEWLINE, and vty_out().
Referenced by rate_ctr_group_handler(), and vty_out_rate_ctr_group().
|
static |
References rate_ctr::current, rate_ctr_desc::description, rate_ctr::intv, len(), rate_ctr_desc::name, OSMO_ASSERT, pad_append_ctr(), pad_append_str(), vty_out_context::prefix, rate_ctr::previous, rate_ctr_per_intv::rate, RATE_CTR_INTV_DAY, RATE_CTR_INTV_HOUR, RATE_CTR_INTV_MIN, RATE_CTR_INTV_SEC, vty_out_context::vty, VTY_NEWLINE, and vty_out().
Referenced by vty_out_rate_ctr_group_fmt().