laforge has submitted this change. ( 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(-)
Approvals:
Jenkins Builder: Verified
tnt: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
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-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: tnt <tnt(a)246tNt.com>
Gerrit-MessageType: merged
laforge has submitted this change. ( 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(-)
Approvals:
Jenkins Builder: Verified
tnt: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
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-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: tnt <tnt(a)246tNt.com>
Gerrit-MessageType: merged
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27812 )
Change subject: Set rate_ctr_group name for each line
......................................................................
Patch Set 1: Code-Review+2
--
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-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: tnt <tnt(a)246tNt.com>
Gerrit-Comment-Date: Mon, 18 Apr 2022 06:01:19 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment