android_kernel_motorola_sm6375/kernel/bpf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Song Liu de2ea87c6b
UPSTREAM: bpf: Introduce BPF_F_PRESERVE_ELEMS for perf event array
Currently, perf event in perf event array is removed from the array when
the map fd used to add the event is closed. This behavior makes it
difficult to the share perf events with perf event array.

Introduce perf event map that keeps the perf event open with a new flag
BPF_F_PRESERVE_ELEMS. With this flag set, perf events in the array are not
removed when the original map fd is closed. Instead, the perf event will
stay in the map until 1) it is explicitly removed from the array; or 2)
the array is freed.

Change-Id: I56f89d58a60a0d7a2d377916f0e80c99abc0a73c
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200930224927.1936644-2-songliubraving@fb.com
2026-01-14 18:12:39 -08:00
..
preload UPSTREAM: bpf: Move prog->aux->linked_prog and trampoline into bpf_link on attach 2026-01-14 18:12:38 -08:00
arraymap.c UPSTREAM: bpf: Introduce BPF_F_PRESERVE_ELEMS for perf event array 2026-01-14 18:12:39 -08:00
bpf_inode_storage.c BACKPORT: bpf: Allow specifying a BTF ID per argument in function protos 2026-01-14 18:12:31 -08:00
bpf_iter.c UPSTREAM: bpf: Bump iter seq size to support BTF representation of large data structures 2026-01-14 18:12:37 -08:00
bpf_local_storage.c UPSTREAM: bpf: Use hlist_add_head_rcu when linking to local_storage 2026-01-14 18:12:30 -08:00
bpf_lru_list.c
bpf_lru_list.h
bpf_lsm.c UPSTREAM: bpf: Change bpf_sk_storage_*() to accept ARG_PTR_TO_BTF_ID_SOCK_COMMON 2026-01-14 18:12:34 -08:00
bpf_struct_ops.c
bpf_struct_ops_types.h
btf.c UPSTREAM: bpf: Fix context type resolving for extension programs 2026-01-14 18:12:38 -08:00
cgroup.c UPSTREAM: sysctl: Convert to iter interfaces 2026-01-14 18:12:28 -08:00
core.c UPSTREAM: bpf: Move prog->aux->linked_prog and trampoline into bpf_link on attach 2026-01-14 18:12:38 -08:00
cpumap.c UPSTREAM: bpf, cpumap: Remove rcpu pointer from cpu_map_build_skb signature 2026-01-14 18:12:35 -08:00
devmap.c
disasm.c
disasm.h
dispatcher.c
hashtab.c UPSTREAM: bpf: Do not use bucket_lock for hashmap iterator 2026-01-14 18:12:27 -08:00
helpers.c UPSTREAM: bpf: Add bpf_snprintf_btf helper 2026-01-14 18:12:37 -08:00
inode.c
local_storage.c
lpm_trie.c
Makefile
map_in_map.c
map_in_map.h
map_iter.c
net_namespace.c
offload.c
percpu_freelist.c
percpu_freelist.h
prog_iter.c
queue_stack_maps.c
reuseport_array.c UPSTREAM: bpf, net: Rework cookie generator as per-cpu one 2026-01-14 18:12:39 -08:00
ringbuf.c
stackmap.c BACKPORT: bpf: Allow specifying a BTF ID per argument in function protos 2026-01-14 18:12:31 -08:00
syscall.c BACKPORT: bpf: Support attaching freplace programs to multiple attach points 2026-01-14 18:12:38 -08:00
sysfs_btf.c
task_iter.c UPSTREAM: bpf: Avoid iterating duplicated files for task_file iterator 2026-01-14 18:12:27 -08:00
tnum.c
trampoline.c UPSTREAM: bpf: Move prog->aux->linked_prog and trampoline into bpf_link on attach 2026-01-14 18:12:38 -08:00
verifier.c BACKPORT: bpf: Support attaching freplace programs to multiple attach points 2026-01-14 18:12:38 -08:00