Skip to contentSkip to conversation

debian: Enable lores clock by default

PATCH In review Jan Kiszka 2 participants 3 messages Aug 9, 2023

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 debian: Enable lores clock by default

From: Jan Kiszka <[email protected]>

Having the goal to be generically usable, the debian package should enable also this feature so that pSOS and VxWorks libraries can be used. It comes at the price of a slight overhead in time conversions for hi-res interfaces such as cobalt and alchemy.

---
 debian/rules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
debian/rules +2 -1
index 7664bf21c1..8e984acdcc 100755
@@ -19,7 +19,8 @@ CONFIG_OPTS = --prefix=/usr \
             --with-testdir=/usr/lib/xenomai/testsuite \
             --enable-lazy-setsched \
             --enable-debug=symbols \
-            --enable-dlopen-libs
+            --enable-dlopen-libs \
+            --enable-lores-clock
 
 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 	CONFIG_OPTS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
Signature · 1 line
2.35.3
#1 lore raw
Quoted 6 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Having the goal to be generically usable, the debian package should enable also this feature so that pSOS and VxWorks libraries can be used. It comes at the price of a slight overhead in time conversions for hi-res interfaces such as cobalt and alchemy.

Do I have to expect any performance problems now? How big is that "price of a slight overhead" especially on x86?

I'm asking because internal customers are using the debianization "as is", if there is now a need to deactivate this feature for them I have to be careful during the next release cycle.

I see the need for activating it here to get CI running again but the test should not fail if the feature is not available, the tests should be skipped, no? Would say we have a "double fault" here.

Florian

Quoted 22 lines
---
 debian/rules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
debian/rules +2 -1
index 7664bf21c1..8e984acdcc 100755
@@ -19,7 +19,8 @@ CONFIG_OPTS = --prefix=/usr \
             --with-testdir=/usr/lib/xenomai/testsuite \
             --enable-lazy-setsched \
             --enable-debug=symbols \
-            --enable-dlopen-libs
+            --enable-dlopen-libs \
+            --enable-lores-clock
 
 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 	CONFIG_OPTS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
Signature · 1 line
2.35.3
author
#2 lore raw
Quoted 11 lines · Florian Bezdeka
Quoted 6 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Having the goal to be generically usable, the debian package should enable also this feature so that pSOS and VxWorks libraries can be used. It comes at the price of a slight overhead in time conversions for hi-res interfaces such as cobalt and alchemy.

Do I have to expect any performance problems now? How big is that "price of a slight overhead" especially on x86?

No recent idea, someone needs to measure this again.

Quoted 7 lines

I'm asking because internal customers are using the debianization "as is", if there is now a need to deactivate this feature for them I have to be careful during the next release cycle.

I see the need for activating it here to get CI running again but the test should not fail if the feature is not available, the tests should be skipped, no? Would say we have a "double fault" here.

Making the tests skip if the feature is not available remains a todo, yet.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center