Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdp7/79d511ddf30fa8d0dfee to your computer and use it in GitHub Desktop.
Save pdp7/79d511ddf30fa8d0dfee to your computer and use it in GitHub Desktop.
make-kselftest-3.17.0-lappy486-00040-gff0c57a-dirty.log
for TARGET in breakpoints cpu-hotplug efivarfs kcmp memfd memory-hotplug mqueue mount net ptrace timers vm powerpc user sysctl firmware; do \
make -C $TARGET; \
done;
gcc breakpoint_test.c -o breakpoint_test
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
echo "Not an x86 target, can't build kcmp selftest"
Not an x86 target, can't build kcmp selftest
echo "Not an x86 target, can't build memfd selftest"
Not an x86 target, can't build memfd selftest
make[2]: Nothing to be done for `all'.
gcc -O2 mq_open_tests.c -o mq_open_tests -lrt
gcc -O2 -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt
mq_perf_tests.c:39:18: fatal error: popt.h: No such file or directory
compilation terminated.
make[2]: *** [all] Error 1
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `peeksiginfo'.
gcc posix_timers.c -o posix_timers -lrt
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
for TARGET in breakpoints cpu-hotplug efivarfs kcmp memfd memory-hotplug mqueue mount net ptrace timers vm powerpc user sysctl firmware; do \
make -C $TARGET run_tests; \
done;
Test breakpoint 0 with local: 0 global: 1 [Ok]
Test breakpoint 1 with local: 0 global: 1 [Ok]
Test breakpoint 2 with local: 0 global: 1 [Ok]
Test breakpoint 3 with local: 0 global: 1 [Ok]
Test breakpoint 0 with local: 1 global: 0 [Ok]
Test breakpoint 1 with local: 1 global: 0 [Ok]
Test breakpoint 2 with local: 1 global: 0 [Ok]
Test breakpoint 3 with local: 1 global: 0 [Ok]
Test breakpoint 0 with local: 1 global: 1 [Ok]
Test breakpoint 1 with local: 1 global: 1 [Ok]
Test breakpoint 2 with local: 1 global: 1 [Ok]
Test breakpoint 3 with local: 1 global: 1 [Ok]
Test write watchpoint 0 with len: 1 local: 0 global: 1 [Ok]
Test write watchpoint 1 with len: 1 local: 0 global: 1 [Ok]
Test write watchpoint 2 with len: 1 local: 0 global: 1 [Ok]
Test write watchpoint 3 with len: 1 local: 0 global: 1 [Ok]
Test write watchpoint 0 with len: 1 local: 1 global: 0 [Ok]
Test write watchpoint 1 with len: 1 local: 1 global: 0 [Ok]
Test write watchpoint 2 with len: 1 local: 1 global: 0 [Ok]
Test write watchpoint 3 with len: 1 local: 1 global: 0 [Ok]
Test write watchpoint 0 with len: 1 local: 1 global: 1 [Ok]
Test write watchpoint 1 with len: 1 local: 1 global: 1 [Ok]
Test write watchpoint 2 with len: 1 local: 1 global: 1 [Ok]
Test write watchpoint 3 with len: 1 local: 1 global: 1 [Ok]
Test write watchpoint 0 with len: 2 local: 0 global: 1 [Ok]
Test write watchpoint 1 with len: 2 local: 0 global: 1 [Ok]
Test write watchpoint 2 with len: 2 local: 0 global: 1 [Ok]
Test write watchpoint 3 with len: 2 local: 0 global: 1 [Ok]
Test write watchpoint 0 with len: 2 local: 1 global: 0 [Ok]
Test write watchpoint 1 with len: 2 local: 1 global: 0 [Ok]
Test write watchpoint 2 with len: 2 local: 1 global: 0 [Ok]
Test write watchpoint 3 with len: 2 local: 1 global: 0 [Ok]
Test write watchpoint 0 with len: 2 local: 1 global: 1 [Ok]
Test write watchpoint 1 with len: 2 local: 1 global: 1 [Ok]
Test write watchpoint 2 with len: 2 local: 1 global: 1 [Ok]
Test write watchpoint 3 with len: 2 local: 1 global: 1 [Ok]
Test write watchpoint 0 with len: 4 local: 0 global: 1 [Ok]
Test write watchpoint 1 with len: 4 local: 0 global: 1 [Ok]
Test write watchpoint 2 with len: 4 local: 0 global: 1 [Ok]
Test write watchpoint 3 with len: 4 local: 0 global: 1 [Ok]
Test write watchpoint 0 with len: 4 local: 1 global: 0 [Ok]
Test write watchpoint 1 with len: 4 local: 1 global: 0 [Ok]
Test write watchpoint 2 with len: 4 local: 1 global: 0 [Ok]
Test write watchpoint 3 with len: 4 local: 1 global: 0 [Ok]
Test write watchpoint 0 with len: 4 local: 1 global: 1 [Ok]
Test write watchpoint 1 with len: 4 local: 1 global: 1 [Ok]
Test write watchpoint 2 with len: 4 local: 1 global: 1 [Ok]
Test write watchpoint 3 with len: 4 local: 1 global: 1 [Ok]
Test write watchpoint 0 with len: 8 local: 0 global: 1 [Ok]
Test write watchpoint 1 with len: 8 local: 0 global: 1 [Ok]
Test write watchpoint 2 with len: 8 local: 0 global: 1 [Ok]
Test write watchpoint 3 with len: 8 local: 0 global: 1 [Ok]
Test write watchpoint 0 with len: 8 local: 1 global: 0 [Ok]
Test write watchpoint 1 with len: 8 local: 1 global: 0 [Ok]
Test write watchpoint 2 with len: 8 local: 1 global: 0 [Ok]
Test write watchpoint 3 with len: 8 local: 1 global: 0 [Ok]
Test write watchpoint 0 with len: 8 local: 1 global: 1 [Ok]
Test write watchpoint 1 with len: 8 local: 1 global: 1 [Ok]
Test write watchpoint 2 with len: 8 local: 1 global: 1 [Ok]
Test write watchpoint 3 with len: 8 local: 1 global: 1 [Ok]
Test read watchpoint 0 with len: 1 local: 0 global: 1 [Ok]
Test read watchpoint 1 with len: 1 local: 0 global: 1 [Ok]
Test read watchpoint 2 with len: 1 local: 0 global: 1 [Ok]
Test read watchpoint 3 with len: 1 local: 0 global: 1 [Ok]
Test read watchpoint 0 with len: 1 local: 1 global: 0 [Ok]
Test read watchpoint 1 with len: 1 local: 1 global: 0 [Ok]
Test read watchpoint 2 with len: 1 local: 1 global: 0 [Ok]
Test read watchpoint 3 with len: 1 local: 1 global: 0 [Ok]
Test read watchpoint 0 with len: 1 local: 1 global: 1 [Ok]
Test read watchpoint 1 with len: 1 local: 1 global: 1 [Ok]
Test read watchpoint 2 with len: 1 local: 1 global: 1 [Ok]
Test read watchpoint 3 with len: 1 local: 1 global: 1 [Ok]
Test read watchpoint 0 with len: 2 local: 0 global: 1 [Ok]
Test read watchpoint 1 with len: 2 local: 0 global: 1 [Ok]
Test read watchpoint 2 with len: 2 local: 0 global: 1 [Ok]
Test read watchpoint 3 with len: 2 local: 0 global: 1 [Ok]
Test read watchpoint 0 with len: 2 local: 1 global: 0 [Ok]
Test read watchpoint 1 with len: 2 local: 1 global: 0 [Ok]
Test read watchpoint 2 with len: 2 local: 1 global: 0 [Ok]
Test read watchpoint 3 with len: 2 local: 1 global: 0 [Ok]
Test read watchpoint 0 with len: 2 local: 1 global: 1 [Ok]
Test read watchpoint 1 with len: 2 local: 1 global: 1 [Ok]
Test read watchpoint 2 with len: 2 local: 1 global: 1 [Ok]
Test read watchpoint 3 with len: 2 local: 1 global: 1 [Ok]
Test read watchpoint 0 with len: 4 local: 0 global: 1 [Ok]
Test read watchpoint 1 with len: 4 local: 0 global: 1 [Ok]
Test read watchpoint 2 with len: 4 local: 0 global: 1 [Ok]
Test read watchpoint 3 with len: 4 local: 0 global: 1 [Ok]
Test read watchpoint 0 with len: 4 local: 1 global: 0 [Ok]
Test read watchpoint 1 with len: 4 local: 1 global: 0 [Ok]
Test read watchpoint 2 with len: 4 local: 1 global: 0 [Ok]
Test read watchpoint 3 with len: 4 local: 1 global: 0 [Ok]
Test read watchpoint 0 with len: 4 local: 1 global: 1 [Ok]
Test read watchpoint 1 with len: 4 local: 1 global: 1 [Ok]
Test read watchpoint 2 with len: 4 local: 1 global: 1 [Ok]
Test read watchpoint 3 with len: 4 local: 1 global: 1 [Ok]
Test read watchpoint 0 with len: 8 local: 0 global: 1 [Ok]
Test read watchpoint 1 with len: 8 local: 0 global: 1 [Ok]
Test read watchpoint 2 with len: 8 local: 0 global: 1 [Ok]
Test read watchpoint 3 with len: 8 local: 0 global: 1 [Ok]
Test read watchpoint 0 with len: 8 local: 1 global: 0 [Ok]
Test read watchpoint 1 with len: 8 local: 1 global: 0 [Ok]
Test read watchpoint 2 with len: 8 local: 1 global: 0 [Ok]
Test read watchpoint 3 with len: 8 local: 1 global: 0 [Ok]
Test read watchpoint 0 with len: 8 local: 1 global: 1 [Ok]
Test read watchpoint 1 with len: 8 local: 1 global: 1 [Ok]
Test read watchpoint 2 with len: 8 local: 1 global: 1 [Ok]
Test read watchpoint 3 with len: 8 local: 1 global: 1 [Ok]
Test icebp [Ok]
Test int 3 trap [Ok]
pid 9914's current affinity mask: f
pid 9914's new affinity mask: 1
CPU online/offline summary:
Cpus in online state: 0-3
Cpus in offline state: 0
Limited scope test: one hotplug cpu
(leaves cpu in the original state):
online to offline to online: cpu 3
skip all tests: efivarfs is not mounted on /sys/firmware/efi/efivars
echo "Not an x86 target, can't build kcmp selftest"
Not an x86 target, can't build kcmp selftest
pid1: 9934 pid2: 9935 FD: -1 FILES: -1 VM: -1 FS: -1 SIGHAND: -1 IO: -1 SYSVSEM: -1 INV: -1
FAIL: 0 expected but -1 returned (Function not implemented)
FAIL: 0 expected but -1 returned (Function not implemented)
echo "Not an x86 target, can't build memfd selftest"
Not an x86 target, can't build memfd selftest
memfd: CREATE
memfd: BASIC
memfd: SEAL-WRITE
memfd: SEAL-SHRINK
memfd: SEAL-GROW
memfd: SEAL-RESIZE
memfd: SHARE-DUP
memfd: SHARE-MMAP
memfd: SHARE-OPEN
memfd: SHARE-FORK
memfd: SHARE-DUP (shared file-table)
memfd: SHARE-MMAP (shared file-table)
memfd: SHARE-OPEN (shared file-table)
memfd: SHARE-FORK (shared file-table)
memfd: DONE
Test scope: 2% hotplug memory
online all hotplug memory in offline state
offline 2% hotplug memory in online state
online all hotplug memory in offline state
online-offline 37
offline-online 37
Initial system state:
Using queue path: /test1
RLIMIT_MSGQUEUE(soft): 819200
RLIMIT_MSGQUEUE(hard): 819200
Maximum Message Size: 8192
Maximum Queue Size: 10
Default Message Size: 8192
Default Queue Size: 10
Adjusted system state for testing:
RLIMIT_MSGQUEUE(soft): 819200
RLIMIT_MSGQUEUE(hard): 819200
Maximum Message Size: 8192
Maximum Queue Size: 10
Default Message Size: 8192
Default Queue Size: 10
Test series 1, behavior when no attr struct passed to mq_open:
Kernel supports setting defaults separately from maximums: PASS
Given sane values, mq_open without an attr struct succeeds: PASS
Kernel properly honors default setting knobs: PASS
Kernel properly limits default values to lesser of default/max: PASS
Kernel properly fails to create queue when defaults would
exceed rlimit: PASS
Test series 2, behavior when attr struct is passed to mq_open:
Queue open in excess of rlimit max when euid = 0 failed: PASS
Queue open with mq_maxmsg > limit when euid = 0 succeeded: PASS
Queue open with mq_msgsize > limit when euid = 0 succeeded: PASS
Queue open with total size > 2GB when euid = 0 failed: PASS
Queue open in excess of rlimit max when euid = 99 failed: PASS
Queue open with mq_maxmsg > limit when euid = 99 failed: PASS
Queue open with mq_msgsize > limit when euid = 99 failed: PASS
Queue open with total size > 2GB when euid = 99 failed: PASS
/bin/sh: 1: ./mq_perf_tests: not found
mq_perf_tests: [FAIL]
--------------------
running socket test
--------------------
[PASS]
--------------------
running psock_fanout test
--------------------
test: control single socket
test: control multiple sockets
test: datapath 0x0
info: count=0,0, expect=0,0
info: count=15,5, expect=15,5
info: count=20,5, expect=20,5
test: datapath 0x1000
info: count=0,0, expect=0,0
info: count=15,5, expect=15,5
info: count=20,15, expect=20,15
test: datapath 0x1
info: count=0,0, expect=0,0
info: count=10,10, expect=10,10
info: count=18,17, expect=18,17
test: datapath 0x3
info: count=0,0, expect=0,0
info: count=20,0, expect=20,0
info: count=20,15, expect=20,15
test: datapath 0x2
info: count=0,0, expect=0,0
info: count=20,0, expect=20,0
info: count=20,0, expect=20,0
test: datapath 0x2
info: count=0,0, expect=0,0
Segmentation fault
[FAIL]
--------------------
running psock_tpacket test
--------------------
test: TPACKET_V1 with PACKET_RX_RING .................... 100 pkts (9600 bytes)
test: TPACKET_V1 with PACKET_TX_RING .................... 100 pkts (9600 bytes)
test: TPACKET_V2 with PACKET_RX_RING .................... 100 pkts (9600 bytes)
test: TPACKET_V2 with PACKET_TX_RING .................... 100 pkts (9600 bytes)
test: TPACKET_V3 with PACKET_RX_RING .................... 100 pkts (9600 bytes)
OK. All tests passed
[PASS]
test_bpf: ok
PASS
gcc posix_timers.c -o posix_timers -lrt
./posix_timers
Testing posix timers. False negative may happen on CPU execution
based timers if other threads run on the CPU...
Check itimer virtual... [OK]
Check itimer prof... [OK]
Check itimer real... [OK]
Check timer_create() per thread... [OK]
Check timer_create() per process... [OK]
--------------------
running hugepage-mmap
--------------------
Returned address is 0x2b0496a00000
First hex is 0
First hex is 3020100
[PASS]
--------------------
running hugepage-shm
--------------------
shmid: 0x28003
shmaddr: 0x2b8140800000
Starting the writes:
................................................................................................................................................................................................................................................................
Starting the Check...Done.
[PASS]
--------------------
running map_hugetlb
--------------------
Returned address is 0x2ab492000000
First hex is 0
First hex is 3020100
[PASS]
--------------------
running hugetlbfstest
--------------------
hugetlbfstest: hugetlbfstest.c:60: open_file: Assertion `fd > 2' failed.
Aborted
[FAIL]
vmtests: [FAIL]
make[2]: *** [run_tests] Error 1
user_copy: ok
== Testing sysctl behavior against /proc/sys/vm/swappiness ==
Writing test file ... ok
Checking sysctl is not set to test value ... ok
Writing sysctl from shell ... ok
Resetting sysctl to original value ... ok
Writing entire sysctl in single write ... ok
Writing middle of sysctl after synchronized seek ... FAIL
Writing beyond end of sysctl ... FAIL
Writing sysctl with multiple long writes ... ok
make[2]: *** [test_num] Error 1
./fw_filesystem.sh: timeout works
./fw_filesystem.sh: filesystem loading works
fw_filesystem: ok
./fw_userhelper.sh: timeout works
./fw_userhelper.sh: firmware interface never appeared
fw_userhelper: [FAIL]
make[2]: *** [fw_userhelper] Error 1
make[1]: *** [run_tests] Error 2
make: *** [kselftest] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment