On Tue, Oct 17, 2017 at 06:20:08PM +0100, Milosz Wasilewski wrote:
On 17 October 2017 at 14:54, Greg KH gregkh@google.com wrote:
On Tue, Oct 17, 2017 at 02:30:49PM +0100, Milosz Wasilewski wrote:
On 17 October 2017 at 14:15, Greg KH gregkh@google.com wrote:
I'll go try to figure out what is up with 'test_maps' now...
Yes, it looks like I didn't have CONFIG_BPF_SYSCALL enabled, which is required by this test. Is that the issue for you as well?
Sorry, I meant CONFIG_STREAM_PARSER.
zcat /proc/config.gz | grep CONFIG_STREAM_PARSER # CONFIG_STREAM_PARSER is not set
and zcat /proc/config.gz | grep CONFIG_BPF CONFIG_BPF=y CONFIG_BPF_SYSCALL=y CONFIG_BPF_JIT=y # CONFIG_BPF_STREAM_PARSER is not set CONFIG_BPF_EVENTS=y
OTOH the config fragment for bpf test doesn't require it and that's why it's not enabled:
~/linux/tools/testing/selftests/bpf# cat config CONFIG_BPF=y CONFIG_BPF_SYSCALL=y CONFIG_NET_CLS_BPF=m CONFIG_BPF_EVENTS=y CONFIG_TEST_BPF=m
Ok, well that's an easy bug to fix, patches are always welcome upstream :)
But even when I do enable it, it still fails for me, but with a different error: Failed empty parser prog detach
What is the error you are getting for this failure?
root@hikey:/opt/kselftests/default-in-kernel/bpf# ./test_maps Failed to create sockmap -1
Ok, that should be due to the config option. Try changing that and see what happens.
This is the pre-built version that comes from jenkins. I tried rebuilding natively and in this case bpf doesn't even build.
What is the error that you get?
Can't anyone just run this locally to test it out to verify if this is a test system issue vs. a "real" kernel issue like I did farther up this thread?
thanks,
greg k-h