• Home
  • Raw
  • Download

Lines Matching refs:iop

23 static void __add_trace(struct io *iop)  in __add_trace()  argument
27 last_t_seen = BIT_TIME(iop->t.time); in __add_trace()
30 iostat_check_time(iop->t.time); in __add_trace()
39 switch (iop->t.action & 0xffff) { in __add_trace()
40 case __BLK_TA_QUEUE: trace_queue(iop); break; in __add_trace()
41 case __BLK_TA_REMAP: trace_remap(iop); break; in __add_trace()
42 case __BLK_TA_INSERT: trace_insert(iop); break; in __add_trace()
43 case __BLK_TA_GETRQ: trace_getrq(iop); break; in __add_trace()
44 case __BLK_TA_BACKMERGE: trace_merge(iop); break; in __add_trace()
45 case __BLK_TA_FRONTMERGE: trace_merge(iop); break; in __add_trace()
46 case __BLK_TA_REQUEUE: trace_requeue(iop); break; in __add_trace()
47 case __BLK_TA_ISSUE: trace_issue(iop); break; in __add_trace()
48 case __BLK_TA_COMPLETE: trace_complete(iop); break; in __add_trace()
49 case __BLK_TA_PLUG: trace_plug(iop); break; in __add_trace()
50 case __BLK_TA_UNPLUG_IO: trace_unplug_io(iop); break; in __add_trace()
51 case __BLK_TA_UNPLUG_TIMER: trace_unplug_timer(iop); break; in __add_trace()
52 case __BLK_TA_SLEEPRQ: trace_sleeprq(iop); break; in __add_trace()
54 io_release(iop); in __add_trace()
59 static void trace_message(struct io *iop) in trace_message() argument
62 char msg[iop->t.pdu_len + 1]; in trace_message()
64 if (!io_setup(iop, IOP_M)) in trace_message()
67 memcpy(msg, iop->pdu, iop->t.pdu_len); in trace_message()
68 msg[iop->t.pdu_len] = '\0'; in trace_message()
71 make_dev_hdr(scratch, 15, iop->dip, 1), in trace_message()
72 (int)SECONDS(iop->t.time), in trace_message()
73 (unsigned long)NANO_SECONDS(iop->t.time), msg); in trace_message()
76 void add_trace(struct io *iop) in add_trace() argument
78 if (iop->t.action & BLK_TC_ACT(BLK_TC_NOTIFY)) { in add_trace()
79 if (iop->t.action == BLK_TN_PROCESS) { in add_trace()
80 if (iop->t.pid == 0) in add_trace()
83 char *slash = strchr(iop->pdu, '/'); in add_trace()
87 process_alloc(iop->t.pid, iop->pdu); in add_trace()
89 } else if (iop->t.action == BLK_TN_MESSAGE) in add_trace()
90 trace_message(iop); in add_trace()
91 io_release(iop); in add_trace()
92 } else if (iop->t.action & BLK_TC_ACT(BLK_TC_PC)) { in add_trace()
93 io_release(iop); in add_trace()
96 if (BIT_TIME(iop->t.time) < t_astart) { in add_trace()
97 io_release(iop); in add_trace()
99 } else if (BIT_TIME(iop->t.time) > t_aend) { in add_trace()
100 io_release(iop); in add_trace()
105 __add_trace(iop); in add_trace()