History

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.

Daniel Müller committed 4 years ago

Commit 3c660a51 parent cfb5a2d3 files · +3 −0Browse files

Showing the changes to tools/include/uapi/linux (1 of 3 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+1−0
@@ -6786,6 +6786,7 @@ enum bpf_core_relo_kind { · 6785 unmodified lines
67866786 BPF_CORE_TYPE_SIZE = 9, /* type size in bytes */
67876787 BPF_CORE_ENUMVAL_EXISTS = 10, /* enum value existence in target kernel */
67886788 BPF_CORE_ENUMVAL_VALUE = 11, /* enum value integer value */
6789+ BPF_CORE_TYPE_MATCHES = 12, /* type match in target kernel */
67896790 };
67906791
67916792 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t