Skip to main content

Module heap

Module heap 

Source
Expand description

Allocator inspection and stress tests for the kernel shell.

Commands such as heap live print task ids, addresses, and source locations from vmalloc attribution : useful for debugging but sensitive if the serial console is exposed; restrict shell access accordingly.

Enumsยง

StressOutcome ๐Ÿ”’

Constantsยง

HEAP_USAGE ๐Ÿ”’
MAX_LIVE_LIMIT ๐Ÿ”’
STRESS_MAX_BLOCKS ๐Ÿ”’
Maximum number of pointers held on the stack during a slab stress test. Sized to cover the densest class (8 B, 509 blocks/page) over 1 page.
STRESS_WORKLOAD_EXIT_TIMEOUT_TICKS ๐Ÿ”’
STRESS_WORKLOAD_OBSERVE_TICKS ๐Ÿ”’
VMALLOC_FRAG_COUNT ๐Ÿ”’

Functionsยง

cmd_heap
heap : allocator telemetry and diagnostics.
cmd_heap_fail ๐Ÿ”’
cmd_heap_live ๐Ÿ”’
cmd_heap_stress ๐Ÿ”’
heap stress [rounds] : exercise allocator smoke paths and one bounded userspace workload path.
cmd_heap_summary ๐Ÿ”’
cmd_heap_vmalloc ๐Ÿ”’
page_base ๐Ÿ”’
stress_slab_frag ๐Ÿ”’
stress_slab_reclaim ๐Ÿ”’
stress_telemetry ๐Ÿ”’
stress_userspace_workload ๐Ÿ”’
stress_vmalloc_cycle ๐Ÿ”’
stress_vmalloc_frag ๐Ÿ”’
stress_wait_until ๐Ÿ”’