summaryrefslogtreecommitdiffstats
path: root/block/blk-zoned.c
diff options
context:
space:
mode:
authorAndrii Nakryiko2019-06-17 21:26:55 +0200
committerDaniel Borkmann2019-06-18 00:10:41 +0200
commit063183bf0486c7e61a2b454896bba2f7908b4ab0 (patch)
tree866c9d1246da8901607b84b20eed09849d83e0b8 /block/blk-zoned.c
parentlibbpf: identify maps by section index in addition to offset (diff)
downloadkernel-qcow2-linux-063183bf0486c7e61a2b454896bba2f7908b4ab0.tar.gz
kernel-qcow2-linux-063183bf0486c7e61a2b454896bba2f7908b4ab0.tar.xz
kernel-qcow2-linux-063183bf0486c7e61a2b454896bba2f7908b4ab0.zip
libbpf: split initialization and loading of BTF
Libbpf does sanitization of BTF before loading it into kernel, if kernel doesn't support some of newer BTF features. This removes some of the important information from BTF (e.g., DATASEC and VAR description), which will be used for map construction. This patch splits BTF processing into initialization step, in which BTF is initialized from ELF and all the original data is still preserved; and sanitization/loading step, which ensures that BTF is safe to load into kernel. This allows to use full BTF information to construct maps, while still loading valid BTF into older kernels. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'block/blk-zoned.c')
0 files changed, 0 insertions, 0 deletions