Lines Matching refs:we
409 struct wake_event *we = zalloc(sizeof(*we)); in sched_wakeup() local
411 if (!we) in sched_wakeup()
414 we->time = timestamp; in sched_wakeup()
415 we->waker = pid; in sched_wakeup()
418 we->waker = -1; in sched_wakeup()
420 we->wakee = wake->pid; in sched_wakeup()
421 we->next = wake_events; in sched_wakeup()
422 wake_events = we; in sched_wakeup()
423 p = find_create_pid(we->wakee); in sched_wakeup()
688 struct wake_event *we; in draw_wakeups() local
692 we = wake_events; in draw_wakeups()
693 while (we) { in draw_wakeups()
700 if (p->pid == we->waker || p->pid == we->wakee) { in draw_wakeups()
703 if (c->Y && c->start_time <= we->time && c->end_time >= we->time) { in draw_wakeups()
704 if (p->pid == we->waker && !from) { in draw_wakeups()
708 if (p->pid == we->wakee && !to) { in draw_wakeups()
717 if (p->pid == we->waker && !from) { in draw_wakeups()
721 if (p->pid == we->wakee && !to) { in draw_wakeups()
733 sprintf(task_from, "[%i]", we->waker); in draw_wakeups()
737 sprintf(task_to, "[%i]", we->wakee); in draw_wakeups()
740 if (we->waker == -1) in draw_wakeups()
741 svg_interrupt(we->time, to); in draw_wakeups()
743 svg_wakeline(we->time, from, to); in draw_wakeups()
745 svg_partial_wakeline(we->time, from, task_from, to, task_to); in draw_wakeups()
746 we = we->next; in draw_wakeups()