summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2026-09-16 15:03:10 +0300
committerHeiko Carstens <hca@linux.ibm.com>2026-09-22 12:40:30 +0200
commita68e07158f50926e8c6b2bdac0204cbce9605abf (patch)
tree03d7519a004de0740db4a301ed080f34f05d191a /tools/perf/scripts/python/stackcollapse.py
parentb5555485912a3a81e4038d9be5718c267e82807c (diff)
downloadlinux-a68e07158f50926e8c6b2bdac0204cbce9605abf.tar.gz
linux-a68e07158f50926e8c6b2bdac0204cbce9605abf.zip
s390/chsc_sch: Use kzalloc() for CHSC requests
The CHSC ioctl handlers allocate request and response areas for CHSC commands issued on behalf of userspace. This memory 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. 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: Heiko Carstens <hca@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions