Lines Matching refs:pstate
9 * The CPU number, cstate number and pstate number are based
28 * my_map structure is used to record cstate and pstate index and
36 * timestamp, and record for cstate and pstate saperately:
43 * | pstate timestamp |
45 * | pstate index |
90 /* calculate pstate index, returns MAX_PSTATE_ENTRIES for failure */
106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta;
131 pstate = bpf_map_lookup_elem(&my_map, &key);
132 if (!pstate)
150 * for the pstate.
159 * |<- pstate duration ->|
165 /* record pstate after have first cpu_frequency event */
171 pstate_idx = find_cpu_pstate_idx(*pstate);
183 * interval for the pstate.
204 /* Update timestamp for pstate as new start time */
214 u64 *pts, *cstate, *pstate, prev_state, cur_ts, delta;
226 pstate = bpf_map_lookup_elem(&my_map, &key);
227 if (!pstate)
235 prev_state = *pstate;
236 *pstate = ctx->state;
247 /* When CPU is in idle, bail out to skip pstate statistics */
264 * |<- pstate duration ->|
268 pstate_idx = find_cpu_pstate_idx(*pstate);