Searched hist:"4971266 e1595f76be3f844c834c1f9357a97dbde" (Results 1 – 1 of 1) sorted by relevance
/linux/kernel/bpf/ |
H A D | Makefile | diff 4971266e1595f76be3f844c834c1f9357a97dbde Fri Oct 11 01:25:03 CEST 2024 Namhyung Kim <namhyung@kernel.org> 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>
|