]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: don't run probes at the local make stage
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 7 Jun 2019 17:11:16 +0000 (10:11 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 11 Jun 2019 06:37:20 +0000 (23:37 -0700)
commit4452c894abb68d711dd182da80dc5517342f89b5
treea813b11c1f53e77e3de330c93443fdeb148b0389
parentc365cd25366f6bb32b08e6d25785fcf5450bc1a4
samples: bpf: don't run probes at the local make stage

Quentin reports that commit a79e41faf4e3 ("samples: bpf: print
a warning about headers_install") is producing the false
positive when make is invoked locally, from the samples/bpf/
directory.

When make is run locally it hits the "all" target, which
will recursively invoke make through the full build system.

Speed up the "local" run which doesn't actually build anything,
and avoid false positives by skipping all the probes if not in
kbuild environment (cover both the new warning and the BTF
probes).

Reported-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/Makefile