Lines Matching refs:current
100 struct per_pidcomm *current; member
222 p->current = c; in pid_set_comm()
227 p->current = c; in pid_set_comm()
235 p->current = c; in pid_set_comm()
246 if (pp->current && pp->current->comm && !p->current) in pid_fork()
247 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork()
250 if (p->current && !p->current->start_time) { in pid_fork()
251 p->current->start_time = timestamp; in pid_fork()
252 p->current->state_since = timestamp; in pid_fork()
261 if (p->current) in pid_exit()
262 p->current->end_time = timestamp; in pid_exit()
274 c = p->current; in pid_put_sample()
278 p->current = c; in pid_put_sample()
425 if (p && p->current && p->current->state == TYPE_NONE) { in sched_wakeup()
426 p->current->state_since = timestamp; in sched_wakeup()
427 p->current->state = TYPE_WAITING; in sched_wakeup()
429 if (p && p->current && p->current->state == TYPE_BLOCKED) { in sched_wakeup()
430 pid_put_sample(tchart, p->pid, p->current->state, cpu, in sched_wakeup()
431 p->current->state_since, timestamp, NULL); in sched_wakeup()
432 p->current->state_since = timestamp; in sched_wakeup()
433 p->current->state = TYPE_WAITING; in sched_wakeup()
447 if (prev_p->current && prev_p->current->state != TYPE_NONE) in sched_switch()
449 prev_p->current->state_since, timestamp, in sched_switch()
451 if (p && p->current) { in sched_switch()
452 if (p->current->state != TYPE_NONE) in sched_switch()
453 pid_put_sample(tchart, next_pid, p->current->state, cpu, in sched_switch()
454 p->current->state_since, timestamp, in sched_switch()
457 p->current->state_since = timestamp; in sched_switch()
458 p->current->state = TYPE_RUNNING; in sched_switch()
461 if (prev_p->current) { in sched_switch()
462 prev_p->current->state = TYPE_NONE; in sched_switch()
463 prev_p->current->state_since = timestamp; in sched_switch()
465 prev_p->current->state = TYPE_BLOCKED; in sched_switch()
467 prev_p->current->state = TYPE_WAITING; in sched_switch()
724 struct per_pidcomm *c = p->current; in pid_begin_io_sample()
732 p->current = c; in pid_begin_io_sample()
769 struct per_pidcomm *c = p->current; in pid_end_io_sample()