Lines Matching refs:cstate
9 * The CPU number, cstate number and pstate number are based
12 * Every CPU have three idle states for cstate:
28 * my_map structure is used to record cstate and pstate index and
36 * timestamp, and record for cstate and pstate saperately:
39 * | cstate timestamp |
41 * | cstate index |
106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta;
121 cstate = bpf_map_lookup_elem(&my_map, &key);
122 if (!cstate)
135 prev_state = *cstate;
136 *cstate = ctx->state;
192 * |<- cstate duration ->|
214 u64 *pts, *cstate, *pstate, prev_state, cur_ts, delta;
231 cstate = bpf_map_lookup_elem(&my_map, &key);
232 if (!cstate)
248 if (*cstate != (u32)(-1))