]> git.baikalelectronics.ru Git - kernel.git/commit
tools/runqslower: Ensure own vmlinux.h is picked up first
authorAndrii Nakryiko <andriin@fb.com>
Wed, 22 Apr 2020 01:24:07 +0000 (18:24 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 25 Apr 2020 00:45:20 +0000 (17:45 -0700)
commit3fcef4d29ff307d6455e3f28edb2d1cd79e44586
tree35163a31c5f64214a7eb414c1560c61d869c092a
parentf7b4fd00966ce454d72f746128b91e55340479b9
tools/runqslower: Ensure own vmlinux.h is picked up first

Reorder include paths to ensure that runqslower sources are picking up
vmlinux.h, generated by runqslower's own Makefile. When runqslower is built
from selftests/bpf, due to current -I$(BPF_INCLUDE) -I$(OUTPUT) ordering, it
might pick up not-yet-complete vmlinux.h, generated by selftests Makefile,
which could lead to compilation errors like [0]. So ensure that -I$(OUTPUT)
goes first and rely on runqslower's Makefile own dependency chain to ensure
vmlinux.h is properly completed before source code relying on it is compiled.

  [0] https://travis-ci.org/github/libbpf/libbpf/jobs/677905925

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200422012407.176303-1-andriin@fb.com
tools/bpf/runqslower/Makefile