linux/tools/lib
Mykyta Yatsenko 970bd2dced libbpf: Introduce bpf_program__clone()
Add bpf_program__clone() API that loads a single BPF program from a
prepared BPF object into the kernel, returning a file descriptor owned
by the caller.

After bpf_object__prepare(), callers can use bpf_program__clone() to
load individual programs with custom bpf_prog_load_opts, instead of
loading all programs at once via bpf_object__load(). Non-zero fields in
opts override the defaults derived from the program and object
internals; passing NULL opts populates everything automatically.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260317-veristat_prepare-v4-1-74193d4cc9d9@meta.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2026-03-21 13:17:13 -07:00
..
api
bpf libbpf: Introduce bpf_program__clone() 2026-03-21 13:17:13 -07:00
perf perf evlist: Special map propagation for tool events that read on 1 CPU 2026-02-10 09:33:28 -03:00
python docs: kdoc_parser: allow __exit in function prototypes 2026-02-09 12:46:28 -07:00
subcmd libsubcmd: Fix null intersection case in exclude_cmds() 2026-01-13 16:45:43 -03:00
symbol
thermal tools: lib: thermal: Correct CFLAGS and LDFLAGS in pkg-config template 2026-01-20 20:37:38 +01:00
argv_split.c
bitmap.c tools: bitmap: add missing bitmap_[subset(), andnot()] 2026-02-12 15:42:57 -08:00
cmdline.c
ctype.c
find_bit.c
hweight.c
list_sort.c
rbtree.c
slab.c
str_error_r.c
string.c
vsprintf.c
zalloc.c