Lines Matching full:current
91 struct per_pidcomm *current;
194 p->current = c;
199 p->current = c;
208 p->current = c;
219 if (pp->current && pp->current->comm && !p->current)
220 pid_set_comm(pid, pp->current->comm);
223 if (p->current) {
224 p->current->start_time = timestamp;
225 p->current->state_since = timestamp;
234 if (p->current)
235 p->current->end_time = timestamp;
246 c = p->current;
251 p->current = c;
455 if (p && p->current && p->current->state == TYPE_NONE) {
456 p->current->state_since = timestamp;
457 p->current->state = TYPE_WAITING;
459 if (p && p->current && p->current->state == TYPE_BLOCKED) {
460 pid_put_sample(p->pid, p->current->state, cpu, p->current->state_since, timestamp);
461 p->current->state_since = timestamp;
462 p->current->state = TYPE_WAITING;
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);
478 if (p && p->current) {
479 if (p->current->state != TYPE_NONE)
480 pid_put_sample(sw->next_pid, p->current->state, cpu, p->current->state_since, timestamp);
482 p->current->state_since = timestamp;
483 p->current->state = TYPE_RUNNING;
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;
575 * After the last sample we need to wrap up the current C/P state