slab ¤
Commands for dealing with Linux kernel slab allocator. Currently, only SLUB is supported.
Some of the code here was inspired from NeatMonster/slabdbg Some of the code here was inspired from osandov/drgn
Functions:
-
slab– -
emphasize– -
handle_next– -
freelist_desc– -
print_slab– -
print_cpu_cache– -
print_node_cache– -
slab_info– -
slab_list– -
slab_contains–prints the slab_cache associated with the provided address
Attributes:
-
parser– -
subparsers– -
parser_list– -
parser_info– -
parser_contains– -
indent–
parser module-attribute ¤
parser = ArgumentParser(
description="Prints information about the linux kernel's slab allocator SLUB."
)
parser_list module-attribute ¤
parser_info module-attribute ¤
parser_contains module-attribute ¤
slab ¤
slab(
command: str,
filter_: str | None = None,
names: list[str] | None = None,
verbose: bool = False,
addresses: list[str] | None = None,
cpu: int | None = None,
node: int | None = None,
partial: bool = False,
active: bool = False,
) -> None
print_cpu_cache ¤
print_cpu_cache(
cpu_cache: CpuCache, verbose: bool, active: bool, partial: bool
) -> None
slab_info ¤
slab_info(
name: str,
verbose: bool,
cpu: int | None,
node: int | None,
active: bool,
partial: bool,
) -> None
slab_contains ¤
prints the slab_cache associated with the provided address