diff options
| author | Song Liu <[email protected]> | 2020-03-12 18:23:30 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-03-12 23:08:33 +0000 |
| commit | 14e5728ff8176d4d5924b0bf5ab9b1c94d6b3381 (patch) | |
| tree | 96fd81f008024bf24e32bd4633822a7eef9e9571 /tools/bpf/bpftool/prog.c | |
| parent | bpftool: Use linux/types.h from source tree for profiler build (diff) | |
| download | kernel-14e5728ff8176d4d5924b0bf5ab9b1c94d6b3381.tar.gz kernel-14e5728ff8176d4d5924b0bf5ab9b1c94d6b3381.zip | |
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
| -rw-r--r-- | tools/bpf/bpftool/prog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c index 576ddd82bc96..925c6c66aad7 100644 --- a/tools/bpf/bpftool/prog.c +++ b/tools/bpf/bpftool/prog.c @@ -1545,6 +1545,7 @@ static int do_loadall(int argc, char **argv) static int do_profile(int argc, char **argv) { + p_err("bpftool prog profile command is not supported. Please build bpftool with clang >= 10.0.0"); return 0; } |
