]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Introduce TYPE_MATCH related constants/macros
authorDaniel Müller <deso@posteo.net>
Tue, 28 Jun 2022 16:01:18 +0000 (16:01 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 6 Jul 2022 03:24:12 +0000 (20:24 -0700)
commit57c65f1007c6ae1b354aa165b0ce2f9222f8c66b
treecd5bd3ed487f7efc30b30213e92dfbe635f72df0
parent4aa67e7d13dcaecd2ebe611bfdef9ecc0a553700
bpf: Introduce TYPE_MATCH related constants/macros

In order to provide type match support we require a new type of
relocation which, in turn, requires toolchain support. Recent LLVM/Clang
versions support a new value for the last argument to the
__builtin_preserve_type_info builtin, for example.
With this change we introduce the necessary constants into relevant
header files, mirroring what the compiler may support.

Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220628160127.607834-2-deso@posteo.net
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h
tools/lib/bpf/bpf_core_read.h