aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/uapi/linux/btf.h
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2018-07-20 17:38:37 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-07-24 01:20:44 +0200
commit6283fa38dc8744dc7c2bd2a03bb0478fe42f79fa (patch)
tree5c196acf3b4827da8059920bc97148106e8739d9 /tools/include/uapi/linux/btf.h
parentMerge branch 'tcp-robust-ooo' (diff)
downloadlinux-dev-6283fa38dc8744dc7c2bd2a03bb0478fe42f79fa.tar.xz
linux-dev-6283fa38dc8744dc7c2bd2a03bb0478fe42f79fa.zip
bpf: btf: Ensure the member->offset is in the right order
This patch ensures the member->offset of a struct is in the correct order (i.e the later member's offset cannot go backward). The current "pahole -J" BTF encoder does not generate something like this. However, checking this can ensure future encoder will not violate this. Fixes: 69b693f0aefa ("bpf: btf: Introduce BPF Type Format (BTF)") Signed-off-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/include/uapi/linux/btf.h')
0 files changed, 0 insertions, 0 deletions