utils: add kernel config check utility
PATCH v3 1/1 utils: add kernel config check utility
To check a kernel configuration for common issues which may increase latency.
configure.ac +1 -0
@@ -1017,6 +1017,7 @@ AC_CONFIG_FILES([ \ utils/net/rtnet \ utils/net/rtnet.conf \ utils/net/Makefile \ + utils/chkkconf/Makefile \ demo/Makefile \ demo/posix/Makefile \ demo/posix/cyclictest/Makefile \
doc/asciidoc/Makefile.am +2 -0
@@ -7,6 +7,7 @@ HTML_DOCS = \ html/asciidoc-icons \ html/asciidoc-icons/callouts \ html/man1/autotune \ + html/man1/chkkconf \ html/man1/clocktest \ html/man1/corectl \ html/man1/dohell \
@@ -36,6 +37,7 @@ TXT_DOCS = \ MAN1_DOCS = \ man1/autotune.1 \ + man1/chkkconf.1 \ man1/clocktest.1 \ man1/corectl.1 \ man1/cyclictest.1 \
doc/asciidoc/man1/chkkconf.adoc new file +117 -0
117 lines not on this page · raw message
utils/Makefile.am +1 -0
@@ -2,3 +2,4 @@ SUBDIRS = hdb if XENO_COBALT SUBDIRS += analogy autotune can net ps slackspot corectl endif +SUBDIRS += chkkconf
utils/chkkconf/Makefile.am new file +20 -0
@@ -0,0 +1,20 @@ + +data_DATA = kconf-checklist + +CCLD = $(top_srcdir)/scripts/wrap-link.sh $(CC) + +sbin_PROGRAMS = chkkconf + +chkkconf_SOURCES = checkconfig.c + +chkkconf_CPPFLAGS = \ + $(XENO_USER_CFLAGS) \ + -I$(top_srcdir)/include \ + -DTESTDIR=\"$(datadir)\" -D_GNU_SOURCE + +chkkconf_LDFLAGS = @XENO_AUTOINIT_LDFLAGS@ $(XENO_POSIX_WRAPPERS) + +chkkconf_LDADD = \ + @XENO_CORE_LDADD@ \ + @XENO_USER_LDADD@ \ + -lpthread -lrt
utils/chkkconf/checkconfig.c new file +338 -0
338 lines not on this page · raw message
utils/chkkconf/kconf-checklist new file +51 -0
51 lines not on this page · raw message
Signature · 1 line
2.17.1
Quoted 8 lines · Hongzhan Chen
utils/chkkconf/Makefile.am new file +2
-0@@ -0,0 +1,20 @@ + +data_DATA = kconf-checklist
utils/chkkconf/Makefile.am line 12
Quoted 10 lines
utils/chkkconf/Makefile.am new file +10
-0+ +CCLD = $(top_srcdir)/scripts/wrap-link.sh $(CC) + +sbin_PROGRAMS = chkkconf + +chkkconf_SOURCES = checkconfig.c + +chkkconf_CPPFLAGS = \ + $(XENO_USER_CFLAGS) \ + -I$(top_srcdir)/include \
Both not needed, see below.
utils/chkkconf/Makefile.am line 13
Quoted 1 line
utils/chkkconf/Makefile.am new file +1
-0+ -DTESTDIR=\"$(datadir)\" -D_GNU_SOURCE
Renaming this to "DATADIR", to be consistent.
utils/chkkconf/Makefile.am line 16
Quoted 3 lines
utils/chkkconf/Makefile.am new file +3
-0+ +chkkconf_LDFLAGS = @XENO_AUTOINIT_LDFLAGS@ $(XENO_POSIX_WRAPPERS) +
Unneeded - no Xenomai program. And dropping that actually obsoletes application_usage(), get_program_name etc. Sorry, didn't realized before.
utils/chkkconf/Makefile.am line 20
Quoted 4 lines
utils/chkkconf/Makefile.am new file +4
-0+chkkconf_LDADD = \ + @XENO_CORE_LDADD@ \ + @XENO_USER_LDADD@ \ + -lpthread -lrt
Not needed anymore.
I've applied the patch with those changes (and related ones in the source code). Please double check.
Thanks,
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 48 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Friday, October 22, 2021 12:37 AM
To: Chen, Hongzhan <[email protected]>; [email protected]
Subject: Re: [PATCH v3] utils: add kernel config check utilityQuoted 8 lines · Hongzhan Chen
utils/chkkconf/Makefile.am new file +2
-0@@ -0,0 +1,20 @@ + +data_DATA = kconf-checklistutils/chkkconf/Makefile.am line 12
Quoted 10 lines
utils/chkkconf/Makefile.am new file +10
-0+ +CCLD = $(top_srcdir)/scripts/wrap-link.sh $(CC) + +sbin_PROGRAMS = chkkconf + +chkkconf_SOURCES = checkconfig.c + +chkkconf_CPPFLAGS = \ + $(XENO_USER_CFLAGS) \ + -I$(top_srcdir)/include \Both not needed, see below.
utils/chkkconf/Makefile.am line 13
Quoted 1 line
utils/chkkconf/Makefile.am new file +1
-0+ -DTESTDIR=\"$(datadir)\" -D_GNU_SOURCERenaming this to "DATADIR", to be consistent.
utils/chkkconf/Makefile.am line 16
Quoted 3 lines
utils/chkkconf/Makefile.am new file +3
-0+ +chkkconf_LDFLAGS = @XENO_AUTOINIT_LDFLAGS@ $(XENO_POSIX_WRAPPERS) +Unneeded - no Xenomai program. And dropping that actually obsoletes
application_usage(),get_program_nameetc. Sorry, didn't realized before.utils/chkkconf/Makefile.am line 20
Quoted 4 lines
utils/chkkconf/Makefile.am new file +4
-0+chkkconf_LDADD = \ + @XENO_CORE_LDADD@ \ + @XENO_USER_LDADD@ \ + -lpthread -lrtNot needed anymore.
Quoted 2 lines
I've applied the patch with those changes (and related ones in the source code). Please double check.
Thanks for your modification. I did not realize that they are unneeded for no xenomai program and that was my fault.
Regards
Hongzhan Chen
Quoted 7 lines
Thanks,
JanSignature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux