• Home
  • Raw
  • Download

Lines Matching refs:state

115 	long		state;  member
173 int state; member
344 static void c_state_start(int cpu, u64 timestamp, int state) in c_state_start() argument
347 cpus_cstate_state[cpu] = state; in c_state_start()
357 pwr->state = cpus_cstate_state[cpu]; in c_state_end()
378 pwr->state = cpus_pstate_state[cpu]; in p_state_change()
424 if (p && p->current && p->current->state == TYPE_NONE) { in sched_wakeup()
426 p->current->state = TYPE_WAITING; in sched_wakeup()
428 if (p && p->current && p->current->state == TYPE_BLOCKED) { in sched_wakeup()
429 pid_put_sample(tchart, p->pid, p->current->state, cpu, in sched_wakeup()
432 p->current->state = TYPE_WAITING; in sched_wakeup()
446 if (prev_p->current && prev_p->current->state != TYPE_NONE) in sched_switch()
451 if (p->current->state != TYPE_NONE) in sched_switch()
452 pid_put_sample(tchart, next_pid, p->current->state, cpu, in sched_switch()
457 p->current->state = TYPE_RUNNING; in sched_switch()
461 prev_p->current->state = TYPE_NONE; in sched_switch()
464 prev_p->current->state = TYPE_BLOCKED; in sched_switch()
466 prev_p->current->state = TYPE_WAITING; in sched_switch()
582 u32 state = perf_evsel__intval(evsel, sample, "state"); in process_sample_cpu_idle() local
585 if (state == (u32)PWR_EVENT_EXIT) in process_sample_cpu_idle()
588 c_state_start(cpu_id, sample->time, state); in process_sample_cpu_idle()
598 u32 state = perf_evsel__intval(evsel, sample, "state"); in process_sample_cpu_frequency() local
601 p_state_change(tchart, cpu_id, sample->time, state); in process_sample_cpu_frequency()
688 pwr->state = cpus_cstate_state[cpu]; in end_sample_processing()
703 pwr->state = cpus_pstate_state[cpu]; in end_sample_processing()
712 if (!pwr->state) in end_sample_processing()
713 pwr->state = tchart->min_freq; in end_sample_processing()
1020 svg_cstate(pwr->cpu, pwr->start_time, pwr->end_time, pwr->state); in draw_c_p_states()
1027 if (!pwr->state) in draw_c_p_states()
1028 pwr->state = tchart->min_freq; in draw_c_p_states()
1029 svg_pstate(pwr->cpu, pwr->start_time, pwr->end_time, pwr->state); in draw_c_p_states()