iedemam has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-abis/+/27134 )


Change subject: stats: add RSL line number to TCP stats name
......................................................................

stats: add RSL line number to TCP stats name

Change-Id: Ie42d8a0cb3757f2d01a4b6d69ea2bcce400b7538
---
M src/input/ipaccess.c
1 file changed, 6 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/34/27134/1

diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index dbb8b2e..1a3909f 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -342,7 +342,9 @@
                                     "could not register FD\n");
                                goto err;
                        }
-                       osmo_stats_tcp_osmo_fd_register(newbfd, "ipa-rsl");
+                       char stat_name[16];
+                       snprintf(stat_name, sizeof(stat_name), "ipa-rsl-%d", 
line->num);
+                       osmo_stats_tcp_osmo_fd_register(newbfd, stat_name);

                        e1i_ts = ipaccess_line_ts(newbfd, new_line);
                        ipaccess_bsc_keepalive_fsm_alloc(e1i_ts, newbfd, 
"rsl_bsc_to_bts");
@@ -727,7 +729,9 @@
                LOGP(DLINP, LOGL_ERROR, "could not register FD\n");
                goto err_line;
        }
-       osmo_stats_tcp_osmo_fd_register(bfd, "ipa-rsl");
+       char stat_name[16];
+       snprintf(stat_name, sizeof(stat_name), "ipa-rsl-%d", line->num);
+       osmo_stats_tcp_osmo_fd_register(bfd, stat_name);

        /* Request ID. FIXME: request LOCATION, HW/SW VErsion, Unit Name, Serno 
*/
        ret = ipa_ccm_send_id_req(bfd->fd);

--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/27134
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ie42d8a0cb3757f2d01a4b6d69ea2bcce400b7538
Gerrit-Change-Number: 27134
Gerrit-PatchSet: 1
Gerrit-Owner: iedemam <[email protected]>
Gerrit-MessageType: newchange

Reply via email to