]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Only build bpftool-prog-profile if supported by clang
authorSong Liu <songliubraving@fb.com>
Thu, 12 Mar 2020 18:23:30 +0000 (11:23 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 12 Mar 2020 23:08:33 +0000 (00:08 +0100)
commit7c8ac03805b18aafde098189e017c7bcd0ced5b6
tree96fd81f008024bf24e32bd4633822a7eef9e9571
parent54956b3d0f99617d4f9cd367bb003c8faadfa5fd
bpftool: Only build bpftool-prog-profile if supported by clang

bpftool-prog-profile requires clang to generate BTF for global variables.
When compared with older clang, skip this command. This is achieved by
adding a new feature, clang-bpf-global-var, to tools/build/feature.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20200312182332.3953408-2-songliubraving@fb.com
tools/bpf/bpftool/Makefile
tools/bpf/bpftool/prog.c
tools/build/feature/Makefile
tools/build/feature/test-clang-bpf-global-var.c [new file with mode: 0644]