summaryrefslogtreecommitdiff
path: root/tools/perf/python/task-analyzer.py
diff options
context:
space:
mode:
authorDanish Khateeb <danishkhateeb03@gmail.com>2026-09-26 10:24:13 -0500
committerThomas Weißschuh <linux@weissschuh.net>2026-09-30 21:27:03 +0200
commitb7db3ba9434cbad3d15f62500104525bfa28a304 (patch)
treebfc85b1001f6af364eb339ba99f8e6c785ae3b45 /tools/perf/python/task-analyzer.py
parentda27722051fdf0775d8c5b3e33dc21bcf605dbd4 (diff)
downloadlinux-next-b7db3ba9434cbad3d15f62500104525bfa28a304.tar.gz
linux-next-b7db3ba9434cbad3d15f62500104525bfa28a304.zip
tools/nolibc: stop rounding malloc() sizes up to 4096 bytes
malloc() rounds the size of each mapping up to a multiple of 4096, presumably to align it to a page boundary. But the page size is not 4096 on all architectures, and mmap() and munmap() round the length up to the page size themselves. Drop the rounding. As heap->len is no longer rounded up, growing a block with realloc() now always creates a new mapping. Assisted-by: LLM Signed-off-by: Danish Khateeb <danishkhateeb03@gmail.com> Reviewed-by: Willy Tarreau <w@1wt.eu> Link: https://patch.msgid.link/20260926152414.251214-2-danishkhateeb03@gmail.com Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/perf/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions