summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorPratyush Yadav (Google) <pratyush@kernel.org>2026-08-01 10:48:19 +0200
committerMike Rapoport (Microsoft) <rppt@kernel.org>2026-08-04 09:20:11 +0300
commit3ab43ce41045c1fa6520af672308b727eb4fedaa (patch)
tree169b902f84837d96f95fbb49fa9b8437a159f888 /scripts/stackusage
parent8f1c8d4cf82c43be0e46bdfc68a707c6046bdf68 (diff)
downloadlinux-3ab43ce41045c1fa6520af672308b727eb4fedaa.tar.gz
linux-3ab43ce41045c1fa6520af672308b727eb4fedaa.zip
kho: allow early-boot usage of the KHO radix tree
The KHO radix tree allocates memory for table pages from the buddy allocator using get_zeroed_page(). This is not available in early boot when memblock is still active. Using the radix tree in early boot is useful for KHO to track metadata about its memory. One such example is for tracking free blocks for memory allocation when scratch runs out of space. This feature will be added in the following commits. Add kho_radix_{alloc,free}_node() which allocate and free the table pages. They use slab_is_available() to decide which allocator to use. While slab_is_available() indicates availability of the slab allocator, it gets initialized right after buddy so it serves the same practical purpose. Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com> Signed-off-by: Pratyush Yadav (Google) <pratyush@kernel.org> Link: https://patch.msgid.link/20260801084833.1897543-11-pratyush@kernel.org Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions