Lines Matching refs:iter
1251 typedef void (blk_log_action_t) (struct trace_iterator *iter, const char *act);
1253 static void blk_log_action_classic(struct trace_iterator *iter, const char *act) in blk_log_action_classic() argument
1256 unsigned long long ts = iter->ts; in blk_log_action_classic()
1259 const struct blk_io_trace *t = te_blk_io_trace(iter->ent); in blk_log_action_classic()
1263 trace_seq_printf(&iter->seq, in blk_log_action_classic()
1265 MAJOR(t->device), MINOR(t->device), iter->cpu, in blk_log_action_classic()
1266 secs, nsec_rem, iter->ent->pid, act, rwbs); in blk_log_action_classic()
1269 static void blk_log_action(struct trace_iterator *iter, const char *act) in blk_log_action() argument
1272 const struct blk_io_trace *t = te_blk_io_trace(iter->ent); in blk_log_action()
1275 trace_seq_printf(&iter->seq, "%3d,%-3d %2s %3s ", in blk_log_action()
1455 static enum print_line_t print_one_line(struct trace_iterator *iter, in print_one_line() argument
1458 struct trace_array *tr = iter->tr; in print_one_line()
1459 struct trace_seq *s = &iter->seq; in print_one_line()
1465 t = te_blk_io_trace(iter->ent); in print_one_line()
1471 log_action(iter, long_act ? "message" : "m"); in print_one_line()
1472 blk_log_msg(s, iter->ent); in print_one_line()
1478 log_action(iter, what2act[what].act[long_act]); in print_one_line()
1479 what2act[what].print(s, iter->ent); in print_one_line()
1485 static enum print_line_t blk_trace_event_print(struct trace_iterator *iter, in blk_trace_event_print() argument
1488 return print_one_line(iter, false); in blk_trace_event_print()
1491 static void blk_trace_synthesize_old_trace(struct trace_iterator *iter) in blk_trace_synthesize_old_trace() argument
1493 struct trace_seq *s = &iter->seq; in blk_trace_synthesize_old_trace()
1494 struct blk_io_trace *t = (struct blk_io_trace *)iter->ent; in blk_trace_synthesize_old_trace()
1498 .time = iter->ts, in blk_trace_synthesize_old_trace()
1507 blk_trace_event_print_binary(struct trace_iterator *iter, int flags, in blk_trace_event_print_binary() argument
1510 blk_trace_synthesize_old_trace(iter); in blk_trace_event_print_binary()
1512 return trace_handle_return(&iter->seq); in blk_trace_event_print_binary()
1515 static enum print_line_t blk_tracer_print_line(struct trace_iterator *iter) in blk_tracer_print_line() argument
1520 return print_one_line(iter, true); in blk_tracer_print_line()