Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1733129

Re: selftests/bpf doesn't compile

From Shuah Khan <shuahkh@osg.samsung.com>
Newsgroups linux.kernel
Subject Re: selftests/bpf doesn't compile
Date 2017-09-16 00:40 +0200
Message-ID <uq7rc-OY-21@gated-at.bofh.it> (permalink)
References (3 earlier) <upDWb-6Ei-65@gated-at.bofh.it> <upEpc-6NY-23@gated-at.bofh.it> <uq1lM-5ih-7@gated-at.bofh.it> <uq2hQ-5TN-35@gated-at.bofh.it> <uq3nz-6EQ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 09/15/2017 12:14 PM, Alexei Starovoitov wrote:
> On Fri, Sep 15, 2017 at 11:00:31AM -0600, Shuah Khan wrote:
>>>> I could add a special target for bpf TARGET_BPF perhaps and exclude it from
>>>> the run_test> 
>>> I'm not sure what was the motivation to exclude hotplug from default testing,
>>
>> These are considered a bit more disruptive and were excluded a while
>> back. These take cpus and memory on and off-line. Also require
>> root access. So even if they are included in the regular run, these
>> won't run.
> 
> most of bpf tests require root access as well.
> 
>> The first failure due to clang dependency is not a problem. The second one
>> in the case of "make kselftest" is the one that requires some work when bpf
>> make is run from the main Makefile. A lots of users run tests using the
>> kselftest target from the mail Makefile. hence I would like to get this
>> working, so it would be easier to run this test on test servers.
> 
> 'make kselftest' doesn't work for me at all, since I suspect it
> assumes in-source build. I always use KBUILD_OUTPUT,
> since I build multiple archs with different configs out of the same
> source tree, so there is a bigger problem here.

Right. I think you probably use

make KBUILD_OUTPUT=dir -C tools/testing/selftests/bpf

> 
> $ make kselftest
> make[1]: Entering directory `/data/users/ast/net-next/bld_x64'
> make: Entering an unknown directory
> make: *** tools/testing/selftests: No such file or directory.  Stop.
> make: Leaving an unknown directory
> make[1]: *** [kselftest] Error 2
> make[1]: Leaving directory `/data/users/ast/net-next/bld_x64'
> make: *** [sub-make] Error 2
> 

Right. There is patch set out to fix this problem which I sent out couple
of days ago. It is probably the case that bpf Makefile might need changes
to build when it is built from the sleftests/Makefile or the main Makefile.

thanks,
-- Shuah

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] selftests/bpf: Make bpf_util work on uniprocessor systems Shuah Khan <shuah@kernel.org> - 2017-09-14 17:10 +0200
  selftests/bpf doesn't compile Shuah Khan <shuah@kernel.org> - 2017-09-14 17:40 +0200
    Re: selftests/bpf doesn't compile Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2017-09-15 18:10 +0200
      Re: selftests/bpf doesn't compile Edward Cree <ecree@solarflare.com> - 2017-09-15 19:00 +0200
        Re: selftests/bpf doesn't compile Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2017-09-15 20:10 +0200
          Re: selftests/bpf doesn't compile Daniel Borkmann <daniel@iogearbox.net> - 2017-09-15 20:30 +0200
            Re: selftests/bpf doesn't compile Daniel Borkmann <daniel@iogearbox.net> - 2017-09-15 20:50 +0200
              Re: selftests/bpf doesn't compile Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-16 00:50 +0200
                Re: selftests/bpf doesn't compile Daniel Borkmann <daniel@iogearbox.net> - 2017-09-18 15:40 +0200
      Re: selftests/bpf doesn't compile Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-15 19:10 +0200
        Re: selftests/bpf doesn't compile Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-15 19:50 +0200
        Re: selftests/bpf doesn't compile Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2017-09-15 20:20 +0200
          Re: selftests/bpf doesn't compile Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-16 00:40 +0200
  Re: [PATCH] selftests/bpf: Make bpf_util work on uniprocessor systems Shuah Khan <shuah@kernel.org> - 2017-09-19 16:50 +0200

csiph-web