KFunc scx_bpf_cid_override
Install an explicit cpu->cid mapping.
Definition
May only be called from ops.init of the root scheduler. Replace the topology-probed cid mapping with the caller-provided one. Each possible cpu must map to a unique cid in [0, num_possible_cpus). Topology info is cleared. On invalid input, trigger scx_error to abort the scheduler.
Parameters
cpu_to_cid: array of nr_cpu_ids s32 entries (cid for each cpu)
cpu_to_cid__sz: must be nr_cpu_ids * sizeof(s32) bytes
Signature
void scx_bpf_cid_override(const s32 *cpu_to_cid, u32 cpu_to_cid__sz)
Note
This function may sleep, and therefore can only be used from sleepable programs.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
The following program types can make use of this kfunc:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome