p_state_change
p_state_change(tchart, cpu_id, sample->time, state);
p_state_change(tchart, cpu_id, sample->time, value);