Change in osmo-bts[master]: [VAMOS] trx_sched_init_ts(): assign names to per-timeslot counters

fixeria gerrit-no-reply at lists.osmocom.org
Sun Jun 6 21:44:03 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/24592 )


Change subject: [VAMOS] trx_sched_init_ts(): assign names to per-timeslot counters
......................................................................

[VAMOS] trx_sched_init_ts(): assign names to per-timeslot counters

Thanks to [1], it's now possible to associate a human-readable
name with a rate counter group.  Before this API, we had to use
weird index values for each timeslot, and with introduction
of the shadow timeslots the situation got even worse.

In change [2] I introduced rate_ctr_group_set_name_fmt() to
allow passing a format string - use it in this patch.

Change-Id: Ie872ab37661fa5d44f219f59c7daaa1033113289
Depends: [1] I0dc510783dd9ae8436dae8005a7b3330e80d36f3
Depends: [2] I6e813476cfb6a0ad275c4a51e9f065eeca8cb406
---
M src/common/scheduler.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/92/24592/1

diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 3ab94a2..a946bbf 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -622,6 +622,10 @@
 	l1ts->ctrs = rate_ctr_group_alloc(ts->trx,
 					  &l1sched_ts_ctrg_desc,
 					  rate_ctr_idx);
+	rate_ctr_group_set_name_fmt(l1ts->ctrs, "bts%u-trx%u-ts%u%s",
+				    ts->trx->bts->nr, ts->trx->nr, ts->nr,
+				    ts->vamos.is_shadow ? "-shadow" : "");
+
 	INIT_LLIST_HEAD(&l1ts->dl_prims);
 
 	for (i = 0; i < ARRAY_SIZE(l1ts->chan_state); i++) {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/24592
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ie872ab37661fa5d44f219f59c7daaa1033113289
Gerrit-Change-Number: 24592
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210606/a5289b57/attachment-0001.htm>


More information about the gerrit-log mailing list