diff options
author | Namhyung Kim <[email protected]> | 2024-10-10 16:25:03 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-10-14 18:33:04 -0700 |
commit | 4971266e1595f76be3f844c834c1f9357a97dbde (patch) | |
tree | d51a010cdaf2492e184bfdc85c68836c50e7a6fa /scripts/gdb/linux/radixtree.py | |
parent | 989a29cfed9b5092c3e18be14e9032c51bb1c9f6 (diff) |
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 <[email protected]>
Acked-by: Vlastimil Babka <[email protected]> #slab
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/radixtree.py')
0 files changed, 0 insertions, 0 deletions