bpf: btf: Clean up btf.h in uapi
authorMartin KaFai Lau <kafai@fb.com>
Sat, 21 Apr 2018 16:48:23 +0000 (09:48 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 23 Apr 2018 09:32:01 +0000 (11:32 +0200)
commitfbcf93ebcaef7d09881ee308b52cd84f5e43c622
treed288b7f6c42edfd624ca2ce9c65594ea91eba15b
parentaaa6452763cf944da72f16e0736554accb364703
bpf: btf: Clean up btf.h in uapi

This patch cleans up btf.h in uapi:
1) Rename "name" to "name_off" to better reflect it is an offset to the
   string section instead of a char array.
2) Remove unused value BTF_FLAGS_COMPR and BTF_MAGIC_SWAP

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