• Home
  • Raw
  • Download

Lines Matching refs:prev

724 	struct io_sample *prev;  in pid_begin_io_sample()  local
735 prev = c->io_samples; in pid_begin_io_sample()
737 if (prev && prev->start_time && !prev->end_time) { in pid_begin_io_sample()
743 c->io_samples = prev->next; in pid_begin_io_sample()
744 free(prev); in pid_begin_io_sample()
768 struct io_sample *sample, *prev; in pid_end_io_sample() local
792 prev = sample->next; in pid_end_io_sample()
798 if (prev && sample->start_time < prev->end_time) { in pid_end_io_sample()
799 if (prev->err) /* try to make errors more visible */ in pid_end_io_sample()
800 sample->start_time = prev->end_time; in pid_end_io_sample()
802 prev->end_time = sample->start_time; in pid_end_io_sample()
819 if (prev && in pid_end_io_sample()
820 prev->type == sample->type && in pid_end_io_sample()
821 prev->err == sample->err && in pid_end_io_sample()
822 prev->fd == sample->fd && in pid_end_io_sample()
823 prev->end_time + tchart->merge_dist >= sample->start_time) { in pid_end_io_sample()
825 sample->bytes += prev->bytes; in pid_end_io_sample()
826 sample->merges += prev->merges + 1; in pid_end_io_sample()
828 sample->start_time = prev->start_time; in pid_end_io_sample()
829 sample->next = prev->next; in pid_end_io_sample()
830 free(prev); in pid_end_io_sample()
966 struct per_pid *new_list, *p, *cursor, *prev; in sort_pids() local
981 prev = NULL; in sort_pids()
987 if (prev) { in sort_pids()
988 p->next = prev->next; in sort_pids()
989 prev->next = p; in sort_pids()
1000 prev = cursor; in sort_pids()
1003 prev->next = p; in sort_pids()