summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay@kernel.org>2025-10-23 19:14:44 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-10-30 04:19:46 +0300
commit5701d5aefa19a48c4eb14625a740027ac82657f8 (patch)
treeae7d929b151d6dd684ce8c4e9f7c99581da1aaf2 /tools/perf/scripts/python
parentd28c0e49210b585c6f995eeb80b3df500e488a58 (diff)
downloadlinux-5701d5aefa19a48c4eb14625a740027ac82657f8.tar.xz
bpf: Use kmalloc_nolock() in bpf streams
BPF stream kfuncs need to be non-sleeping as they can be called from programs running in any context, this requires a way to allocate memory from any context. Currently, this is done by a custom per-CPU NMI-safe bump allocation mechanism, backed by alloc_pages_nolock() and free_pages_nolock() primitives. As kmalloc_nolock() and kfree_nolock() primitives are available now, the custom allocator can be removed in favor of these. Signed-off-by: Puranjay Mohan <puranjay@kernel.org> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20251023161448.4263-1-puranjay@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions