Skip to content

buddydump ¤

Classes:

Functions:

Attributes:

log module-attribute ¤

log = getLogger(__name__)

MAX_PG_FREE_LIST_STR_RESULT_CNT module-attribute ¤

MAX_PG_FREE_LIST_STR_RESULT_CNT = 16

MAX_PG_FREE_LIST_CNT module-attribute ¤

MAX_PG_FREE_LIST_CNT = 4096

NONE_TUPLE module-attribute ¤

NONE_TUPLE = (None, None)

MIGRATE_PCPTYPES module-attribute ¤

MIGRATE_PCPTYPES = 3

parser module-attribute ¤

parser = ArgumentParser(
    description="Displays metadata and freelists of the buddy allocator."
)

ParsedBuddyArgs dataclass ¤

ParsedBuddyArgs(
    zone: Value | None,
    order: int | None,
    mtype: str | None,
    cpu: int | None,
    find: int | None,
)

Attributes:

zone instance-attribute ¤

zone: Value | None

order instance-attribute ¤

order: int | None

mtype instance-attribute ¤

mtype: str | None

cpu instance-attribute ¤

cpu: int | None

find instance-attribute ¤

find: int | None

CurrentBuddyParams dataclass ¤

CurrentBuddyParams(
    sections: list[tuple[str, str]],
    indent: IndentContextManager,
    order: int,
    mtype: str | None,
    freelists: Value | None,
    freelist: Value | None,
    nr_types: int | None,
    found: bool,
)

Attributes:

sections instance-attribute ¤

sections: list[tuple[str, str]]

indent instance-attribute ¤

order instance-attribute ¤

order: int

mtype instance-attribute ¤

mtype: str | None

freelists instance-attribute ¤

freelists: Value | None

freelist instance-attribute ¤

freelist: Value | None

nr_types instance-attribute ¤

nr_types: int | None

found instance-attribute ¤

found: bool

cpu_limitcheck ¤

cpu_limitcheck(cpu: str)

static_str_arr ¤

static_str_arr(name: str) -> list[str]

check_find ¤

check_find(
    counter: int,
    physmap_addr: int,
    pba: ParsedBuddyArgs,
    cbp: CurrentBuddyParams,
)

traverse_pglist ¤

traverse_pglist(
    pba: ParsedBuddyArgs, cbp: CurrentBuddyParams
) -> tuple[list[tuple[int, str]], int, list[str]]

print_section ¤

print_section(section: tuple[str, str], indent: IndentContextManager)

print_pglist ¤

print_pglist(pba: ParsedBuddyArgs, cbp: CurrentBuddyParams)

print_mtypes ¤

print_mtypes(pba: ParsedBuddyArgs, cbp: CurrentBuddyParams)

print_pcp_set ¤

print_pcp_set(pba: ParsedBuddyArgs, cbp: CurrentBuddyParams)

print_free_area ¤

print_free_area(pba: ParsedBuddyArgs, cbp: CurrentBuddyParams)

buddydump ¤

buddydump(
    zone: str,
    pcp_only: bool,
    order: int,
    mtype: str,
    cpu: int,
    node: int,
    find: int,
) -> None