commit | 5652b807b7576f14c8b96e769470affef3287b7e | [log] [tgz] |
---|---|---|
author | Jiri Olsa <jolsa@redhat.com> | Thu Dec 23 14:17:35 2021 +0100 |
committer | Andrii Nakryiko <andrii@kernel.org> | Thu Dec 23 10:23:16 2021 -0800 |
tree | a6db96b77000694a2e8543471656a06741cd4eb8 | |
parent | 1a1a0b0364ad291bd8e509da104ac8b5b1afec5d [diff] |
libbpf: Do not use btf_dump__new() macro in C++ mode As reported in here [0], C++ compilers don't support __builtin_types_compatible_p(), so at least don't screw up compilation for them and let C++ users pick btf_dump__new vs btf_dump__new_deprecated explicitly. [0] https://github.com/libbpf/libbpf/issues/283#issuecomment-986100727 Fixes: 6084f5dc928f ("libbpf: Ensure btf_dump__new() and btf_dump_opts are future-proof") Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20211223131736.483956-1-jolsa@kernel.org