libosmovty
0.12.0
Osmocom VTY library
|
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 |
Referenced by rate_ctr_handler_fmt().
|
static |
Referenced by rate_ctr_handler_fmt().
|
static |
References vty_out_context::max_level, vty_out_context::prefix, rate_ctr_handler(), vty_out_context::vty, VTY_NEWLINE, and vty_out().
Referenced by vty_out_statistics_partial().
|
static |
References vty_out_context::prefix, vty_out_context::vty, VTY_NEWLINE, and vty_out().
Referenced by rate_ctr_group_handler(), and vty_out_rate_ctr_group().
|
static |
References len(), pad_append_ctr(), pad_append_str(), vty_out_context::prefix, vty_out_context::vty, VTY_NEWLINE, and vty_out().
Referenced by vty_out_rate_ctr_group_fmt().
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
[in] | vty | The VTY to which it should be printed |
[in] | prefix | Any additional log prefix ahead of each line |
[in] | ctrg | Rate counter group to be printed |
References rate_ctr_handler(), vty_out_context::vty, VTY_NEWLINE, and vty_out().
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.
The following format string directives are supported:
An optional number between % and the letter in a format directive may be used to set a minimum field width. If the expanded format directive is smaller than this width (according to strlen()) the string will be left-padded (if the number is positive) or right-padded (if the number is negative) with spaces. For example, "%25n" prints the counter name left-padded up to a minimum width of 25 columns.
VTY_NEWLINE will be appended to the format string when it is printed.
[in] | vty | The VTY to which it should be printed |
[in] | ctrg | Rate counter group to be printed |
[in] | fmt | A format which may contain the above directives. |
References rate_ctr_handler_fmt(), vty_out_context::vty, VTY_NEWLINE, and vty_out().
Referenced by rate_ctr_group_handler().