<p>pespin <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/24467">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stat,rate_ctr: Allow setting group name and use it at report time<br><br>This patch adds a new field "name" to the rate_ctr and osmo_stat_item_group<br>structs, together with an API to set it. This new field allows for easy<br>identification of specific group instances when several of them exists,<br>rather than using a sometimes random/increasing index value.<br><br>If set, this name (string) is used instead of the index by the stats<br>reporter.<br><br>The name, if set, is also printed during "show stats" VTY commands.<br><br>It's up to the user or application to set up unique or meaningful names<br>to fullfill one's needs.<br><br>WARNING: this commit breaks ABI and possibly creates unexpected behavior<br>when run with non-rebuilt apps which use the modified structs directly<br>to get the coutners, or if use the static inline API rate_ctr_inc2().<br>Existing users of these structs should migrate to use new APIs<br>introduced in follow-up commits instead of accessing the field directly.<br><br>Related: SYS#5456<br>Change-Id: I0dc510783dd9ae8436dae8005a7b3330e80d36f3<br>---<br>M TODO-RELEASE<br>M include/osmocom/core/rate_ctr.h<br>M include/osmocom/core/stat_item.h<br>M src/rate_ctr.c<br>M src/stat_item.c<br>M src/stats_statsd.c<br>M src/vty/utils.c<br>7 files changed, 67 insertions(+), 35 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/67/24467/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/24467">change 24467</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/24467"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I0dc510783dd9ae8436dae8005a7b3330e80d36f3 </div>
<div style="display:none"> Gerrit-Change-Number: 24467 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>