]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add gpl_compatible flag to struct bpf_prog_info
authorJiri Olsa <jolsa@kernel.org>
Wed, 25 Apr 2018 17:41:06 +0000 (19:41 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 26 Apr 2018 20:36:11 +0000 (22:36 +0200)
commitebc1ba064bd27361362bca9f2ad2faa055116587
tree2a743c24543f955aab3c03370e779646c74fd95f
parent83f83a783f2aecfc55ffebebf63437e2eff19c96
bpf: Add gpl_compatible flag to struct bpf_prog_info

Adding gpl_compatible flag to struct bpf_prog_info
so it can be dumped via bpf_prog_get_info_by_fd and
displayed via bpftool progs dump.

Alexei noticed 4-byte hole in struct bpf_prog_info,
so we put the u32 flags field in there, and we can
keep adding bit fields in there without breaking
user space.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/uapi/linux/bpf.h
kernel/bpf/syscall.c