Lines Matching refs:current
104 struct per_pidcomm *current; member
226 p->current = c; in pid_set_comm()
231 p->current = c; in pid_set_comm()
239 p->current = c; in pid_set_comm()
250 if (pp->current && pp->current->comm && !p->current) in pid_fork()
251 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork()
254 if (p->current && !p->current->start_time) { in pid_fork()
255 p->current->start_time = timestamp; in pid_fork()
256 p->current->state_since = timestamp; in pid_fork()
265 if (p->current) in pid_exit()
266 p->current->end_time = timestamp; in pid_exit()
278 c = p->current; in pid_put_sample()
282 p->current = c; in pid_put_sample()
429 if (p && p->current && p->current->state == TYPE_NONE) { in sched_wakeup()
430 p->current->state_since = timestamp; in sched_wakeup()
431 p->current->state = TYPE_WAITING; in sched_wakeup()
433 if (p && p->current && p->current->state == TYPE_BLOCKED) { in sched_wakeup()
434 pid_put_sample(tchart, p->pid, p->current->state, cpu, in sched_wakeup()
435 p->current->state_since, timestamp, NULL); in sched_wakeup()
436 p->current->state_since = timestamp; in sched_wakeup()
437 p->current->state = TYPE_WAITING; in sched_wakeup()
451 if (prev_p->current && prev_p->current->state != TYPE_NONE) in sched_switch()
453 prev_p->current->state_since, timestamp, in sched_switch()
455 if (p && p->current) { in sched_switch()
456 if (p->current->state != TYPE_NONE) in sched_switch()
457 pid_put_sample(tchart, next_pid, p->current->state, cpu, in sched_switch()
458 p->current->state_since, timestamp, in sched_switch()
461 p->current->state_since = timestamp; in sched_switch()
462 p->current->state = TYPE_RUNNING; in sched_switch()
465 if (prev_p->current) { in sched_switch()
466 prev_p->current->state = TYPE_NONE; in sched_switch()
467 prev_p->current->state_since = timestamp; in sched_switch()
469 prev_p->current->state = TYPE_BLOCKED; in sched_switch()
471 prev_p->current->state = TYPE_WAITING; in sched_switch()
728 struct per_pidcomm *c = p->current; in pid_begin_io_sample()
736 p->current = c; in pid_begin_io_sample()
773 struct per_pidcomm *c = p->current; in pid_end_io_sample()