KFunc scx_bpf_cpuperf_cur
This function queries the current relative performance of a CPU.
Definition
The current performance level of a CPU in relation to the maximum performance available in the system can be calculated as follows:
scx_bpf_cpuperf_cap()
* scx_bpf_cpuperf_cur()
/ SCX_CPUPERF_ONE
The result is in the range [1, SCX_CPUPERF_ONE
].
cpu
: CPU of interest
Returns
The current relative performance of cpu
in relation to its maximum. The return value is in the range [1
, SCX_CPUPERF_ONE
].
Signature
u32 scx_bpf_cpuperf_cur(s32 cpu)
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