android_kernel_sony_sdm845/tools/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrey Ignatov 57bf882bd0 BACKPORT: bpf: Document BPF_F_QUERY_EFFECTIVE flag
Document BPF_F_QUERY_EFFECTIVE flag, mostly to clarify how it affects
attach_flags what may not be obvious and what may lead to confision.

Specifically attach_flags is returned only for target_fd but if programs
are inherited from an ancestor cgroup then returned attach_flags for
current cgroup may be confusing. For example, two effective programs of
same attach_type can be returned but w/o BPF_F_ALLOW_MULTI in
attach_flags.

Simple repro:
  # bpftool c s /sys/fs/cgroup/path/to/task
  ID       AttachType      AttachFlags     Name
  # bpftool c s /sys/fs/cgroup/path/to/task effective
  ID       AttachType      AttachFlags     Name
  95043    ingress                         tw_ipt_ingress
  95048    ingress                         tw_ingress

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200108014006.938363-1-rdna@fb.com
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:59:24 +07:00
..
asm perf bench: Copy kernel files needed to build mem{cpy,set} x86_64 benchmarks 2016-07-12 15:20:32 -03:00
asm-generic tools lib: Add for_each_clear_bit macro 2018-06-05 10:28:55 +02:00
linux UPSTREAM: bpf: JIT blinds support JMP32 2026-05-15 17:57:29 +07:00
tools tools: add more endian.h macros 2014-09-26 11:03:01 +02:00
uapi BACKPORT: bpf: Document BPF_F_QUERY_EFFECTIVE flag 2026-05-15 17:59:24 +07:00