diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-10-19 13:45:42 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-10-28 23:51:24 +0100 |
commit | 423c1e5a4fc7ad2cd5e95e852b778c7e2c892bc1 (patch) | |
tree | dbbeef0fb12974fb1a4af423368d13a5b06110a7 /include/osmocom/gsm | |
parent | b27b352e937dd0760da1e7fb05f9207be05702b8 (diff) |
core: Extend rate_ctr by helper functions
For global value reporting, some additional helper functions are
needed. The statsd protocol expects differential counter values,
which are currently not provided by rate_ctr (except for s/m/h/d
intervals).
This commit adds several helper functions to rate_ctr:
- rate_ctr_difference returns the counter delta since the last
call to this function for a given counter
- rate_ctr_for_each_counter
iterates through each counter of a group
- rate_ctr_for_each_group
iterates through all globally registered
counter groups
Note that the rate_ctr_difference function can only be used by a
single backend, since it modifies the 'previous' field in the
rate_ctr obj.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'include/osmocom/gsm')
0 files changed, 0 insertions, 0 deletions