From 002197560d38e11ea28d8f1f6422a850167def5b Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 18 Aug 2020 12:05:53 +0200 Subject: [PATCH] Support setting rt-prio and cpu-affinity mask through VTY Depends: libosmocore.git Change-Id If76a4bd2cc7b3c7adf5d84790a944d78be70e10a Depends: osmo-gsm-masnuals.git Change-Id Icd75769ef630c3fa985fc5e2154d5521689cdd3c Related: SYS#4986 Change-Id: Ib9faa68c1cd09a026909c792a1fd5557c9893fe3 --- TODO-RELEASE | 1 + configure.ac | 6 ++-- debian/control | 2 +- doc/manuals/osmostp-usermanual.adoc | 3 +- doc/manuals/vty/osmo-stp_vty_reference.xml | 40 ++++++++++++++++++++++ stp/stp_main.c | 2 ++ 6 files changed, 49 insertions(+), 5 deletions(-) diff --git a/TODO-RELEASE b/TODO-RELEASE index d0852fc9..b274427e 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -7,3 +7,4 @@ # If any interfaces have been added since the last public release: c:r:a + 1. # If any interfaces have been removed or changed since the last public release: c:r:0. #library what description / commit summary line +osmo-stp update osmo-gsm-manuals dependency to > 0.3.0 for vty_cpu_sched.adoc include diff --git a/configure.ac b/configure.ac index 33b71b70..1ec3b019 100644 --- a/configure.ac +++ b/configure.ac @@ -34,9 +34,9 @@ if test "x$PKG_CONFIG_INSTALLED" = "xno"; then fi PKG_PROG_PKG_CONFIG([0.20]) -PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.3.0) -PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.3.0) -PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 1.3.0) +PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.4.0) +PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.4.0) +PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 1.4.0) PKG_CHECK_MODULES(LIBOSMONETIF, libosmo-netif >= 0.7.0) old_LIBS=$LIBS diff --git a/debian/control b/debian/control index fd23fbde..f8d25f6b 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Priority: optional Build-Depends: debhelper (>= 9), autotools-dev, pkg-config, - libosmocore-dev (>= 1.3.0), + libosmocore-dev (>= 1.4.0), autoconf, automake, libtool, diff --git a/doc/manuals/osmostp-usermanual.adoc b/doc/manuals/osmostp-usermanual.adoc index 9f41e5de..a34c2b13 100644 --- a/doc/manuals/osmostp-usermanual.adoc +++ b/doc/manuals/osmostp-usermanual.adoc @@ -18,6 +18,8 @@ include::./common/chapters/vty.adoc[] include::./common/chapters/logging.adoc[] +include::./common/chapters/vty_cpu_sched.adoc[] + //include::./common/chapters/bts.adoc[] //include::../OsmoNITB/chapters/bts-examples.adoc[] @@ -31,4 +33,3 @@ include::./common/chapters/bibliography.adoc[] include::./common/chapters/glossary.adoc[] include::./common/chapters/gfdl.adoc[] - diff --git a/doc/manuals/vty/osmo-stp_vty_reference.xml b/doc/manuals/vty/osmo-stp_vty_reference.xml index ebe8b292..e9044695 100644 --- a/doc/manuals/vty/osmo-stp_vty_reference.xml +++ b/doc/manuals/vty/osmo-stp_vty_reference.xml @@ -430,6 +430,13 @@ + + + + + + + @@ -917,6 +924,13 @@ + + + + + + + @@ -1220,6 +1234,11 @@ + + + + + config-log @@ -1893,4 +1912,25 @@ + + config-cpu-sched + + + + + + + + + + + + + + + + + + + diff --git a/stp/stp_main.c b/stp/stp_main.c index 19420c05..33305b34 100644 --- a/stp/stp_main.c +++ b/stp/stp_main.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include @@ -186,6 +187,7 @@ int main(int argc, char **argv) osmo_stats_vty_add_cmds(); osmo_ss7_vty_init_sg(tall_stp_ctx); osmo_sccp_vty_init(); + osmo_cpu_sched_vty_init(tall_stp_ctx); osmo_fsm_vty_add_cmds(); osmo_talloc_vty_add_cmds();