android_kernel_motorola_sm6375/tools/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yonghong Song 17522859fe
UPSTREAM: bpf: Allow loading of a bpf_iter program
A bpf_iter program is a tracing program with attach type
BPF_TRACE_ITER. The load attribute
  attach_btf_id
is used by the verifier against a particular kernel function,
which represents a target, e.g., __bpf_iter__bpf_map
for target bpf_map which is implemented later.

The program return value must be 0 or 1 for now.
  0 : successful, except potential seq_file buffer overflow
      which is handled by seq_file reader.
  1 : request to restart the same object

In the future, other return values may be used for filtering or
teminating the iterator.

Change-Id: I9d6ea42900b52ef452d37df6e3d30a7eb51f67ae
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200509175900.2474947-1-yhs@fb.com
2025-12-23 13:36:18 -08:00
..
asm
asm-generic hugetlb_encode.h: fix undefined behaviour (34 << 26) 2024-07-05 09:08:20 +02:00
linux tools: move alignment-related macros to new <linux/align.h> 2024-09-04 13:15:02 +02:00
nolibc tools/nolibc/string: Fix memcmp() implementation 2022-11-10 17:57:55 +01:00
tools
trace/events
uapi UPSTREAM: bpf: Allow loading of a bpf_iter program 2025-12-23 13:36:18 -08:00