Lines Matching refs:current
105 struct per_pidcomm *current; member
226 p->current = c; in create_pidcomm()
240 p->current = c; in pid_set_comm()
245 p->current = c; in pid_set_comm()
261 if (pp->current && pp->current->comm && !p->current) in pid_fork()
262 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork()
265 if (p->current && !p->current->start_time) { in pid_fork()
266 p->current->start_time = timestamp; in pid_fork()
267 p->current->state_since = timestamp; in pid_fork()
276 if (p->current) in pid_exit()
277 p->current->end_time = timestamp; in pid_exit()
289 c = p->current; in pid_put_sample()
446 if (p && p->current && p->current->state == TYPE_NONE) { in sched_wakeup()
447 p->current->state_since = timestamp; in sched_wakeup()
448 p->current->state = TYPE_WAITING; in sched_wakeup()
450 if (p && p->current && p->current->state == TYPE_BLOCKED) { in sched_wakeup()
451 pid_put_sample(tchart, p->pid, p->current->state, cpu, in sched_wakeup()
452 p->current->state_since, timestamp, NULL); in sched_wakeup()
453 p->current->state_since = timestamp; in sched_wakeup()
454 p->current->state = TYPE_WAITING; in sched_wakeup()
468 if (prev_p->current && prev_p->current->state != TYPE_NONE) in sched_switch()
470 prev_p->current->state_since, timestamp, in sched_switch()
472 if (p && p->current) { in sched_switch()
473 if (p->current->state != TYPE_NONE) in sched_switch()
474 pid_put_sample(tchart, next_pid, p->current->state, cpu, in sched_switch()
475 p->current->state_since, timestamp, in sched_switch()
478 p->current->state_since = timestamp; in sched_switch()
479 p->current->state = TYPE_RUNNING; in sched_switch()
482 if (prev_p->current) { in sched_switch()
483 prev_p->current->state = TYPE_NONE; in sched_switch()
484 prev_p->current->state_since = timestamp; in sched_switch()
486 prev_p->current->state = TYPE_BLOCKED; in sched_switch()
488 prev_p->current->state = TYPE_WAITING; in sched_switch()
734 struct per_pidcomm *c = p->current; in pid_begin_io_sample()
776 struct per_pidcomm *c = p->current; in pid_end_io_sample()