mirror of
https://github.com/torvalds/linux.git
synced 2026-05-17 02:56:31 +02:00
This patch modified test_btf pretty print test to cover
the bitfield with struct member equal to or greater 256.
Without the previous kernel patch fix, the modified test will fail:
$ test_btf -p
......
BTF pretty print array(#1)......unexpected pprint output
expected: 0: {0,0,0,0x3,0x0,0x3,{0|[0,0,0,0,0,0,0,0]},ENUM_ZERO,4,0x1}
read: 0: {0,0,0,0x3,0x0,0x3,{0|[0,0,0,0,0,0,0,0]},ENUM_ZERO,4,0x0}
BTF pretty print array(#2)......unexpected pprint output
expected: 0: {0,0,0,0x3,0x0,0x3,{0|[0,0,0,0,0,0,0,0]},ENUM_ZERO,4,0x1}
read: 0: {0,0,0,0x3,0x0,0x3,{0|[0,0,0,0,0,0,0,0]},ENUM_ZERO,4,0x0}
PASS:6 SKIP:0 FAIL:2
With the kernel fix, the modified test will succeed:
$ test_btf -p
......
BTF pretty print array(#1)......OK
BTF pretty print array(#2)......OK
PASS:8 SKIP:0 FAIL:0
Fixes:
|
||
|---|---|---|
| .. | ||
| android | ||
| bpf | ||
| breakpoints | ||
| capabilities | ||
| cgroup | ||
| cpu-hotplug | ||
| cpufreq | ||
| drivers | ||
| efivarfs | ||
| exec | ||
| filesystems | ||
| firmware | ||
| ftrace | ||
| futex | ||
| gpio | ||
| ia64 | ||
| ima | ||
| intel_pstate | ||
| ipc | ||
| ir | ||
| kcmp | ||
| kmod | ||
| kvm | ||
| lib | ||
| locking | ||
| media_tests | ||
| membarrier | ||
| memfd | ||
| memory-hotplug | ||
| mount | ||
| mqueue | ||
| net | ||
| netfilter | ||
| networking/timestamping | ||
| nsfs | ||
| ntb | ||
| powerpc | ||
| prctl | ||
| proc | ||
| pstore | ||
| ptp | ||
| ptrace | ||
| rcutorture | ||
| rseq | ||
| rtc | ||
| seccomp | ||
| sigaltstack | ||
| size | ||
| sparc64 | ||
| splice | ||
| static_keys | ||
| sync | ||
| sysctl | ||
| tc-testing | ||
| timers | ||
| uevent | ||
| user | ||
| vDSO | ||
| vm | ||
| watchdog | ||
| x86 | ||
| zram | ||
| .gitignore | ||
| gen_kselftest_tar.sh | ||
| kselftest_harness.h | ||
| kselftest_install.sh | ||
| kselftest.h | ||
| lib.mk | ||
| Makefile | ||