linux-tools-selftests
cover linux-tools-selftests
Hi, All
This small series select some tools required to run some selftests.
I have some issues to cross-compile linux-tools-selftests due to this error:
scripts/Makefile.headersinst:63: *** Some mandatory headers (errno.h ioctl.h ioctls.h ipcbuf.h mman.h msgbuf.h poll.h resource.h sembuf.h shmbuf.h socket.h sockios.h swab.h termbits.h termios.h types.h) are missing in arch/arm64/include/uapi/asm.
Indeed, all missing headers are located in this directory:arch/arm64/include/generated/uapi/asm
Also some selftests build system try to use clang and llc (bpf) even when llvm/clang compiler is not enabled.
Best regards,
Romain
Romain Naour (3):
package/linux-tools: some selftests needs util-linux schedutils package/linux-tools: some selftests needs tput package/linux-tools: some selftests needs modprobe
package/linux-tools/Config.in | 6 ++++++ 1 file changed, 6 insertions(+)
Signature · 1 line
2.20.1
PATCH 1/3 package/linux-tools: some selftests needs util-linux schedutils
Some kernel-selftests are using taskset program, so make sure that BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS is selected.
[linux-4.19 selftests]$ git grep taskset
bpf/test_progs.c: assert(system("taskset 0x1 ./urandom_read 100000") == 0);
cpu-hotplug/cpu-on-off-test.sh: taskset -p 01 $$
cpufreq/main.sh: taskset -p 01 $$
netfilter/nft_trans_stress.sh: ip netns exec "$testns" taskset $mask ping -4 127.0.0.1 -fq > /dev/null &
netfilter/nft_trans_stress.sh: ip netns exec "$testns" taskset $mask ping -6 ::1 -fq > /dev/null &
rcutorture/bin/jitter.sh: if ! taskset -p $cpumask $$ > /dev/null 2>&1--- package/linux-tools/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/linux-tools/Config.in +2 -0
@@ -85,6 +85,8 @@ config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS select BR2_PACKAGE_BASH # runtime select BR2_PACKAGE_POPT select BR2_PACKAGE_LIBCAP_NG + select BR2_PACKAGE_UTIL_LINUX + select BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS # runtime (taskset) help Build and install (to /usr/lib/kselftests) kernel selftests.
Signature · 1 line
2.20.1
PATCH 1/3 package/linux-tools: some selftests needs util-linux schedutils
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Romain" == Romain Naour <[email protected]> writes:
Some kernel-selftests are using taskset program, so make sure that
BR2_PACKAGE_UTIL_LINUX_SCHEDUTILSis selected.[linux-4.19 selftests]$ git grep taskset
Quoted 8 lines
bpf/test_progs.c: assert(system("taskset 0x1 ./urandom_read 100000") == 0); cpu-hotplug/cpu-on-off-test.sh: taskset -p 01 $$ cpufreq/main.sh: taskset -p 01 $$ netfilter/nft_trans_stress.sh: ip netns exec "$testns" taskset $mask ping -4 127.0.0.1 -fq > /dev/null & netfilter/nft_trans_stress.sh: ip netns exec "$testns" taskset $mask ping -6 ::1 -fq > /dev/null & rcutorture/bin/jitter.sh: if ! taskset -p $cpumask $$ > /dev/null 2>&1Signed-off-by Romain Naour <[email protected]>
Committed to 2019.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/3 package/linux-tools: some selftests needs tput
In reply to Romain NaourSome kernel-selftests are using tput program, so make sure that BR2_PACKAGE_NCURSES_TARGET_PROGS is selected.
[linux-4.19 selftests]$ git grep tput
[...]
futex/run.sh:tput setf 7 || tput setaf 7futex/run.sh: tput sgr0
--- package/linux-tools/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/linux-tools/Config.in +2 -0
@@ -83,6 +83,8 @@ config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS depends on BR2_USE_MMU # bash select BR2_PACKAGE_LINUX_TOOLS select BR2_PACKAGE_BASH # runtime + select BR2_PACKAGE_NCURSES + select BR2_PACKAGE_NCURSES_TARGET_PROGS # runtime (tput) select BR2_PACKAGE_POPT select BR2_PACKAGE_LIBCAP_NG select BR2_PACKAGE_UTIL_LINUX
Signature · 1 line
2.20.1
PATCH 2/3 package/linux-tools: some selftests needs tput
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Romain" == Romain Naour <[email protected]> writes:
Some kernel-selftests are using tput program, so make sure that
BR2_PACKAGE_NCURSES_TARGET_PROGSis selected.[linux-4.19 selftests]$ git grep tput
[...]
futex/run.sh:tput setf 7 || tput setaf 7futex/run.sh: tput sgr0Signed-off-by Romain Naour <[email protected]>
Committed to 2019.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/3 package/linux-tools: some selftests needs kmod's modprobe
In reply to Romain NaourSome kernel-selftests are using modprobe options (-n) that are not available from busybox's modprobe, so make sure that BR2_PACKAGE_KMOD_TOOLS is selected.
[linux-4.19 selftests]$ git grep tput
drivers/gpu/drm_mm.sh:if ! /sbin/modprobe -n -q test-drm_mm; then drivers/usb/usbip/usbip_test.sh:if ! /sbin/modprobe -q -n usbip_host; then
--- package/linux-tools/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/linux-tools/Config.in +2 -0
@@ -85,6 +85,8 @@ config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS select BR2_PACKAGE_BASH # runtime select BR2_PACKAGE_NCURSES select BR2_PACKAGE_NCURSES_TARGET_PROGS # runtime (tput) + select BR2_PACKAGE_KMOD + select BR2_PACKAGE_KMOD_TOOLS # runtime (modprobe -n) select BR2_PACKAGE_POPT select BR2_PACKAGE_LIBCAP_NG select BR2_PACKAGE_UTIL_LINUX
Signature · 1 line
2.20.1
PATCH 3/3 package/linux-tools: some selftests needs kmod's modprobe
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Romain" == Romain Naour <[email protected]> writes:
Some kernel-selftests are using modprobe options (-n) that are not available from busybox's modprobe, so make sure that
BR2_PACKAGE_KMOD_TOOLSis selected.[linux-4.19 selftests]$ git grep tput
drivers/gpu/drm_mm.sh:if !/sbin/modprobe-n -q test-drm_mm; then drivers/usb/usbip/usbip_test.sh:if !/sbin/modprobe-q -nusbip_host; thenSigned-off-by Romain Naour <[email protected]>
Committed to 2019.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard
cover linux-tools-selftests
In reply to Romain NaourQuoted 4 lines · On Mon, 8 Apr 2019 18:43:30 +0200 Romain Naour <[email protected]> wrote:
Romain Naour (3):
package/linux-tools: some selftests needs util-linux schedutils package/linux-tools: some selftests needs tput package/linux-tools: some selftests needs modprobe
All applied. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com