bpf: add specification for BTF Var and DataSec kinds
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 9 Apr 2019 21:20:08 +0000 (23:20 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Apr 2019 00:05:46 +0000 (17:05 -0700)
commitf063c889c9458354a92b235a51cbb60d30321070
treeeb02d0246dbbcc1a4a96fc7a129d916ae064f503
parent3e0ddc4f3ff1436970e96e76f3df3c3b5f5173b6
bpf: add specification for BTF Var and DataSec kinds

This adds the BTF specification and UAPI bits for supporting BTF Var
and DataSec kinds. This is following LLVM upstream commit ac4082b77e07
("[BPF] Add BTF Var and DataSec Support") which has been merged recently.
Var itself is for describing a global variable and DataSec to describe
ELF sections e.g. data/bss/rodata sections that hold one or multiple
global variables.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/bpf/btf.rst
include/uapi/linux/btf.h