Home | History | Annotate | Download | only in blktrace

Lines Matching refs:iot

910 static inline int track_rb_insert(struct per_dev_info *pdi,struct io_track *iot)
920 if (iot->sector < __iot->sector)
922 else if (iot->sector > __iot->sector)
927 (unsigned long long) iot->sector,
933 rb_link_node(&iot->rb_node, parent, p);
934 rb_insert_color(&iot->rb_node, &pdi->rb_track);
960 struct io_track *iot;
962 iot = __find_track(pdi, sector);
963 if (!iot) {
964 iot = malloc(sizeof(*iot));
965 iot->ppm = find_ppm(pid);
966 if (!iot->ppm)
967 iot->ppm = add_ppm_hash(pid, "unknown");
968 iot->sector = sector;
969 track_rb_insert(pdi, iot);
972 return iot;
978 struct io_track *iot;
983 iot = __find_track(pdi, t->sector + t_sec(t));
984 if (!iot) {
992 rb_erase(&iot->rb_node, &pdi->rb_track);
993 iot->sector -= t_sec(t);
994 track_rb_insert(pdi, iot);
999 struct io_track *iot;
1004 iot = find_track(pdi, t->pid, t->sector);
1005 iot->allocation_time = t->time;
1021 struct io_track *iot;
1028 iot = find_track(pdi, t->pid, t->sector);
1029 iot->dispatch_time = t->time;
1039 struct io_track *iot;
1044 iot = find_track(pdi, t->pid, t->sector);
1045 iot->queue_time = t->time;
1047 if (!iot->allocation_time)
1050 elapsed = iot->queue_time - iot->allocation_time;
1053 struct per_process_info *ppi = find_ppi(iot->ppm->pid);
1070 struct io_track *iot;
1077 iot = __find_track(pdi, t->sector);
1078 if (!iot) {
1086 iot->dispatch_time = t->time;
1087 elapsed = iot->dispatch_time - iot->queue_time;
1090 struct per_process_info *ppi = find_ppi(iot->ppm->pid);
1107 struct io_track *iot;
1112 iot = __find_track(pdi, t->sector);
1113 if (!iot) {
1121 iot->completion_time = t->time;
1122 elapsed = iot->completion_time - iot->dispatch_time;
1125 struct per_process_info *ppi = find_ppi(iot->ppm->pid);
1135 rb_erase(&iot->rb_node, &pdi->rb_track);
1136 free(iot);