Skip to main content

feat_value

Function feat_value 

Source
fn feat_value(f: TreeFeats, id: u8) -> u64
Expand description

Feature value for a feature id, matching the BPF walk’s feat[9] slot layout in src/bpf/intf.h (mlfq_tree_walk). Ids 0..8 are the split features (prev_burst, sleep, ema, io_wait, wake_cnt, wake_lat, queue_wait, sq_ema, gpu_submit), id 9 the cadence ratio (carry-along, split when NR_FEATURES promotes it), and the rest zero.