laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27812 )
Change subject: Set rate_ctr_group name for each line
......................................................................
Set rate_ctr_group name for each line
"Counters for each line in e1d 256" is not very useful unless you
know that it's "(intf_nr << 8) | line_nr" and 256 == I1/L0.
Let's set the name string explicitly.
Change-Id: I200e068f1bbc495fb806402877551924beea214e
---
M src/intf_line.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/12/27812/1
diff --git a/src/intf_line.c b/src/intf_line.c
index 9b33141..63fd098 100644
--- a/src/intf_line.c
+++ b/src/intf_line.c
@@ -217,6 +217,7 @@
e1_line_new(struct e1_intf *intf, int line_id, void *drv_data)
{
struct e1_line *line;
+ char name[32];
if (line_id != -1) {
line = e1_intf_find_line(intf, line_id);
@@ -250,6 +251,8 @@
line->ctrs = rate_ctr_group_alloc(line, &line_ctrg_desc, intf->id << 8 | line->id);
OSMO_ASSERT(line->ctrs);
+ snprintf(name, sizeof(name), "I%u:L%u", intf->id, line->id);
+ rate_ctr_group_set_name(line->ctrs, name);
llist_add_tail(&line->list, &intf->lines);
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27812
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I200e068f1bbc495fb806402877551924beea214e
Gerrit-Change-Number: 27812
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27811 )
Change subject: Make use of libosmcoore cpu_sched_vty
......................................................................
Make use of libosmcoore cpu_sched_vty
osmo-e1d automatically uses SCHED_RR already, but for consistency it
actually makes sense to add this, so people can configure the scheduler
priority and/or the cpu affinity this way.
The existing call to SCHED_RR is left in place for backwards
compatibility. The new VTY commands can just override that, if needed.
Change-Id: I1b8021e6dc864af6e301fced427e24c8bb21ca2f
---
M src/osmo-e1d.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/11/27811/1
diff --git a/src/osmo-e1d.c b/src/osmo-e1d.c
index 1e18f88..ee7c0fb 100644
--- a/src/osmo-e1d.c
+++ b/src/osmo-e1d.c
@@ -41,6 +41,7 @@
#include <osmocom/vty/logging.h>
#include <osmocom/vty/stats.h>
#include <osmocom/vty/misc.h>
+#include <osmocom/vty/cpu_sched_vty.h>
#include <osmocom/e1d/proto_srv.h>
#include <osmocom/e1d/proto.h>
@@ -186,6 +187,7 @@
osmo_stats_vty_add_cmds();
osmo_talloc_vty_add_cmds();
osmo_fsm_vty_add_cmds();
+ osmo_cpu_sched_vty_init(e1d);
handle_options(argc, argv);
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27811
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I1b8021e6dc864af6e301fced427e24c8bb21ca2f
Gerrit-Change-Number: 27811
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: laforge.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27805 )
Change subject: osmo-bts-trx: fix scheduling of dummy FACCH/H and FACCH/F
......................................................................
Patch Set 1:
(1 comment)
File src/osmo-bts-trx/sched_lchan_tchf.c:
https://gerrit.osmocom.org/c/osmo-bts/+/27805/comment/02cd1fec_3babd0b7
PS1, Line 333: chan_state->dl_facch_bursts = 8;
> you're not setting dl_ongoing_facch here (unlike TCH/H). […]
Yes, this is intentional: dl_ongoing_facch is only used in tx_tchh_fn(), where you need to skip encoding of the buffer while sending the middle two bursts of FACCH/H. Here both speech and FACCH/F have equal interleaving period.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27805
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ief12eb67ad80de3b71f5226858dc2e0c8ae76948
Gerrit-Change-Number: 27805
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Sat, 16 Apr 2022 15:52:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27802 )
Change subject: osmo-bts-trx: move tx_tch_common() into a separate file
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
do we have actual evidence to that? I'm always skeptical making theoretical assumptions/claims about what the compiler might or might not do.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27802
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Id0b9d604e6969a8db73ef451fbcad00f57325fc4
Gerrit-Change-Number: 27802
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 16 Apr 2022 14:24:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment