linux-xiaomi-chiron/tools/include/uapi/linux
Andrii Nakryiko cc4f864bb1 libbpf: Add support for bpf_link-based cgroup attachment
Add bpf_program__attach_cgroup(), which uses BPF_LINK_CREATE subcommand to
create an FD-based kernel bpf_link. Also add low-level bpf_link_create() API.

If expected_attach_type is not specified explicitly with
bpf_program__set_expected_attach_type(), libbpf will try to determine proper
attach type from BPF program's section definition.

Also add support for bpf_link's underlying BPF program replacement:
  - unconditional through high-level bpf_link__update_program() API;
  - cmpxchg-like with specifying expected current BPF program through
    low-level bpf_link_update() API.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200330030001.2312810-4-andriin@fb.com
2020-03-30 17:36:41 -07:00
..
tc_act
bpf.h libbpf: Add support for bpf_link-based cgroup attachment 2020-03-30 17:36:41 -07:00
bpf_common.h
bpf_perf_event.h
btf.h
const.h
erspan.h
ethtool.h
fadvise.h
fcntl.h
fs.h
fscrypt.h
hw_breakpoint.h
if_link.h tools: Add EXPECTED_FD-related definitions in if_link.h 2020-03-28 14:24:41 -07:00
if_tun.h
if_xdp.h
in.h
kcmp.h
kvm.h
lirc.h
mman.h
mount.h
netlink.h
openat2.h
perf_event.h
pkt_cls.h
pkt_sched.h
prctl.h
sched.h
seg6.h
seg6_local.h
stat.h
tls.h
types.h tools/bpf: Move linux/types.h for selftests and bpftool 2020-03-13 20:56:34 +01:00
usbdevice_fs.h
vhost.h