libosmocore/src/vty
Neels Hofmeyr 923cb84270 vty 'stats reset': do not reset stat_items
Exempt all stat_item statistics from 'stats reset'. Only reset rate_ctr
statistics to zero.

The rate_ctr statistics have an implicit time scale, counting occurences
per time unit. For them it makes sense to reset all ratings and start
from zero, for example in a test suite (e.g. our TTCN3 BSC_Tests).

In contrast, stat_item statistics count number of objects or nr of
specific object stati at any given time, and they do not deteriorate
over time. Many stat items depend on increment/decrement to be sane.

For example, in osmo-bsc, if the nr of connected BTS is 3, that does not
make sense to be reset to zero. There are still 3 BTS connected, only
the stat_item would suddenly reflect zero. From then on, it'd be wrong.

All stat_items are by definition wrong after a 'stats reset'.
- Those that depend on increment/decrement will be wrong until the
  program exits, and
- those that are set to absolute values will be wrong up until the next
  value is set. That could be seconds or hours later, depending.

Related: SYS#5542
Change-Id: If2134768b1076e7af189276c45f2a09a4944303e
2021-08-23 21:22:16 +02:00
..
Makefile.am Bump version: 1.4.0.535-e387-dirty → 1.5.0 2021-02-23 14:03:31 +01:00
buffer.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
command.c vty: show uptime: use timespecsub 2021-07-19 09:01:15 +02:00
cpu_sched_vty.c vty: Mark cpu_sched_vty commands with attr immediate 2020-11-09 11:24:21 +01:00
fsm_vty.c vty/fsm_vty: Add vty_out_fsm2() + vty_out_fsm_inst2() with prefix 2021-01-20 14:59:03 +00:00
logging_vty.c vty/logging: logp: properly handle library specific sub-systems 2021-04-12 12:15:17 +00:00
stats_vty.c vty 'stats reset': do not reset stat_items 2021-08-23 21:22:16 +02:00
talloc_ctx_vty.c vty: use install_lib_element() and install_lib_element_ve() 2020-10-06 00:22:22 +07:00
tdef_vty.c vty: use install_lib_element() and install_lib_element_ve() 2020-10-06 00:22:22 +07:00
telnet_interface.c cosmetic: vty: Fix trailing whitespace 2020-10-12 15:09:37 +00:00
utils.c stat,rate_ctr: Allow setting group name and use it at report time 2021-06-05 15:46:27 +00:00
vector.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
vty.c vty: clear screen with ^L 2021-07-27 12:38:28 +00:00