android_kernel_motorola_sm6375/tools/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
KP Singh b15c43f2c4
UPSTREAM: bpf: Generalize bpf_sk_storage
Refactor the functionality in bpf_sk_storage.c so that concept of
storage linked to kernel objects can be extended to other objects like
inode, task_struct etc.

Each new local storage will still be a separate map and provide its own
set of helpers. This allows for future object specific extensions and
still share a lot of the underlying implementation.

This includes the changes suggested by Martin in:

  https://lore.kernel.org/bpf/20200725013047.4006241-1-kafai@fb.com/

adding new map operations to support bpf_local_storage maps:

* storages for different kernel objects to optionally have different
  memory charging strategy (map_local_storage_charge,
  map_local_storage_uncharge)
* Functionality to extract the storage pointer from a pointer to the
  owning object (map_owner_storage_ptr)

Co-developed-by: Martin KaFai Lau <kafai@fb.com>

Change-Id: I22aaa39c14ea35eedea195c7d040757c243fbb56
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: KP Singh <kpsingh@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200825182919.1118197-4-kpsingh@chromium.org
2026-01-14 18:12:19 -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
trace/events
uapi UPSTREAM: bpf: Generalize bpf_sk_storage 2026-01-14 18:12:19 -08:00