Lines Matching refs:state

118 	long		state;
176 int state;
347 static void c_state_start(int cpu, u64 timestamp, int state)
350 cpus_cstate_state[cpu] = state;
360 pwr->state = cpus_cstate_state[cpu];
381 pwr->state = cpus_pstate_state[cpu];
427 if (p && p->current && p->current->state == TYPE_NONE) {
429 p->current->state = TYPE_WAITING;
431 if (p && p->current && p->current->state == TYPE_BLOCKED) {
432 pid_put_sample(tchart, p->pid, p->current->state, cpu,
435 p->current->state = TYPE_WAITING;
449 if (prev_p->current && prev_p->current->state != TYPE_NONE)
454 if (p->current->state != TYPE_NONE)
455 pid_put_sample(tchart, next_pid, p->current->state, cpu,
460 p->current->state = TYPE_RUNNING;
464 prev_p->current->state = TYPE_NONE;
467 prev_p->current->state = TYPE_BLOCKED;
469 prev_p->current->state = TYPE_WAITING;
582 u32 state = evsel__intval(evsel, sample, "state");
585 if (state == (u32)PWR_EVENT_EXIT)
588 c_state_start(cpu_id, sample->time, state);
598 u32 state = evsel__intval(evsel, sample, "state");
601 p_state_change(tchart, cpu_id, sample->time, state);
673 * After the last sample we need to wrap up the current C/P state
682 /* C state */
688 pwr->state = cpus_cstate_state[cpu];
697 /* P state */
703 pwr->state = cpus_pstate_state[cpu];
712 if (!pwr->state)
713 pwr->state = tchart->min_freq;
1016 * two pass drawing so that the P state bars are on top of the C state blocks
1020 svg_cstate(pwr->cpu, pwr->start_time, pwr->end_time, pwr->state);
1027 if (!pwr->state)
1028 pwr->state = tchart->min_freq;
1029 svg_pstate(pwr->cpu, pwr->start_time, pwr->end_time, pwr->state);