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.
Showing the changes to tools/include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -6786,6 +6786,7 @@ enum bpf_core_relo_kind { · 6785 unmodified lines | ||
| 6786 | 6786 | BPF_CORE_TYPE_SIZE = 9, /* type size in bytes */ |
| 6787 | 6787 | BPF_CORE_ENUMVAL_EXISTS = 10, /* enum value existence in target kernel */ |
| 6788 | 6788 | BPF_CORE_ENUMVAL_VALUE = 11, /* enum value integer value */ |
| 6789 | + BPF_CORE_TYPE_MATCHES = 12, /* type match in target kernel */ | |
| 6789 | 6790 | }; |
| 6790 | 6791 | |
| 6791 | 6792 | /* |