summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2023-03-26 05:52:52 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-03-26 05:52:52 +0300
commit8d2759608c1f39fc2d60702bf0a7421be246d209 (patch)
treec5ac30ad68786fa9636d46cb2dbb8d1f36fccc04 /Documentation
parente99360762a9cbd93bf1d352e90df5df78daa2f90 (diff)
parentcbe9d93d58b16b5912498ea42b5173022fff7c04 (diff)
downloadlinux-8d2759608c1f39fc2d60702bf0a7421be246d209.tar.xz
Merge branch 'bpf: Use bpf_mem_cache_alloc/free in bpf_local_storage'
Martin KaFai Lau says: ==================== From: Martin KaFai Lau <martin.lau@kernel.org> This set is a continuation of the effort in using bpf_mem_cache_alloc/free in bpf_local_storage [1] Major change is only using bpf_mem_alloc for task and cgrp storage while sk and inode stay with kzalloc/kfree. The details is in patch 2. [1]: https://lore.kernel.org/bpf/20230308065936.1550103-1-martin.lau@linux.dev/ v3: - Only use bpf_mem_alloc for task and cgrp storage. - sk and inode storage stay with kzalloc/kfree. - Check NULL and add comments in bpf_mem_cache_raw_free() in patch 1. - Added test and benchmark for task storage. v2: - Added bpf_mem_cache_alloc_flags() and bpf_mem_cache_raw_free() to hide the internal data structure of the bpf allocator. - Fixed a typo bug in bpf_selem_free() - Simplified the test_local_storage test by directly using err returned from libbpf ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions