diff options
author | Namhyung Kim <namhyung@kernel.org> | 2024-10-11 02:25:03 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-10-15 04:33:04 +0300 |
commit | 4971266e1595f76be3f844c834c1f9357a97dbde (patch) | |
tree | d51a010cdaf2492e184bfdc85c68836c50e7a6fa /kernel/bpf/arraymap.c | |
parent | 989a29cfed9b5092c3e18be14e9032c51bb1c9f6 (diff) | |
download | linux-4971266e1595f76be3f844c834c1f9357a97dbde.tar.xz |
bpf: Add kmem_cache iterator
The new "kmem_cache" iterator will traverse the list of slab caches
and call attached BPF programs for each entry. It should check the
argument (ctx.s) if it's NULL before using it.
Now the iteration grabs the slab_mutex only if it traverse the list and
releases the mutex when it runs the BPF program. The kmem_cache entry
is protected by a refcount during the execution.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz> #slab
Link: https://lore.kernel.org/r/20241010232505.1339892-2-namhyung@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions