Skip to main content

Module testutils

Module testutils 

Source
Expand description

Test topology construction helpers.

Provides [make_test_topo()] for building synthetic Topology instances with configurable node/LLC/core/HT counts, and [mask_from_bits()] for building Cpumask values from a list of CPU IDs. Enable via the testutils feature of scx_utils.

Functionsยง

make_test_topo
Build a synthetic Topology with the specified dimensions.
mask_from_bits
Create a Cpumask from a list of set CPU IDs.
test_core
Create a Core from a set of CPUs with the given IDs.
test_cpu
Create a Cpu with the given IDs and default frequencies/capacity.
test_llc
Create an Llc from a set of cores with the given IDs.
test_node
Create a Node from a set of LLCs with the given IDs.