OSDN Git Service

libbpf: Add BPF-side definitions of supported field relocation kinds
authorAndrii Nakryiko <andriin@fb.com>
Tue, 15 Oct 2019 18:28:48 +0000 (11:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 Oct 2019 23:06:05 +0000 (16:06 -0700)
commit01340e31915bc73bf33a8f912ff1b74d514b8d79
treee808e372f8ec2a039ea6c72650982c6c2abdc295
parent62561eb442bd095f06534ce637b116b278e5e912
libbpf: Add BPF-side definitions of supported field relocation kinds

Add enum definition for Clang's __builtin_preserve_field_info()
second argument (info_kind). Currently only byte offset and existence
are supported. Corresponding Clang changes introducing this built-in can
be found at [0]

  [0] https://reviews.llvm.org/D67980

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191015182849.3922287-5-andriin@fb.com
tools/lib/bpf/bpf_core_read.h