linux-xiaomi-chiron/tools/include/uapi/linux
Alexei Starovoitov ccfe29eb29 bpf: Add attach_btf_id attribute to program load
Add attach_btf_id attribute to prog_load command.
It's similar to existing expected_attach_type attribute which is
used in several cgroup based program types.
Unfortunately expected_attach_type is ignored for
tracing programs and cannot be reused for new purpose.
Hence introduce attach_btf_id to verify bpf programs against
given in-kernel BTF type id at load time.
It is strictly checked to be valid for raw_tp programs only.
In a later patches it will become:
btf_id == 0 semantics of existing raw_tp progs.
btd_id > 0 raw_tp with BTF and additional type safety.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191016032505.2089704-5-ast@kernel.org
2019-10-17 16:44:35 +02:00
..
tc_act
bpf.h bpf: Add attach_btf_id attribute to program load 2019-10-17 16:44:35 +02:00
bpf_common.h
bpf_perf_event.h
btf.h
const.h tools headers: Grab copy of linux/const.h, needed by linux/bits.h 2019-08-20 12:08:23 -03:00
erspan.h
ethtool.h
fadvise.h
fcntl.h
fs.h fs: Reserve flag for casefolding 2019-08-23 07:57:12 -07:00
hw_breakpoint.h
if_link.h tools headers UAPI: Sync if_link.h with the kernel 2019-07-29 09:03:43 -03:00
if_tun.h
if_xdp.h libbpf: add flags to umem config 2019-08-31 01:08:26 +02:00
in.h
kcmp.h
kvm.h perf/urgent fixes: 2019-07-29 23:24:07 +02:00
lirc.h
mman.h
mount.h
netlink.h
perf_event.h perf tools: Add aux_output attribute flag 2019-08-14 10:59:59 -03:00
pkt_cls.h
pkt_sched.h
prctl.h tools headers uapi: Sync prctl.h with the kernel sources 2019-09-20 14:59:05 -03:00
sched.h tools headers UAPI: Sync sched.h with the kernel 2019-07-29 09:03:43 -03:00
seg6.h
seg6_local.h
stat.h
tls.h
usbdevice_fs.h tools headers UAPI: Sync usbdevice_fs.h with the kernels to get new ioctl 2019-07-29 09:03:43 -03:00
vhost.h