aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_cpp.cpp
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2021-12-23 13:17:35 +0000
committerAndrii Nakryiko <[email protected]>2021-12-23 18:23:16 +0000
commit5652b807b7576f14c8b96e769470affef3287b7e (patch)
treea6db96b77000694a2e8543471656a06741cd4eb8 /tools/testing/selftests/bpf/test_cpp.cpp
parentbpftool: Enable line buffering for stdout (diff)
downloadkernel-5652b807b7576f14c8b96e769470affef3287b7e.tar.gz
kernel-5652b807b7576f14c8b96e769470affef3287b7e.zip
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/test_cpp.cpp')
0 files changed, 0 insertions, 0 deletions