summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2026-09-06 11:27:10 +0300
committerJanosch Frank <frankja@linux.ibm.com>2026-09-28 13:35:17 +0000
commit065f89c6e3edd36825884f866699a05668f1e91e (patch)
tree3f7121f5d85f793e6b05ce691a2dfceafac301f8 /tools/perf/scripts/python/stackcollapse.py
parentc81d01be22c48a8a6572336c975e90d64dea181c (diff)
downloadlinux-next-065f89c6e3edd36825884f866699a05668f1e91e.tar.gz
linux-next-065f89c6e3edd36825884f866699a05668f1e91e.zip
KVM: s390: Replace get_zeroed_page() with kzalloc() for the STSI buffer
handle_stsi() allocates the buffer that receives the STSI response block before it is copied to the guest. This buffer can be allocated with kmalloc() as there's nothing special about it to go directly to the page allocator. kmalloc() provides a better API that does not require ugly casts and kfree() does not need to know the size of the freed object. Performance difference between kmalloc() and __get_free_pages() is not measurable as both allocators take an object/page from a per-CPU list for fast path allocations. For the slow path the performance is anyway determined by the amount of reclaim involved rather than by what allocator is used. While on it, make the buffer a void pointer to get rid of the casts. Replace use of get_zeroed_page() with kzalloc() and free_page() with kfree(). Link: https://lore.kernel.org/all/635405e4-9423-4a25-a6e7-e03c8ea0bcbe@redhat.com Assisted-by: copilot:claude-opus Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions