Lines Matching refs:prev_p
468 struct per_pid *p = NULL, *prev_p;
472 prev_p = find_create_pid(sw->prev_pid);
476 if (prev_p->current && prev_p->current->state != TYPE_NONE)
477 pid_put_sample(sw->prev_pid, TYPE_RUNNING, cpu, prev_p->current->state_since, timestamp);
486 if (prev_p->current) {
487 prev_p->current->state = TYPE_NONE;
488 prev_p->current->state_since = timestamp;
490 prev_p->current->state = TYPE_BLOCKED;
492 prev_p->current->state = TYPE_WAITING;