Lines Matching refs:iter
25 enum print_line_t trace_print_bputs_msg_only(struct trace_iterator *iter) in trace_print_bputs_msg_only() argument
27 struct trace_seq *s = &iter->seq; in trace_print_bputs_msg_only()
28 struct trace_entry *entry = iter->ent; in trace_print_bputs_msg_only()
38 enum print_line_t trace_print_bprintk_msg_only(struct trace_iterator *iter) in trace_print_bprintk_msg_only() argument
40 struct trace_seq *s = &iter->seq; in trace_print_bprintk_msg_only()
41 struct trace_entry *entry = iter->ent; in trace_print_bprintk_msg_only()
51 enum print_line_t trace_print_printk_msg_only(struct trace_iterator *iter) in trace_print_printk_msg_only() argument
53 struct trace_seq *s = &iter->seq; in trace_print_printk_msg_only()
54 struct trace_entry *entry = iter->ent; in trace_print_printk_msg_only()
295 int trace_raw_output_prep(struct trace_iterator *iter, in trace_raw_output_prep() argument
299 struct trace_seq *s = &iter->seq; in trace_raw_output_prep()
300 struct trace_seq *p = &iter->tmp_seq; in trace_raw_output_prep()
304 entry = iter->ent; in trace_raw_output_prep()
318 void trace_event_printf(struct trace_iterator *iter, const char *fmt, ...) in trace_event_printf() argument
323 trace_check_vprintf(iter, trace_event_format(iter, fmt), ap); in trace_event_printf()
329 int trace_output_raw(struct trace_iterator *iter, char *name, in trace_output_raw() argument
332 struct trace_seq *s = &iter->seq; in trace_output_raw()
335 trace_seq_vprintf(s, trace_event_format(iter, fmt), ap); in trace_output_raw()
340 int trace_output_call(struct trace_iterator *iter, char *name, char *fmt, ...) in trace_output_call() argument
346 ret = trace_output_raw(iter, name, fmt, ap); in trace_output_call()
549 lat_print_timestamp(struct trace_iterator *iter, u64 next_ts) in lat_print_timestamp() argument
551 struct trace_array *tr = iter->tr; in lat_print_timestamp()
553 unsigned long in_ns = iter->iter_flags & TRACE_FILE_TIME_IN_NS; in lat_print_timestamp()
554 unsigned long long abs_ts = iter->ts - iter->array_buffer->time_start; in lat_print_timestamp()
555 unsigned long long rel_ts = next_ts - iter->ts; in lat_print_timestamp()
556 struct trace_seq *s = &iter->seq; in lat_print_timestamp()
571 ns2usecs(iter->ts), in lat_print_timestamp()
578 iter->ts, abs_ts, rel_ts); in lat_print_timestamp()
593 static void trace_print_time(struct trace_seq *s, struct trace_iterator *iter, in trace_print_time() argument
599 if (iter->iter_flags & TRACE_FILE_TIME_IN_NS) { in trace_print_time()
608 int trace_print_context(struct trace_iterator *iter) in trace_print_context() argument
610 struct trace_array *tr = iter->tr; in trace_print_context()
611 struct trace_seq *s = &iter->seq; in trace_print_context()
612 struct trace_entry *entry = iter->ent; in trace_print_context()
628 trace_seq_printf(s, "[%03d] ", iter->cpu); in trace_print_context()
633 trace_print_time(s, iter, iter->ts); in trace_print_context()
639 int trace_print_lat_context(struct trace_iterator *iter) in trace_print_lat_context() argument
642 struct trace_array *tr = iter->tr; in trace_print_lat_context()
643 struct trace_seq *s = &iter->seq; in trace_print_lat_context()
647 next_entry = trace_find_next_entry(iter, NULL, &next_ts); in trace_print_lat_context()
649 next_ts = iter->ts; in trace_print_lat_context()
652 entry = iter->ent; in trace_print_lat_context()
661 comm, entry->pid, iter->cpu, entry->flags, in trace_print_lat_context()
662 entry->preempt_count & 0xf, iter->idx); in trace_print_lat_context()
664 lat_print_generic(s, entry, iter->cpu); in trace_print_lat_context()
667 lat_print_timestamp(iter, next_ts); in trace_print_lat_context()
814 static void print_array(struct trace_iterator *iter, void *pos, in print_array() argument
827 if (offset + len > iter->ent_size) { in print_array()
828 trace_seq_puts(&iter->seq, "<OVERFLOW>"); in print_array()
832 pos = (void *)iter->ent + offset; in print_array()
836 trace_seq_putc(&iter->seq, ','); in print_array()
837 trace_seq_printf(&iter->seq, "%02x", *(unsigned char *)pos); in print_array()
841 static void print_fields(struct trace_iterator *iter, struct trace_event_call *call, in print_fields() argument
851 trace_seq_printf(&iter->seq, " %s=", field->name); in print_fields()
852 if (field->offset + field->size > iter->ent_size) { in print_fields()
853 trace_seq_puts(&iter->seq, "<OVERFLOW>"); in print_fields()
856 pos = (void *)iter->ent + field->offset; in print_fields()
861 trace_seq_printf(&iter->seq, "%.*s", field->size, (char *)pos); in print_fields()
871 if (offset + len > iter->ent_size) { in print_fields()
872 trace_seq_puts(&iter->seq, "<OVERFLOW>"); in print_fields()
875 pos = (void *)iter->ent + offset; in print_fields()
876 trace_seq_printf(&iter->seq, "%.*s", len, (char *)pos); in print_fields()
879 if (!iter->fmt_size) in print_fields()
880 trace_iter_expand_format(iter); in print_fields()
882 ret = strncpy_from_kernel_nofault(iter->fmt, pos, in print_fields()
883 iter->fmt_size); in print_fields()
885 trace_seq_printf(&iter->seq, "(0x%px)", pos); in print_fields()
887 trace_seq_printf(&iter->seq, "(0x%px:%s)", in print_fields()
888 pos, iter->fmt); in print_fields()
892 trace_seq_printf(&iter->seq, "%pS", pos); in print_fields()
899 trace_seq_printf(&iter->seq, "'%c'", in print_fields()
902 trace_seq_printf(&iter->seq, "(%d)", in print_fields()
906 trace_seq_printf(&iter->seq, "0x%x (%d)", in print_fields()
913 print_array(iter, pos, NULL); in print_fields()
918 print_array(iter, pos, field); in print_fields()
922 trace_seq_printf(&iter->seq, "0x%x (%d)", in print_fields()
927 trace_seq_printf(&iter->seq, "0x%llx (%lld)", in print_fields()
932 trace_seq_puts(&iter->seq, "<INVALID-SIZE>"); in print_fields()
937 trace_seq_puts(&iter->seq, "<INVALID-TYPE>"); in print_fields()
940 trace_seq_putc(&iter->seq, '\n'); in print_fields()
943 enum print_line_t print_event_fields(struct trace_iterator *iter, in print_event_fields() argument
965 trace_seq_printf(&iter->seq, "UNKNOWN TYPE %d\n", event->type); in print_event_fields()
973 trace_seq_printf(&iter->seq, "%s:", trace_event_name(call)); in print_event_fields()
976 print_fields(iter, call, head); in print_event_fields()
978 trace_seq_puts(&iter->seq, "No fields found\n"); in print_event_fields()
981 return trace_handle_return(&iter->seq); in print_event_fields()
984 enum print_line_t trace_nop_print(struct trace_iterator *iter, int flags, in trace_nop_print() argument
987 trace_seq_printf(&iter->seq, "type: %d\n", iter->ent->type); in trace_nop_print()
989 return trace_handle_return(&iter->seq); in trace_nop_print()
1007 static enum print_line_t trace_fn_trace(struct trace_iterator *iter, int flags, in trace_fn_trace() argument
1011 struct trace_seq *s = &iter->seq; in trace_fn_trace()
1013 trace_assign_type(field, iter->ent); in trace_fn_trace()
1015 print_fn_trace(s, field->ip, field->parent_ip, iter->tr->text_delta, flags); in trace_fn_trace()
1021 static enum print_line_t trace_fn_raw(struct trace_iterator *iter, int flags, in trace_fn_raw() argument
1026 trace_assign_type(field, iter->ent); in trace_fn_raw()
1028 trace_seq_printf(&iter->seq, "%lx %lx\n", in trace_fn_raw()
1032 return trace_handle_return(&iter->seq); in trace_fn_raw()
1035 static enum print_line_t trace_fn_hex(struct trace_iterator *iter, int flags, in trace_fn_hex() argument
1039 struct trace_seq *s = &iter->seq; in trace_fn_hex()
1041 trace_assign_type(field, iter->ent); in trace_fn_hex()
1049 static enum print_line_t trace_fn_bin(struct trace_iterator *iter, int flags, in trace_fn_bin() argument
1053 struct trace_seq *s = &iter->seq; in trace_fn_bin()
1055 trace_assign_type(field, iter->ent); in trace_fn_bin()
1076 static enum print_line_t trace_ctxwake_print(struct trace_iterator *iter, in trace_ctxwake_print() argument
1084 trace_assign_type(field, iter->ent); in trace_ctxwake_print()
1089 trace_seq_printf(&iter->seq, in trace_ctxwake_print()
1099 return trace_handle_return(&iter->seq); in trace_ctxwake_print()
1102 static enum print_line_t trace_ctx_print(struct trace_iterator *iter, int flags, in trace_ctx_print() argument
1105 return trace_ctxwake_print(iter, "==>"); in trace_ctx_print()
1108 static enum print_line_t trace_wake_print(struct trace_iterator *iter, in trace_wake_print() argument
1111 return trace_ctxwake_print(iter, " +"); in trace_wake_print()
1114 static int trace_ctxwake_raw(struct trace_iterator *iter, char S) in trace_ctxwake_raw() argument
1119 trace_assign_type(field, iter->ent); in trace_ctxwake_raw()
1124 trace_seq_printf(&iter->seq, "%d %d %c %d %d %d %c\n", in trace_ctxwake_raw()
1133 return trace_handle_return(&iter->seq); in trace_ctxwake_raw()
1136 static enum print_line_t trace_ctx_raw(struct trace_iterator *iter, int flags, in trace_ctx_raw() argument
1139 return trace_ctxwake_raw(iter, 0); in trace_ctx_raw()
1142 static enum print_line_t trace_wake_raw(struct trace_iterator *iter, int flags, in trace_wake_raw() argument
1145 return trace_ctxwake_raw(iter, '+'); in trace_wake_raw()
1149 static int trace_ctxwake_hex(struct trace_iterator *iter, char S) in trace_ctxwake_hex() argument
1152 struct trace_seq *s = &iter->seq; in trace_ctxwake_hex()
1155 trace_assign_type(field, iter->ent); in trace_ctxwake_hex()
1172 static enum print_line_t trace_ctx_hex(struct trace_iterator *iter, int flags, in trace_ctx_hex() argument
1175 return trace_ctxwake_hex(iter, 0); in trace_ctx_hex()
1178 static enum print_line_t trace_wake_hex(struct trace_iterator *iter, int flags, in trace_wake_hex() argument
1181 return trace_ctxwake_hex(iter, '+'); in trace_wake_hex()
1184 static enum print_line_t trace_ctxwake_bin(struct trace_iterator *iter, in trace_ctxwake_bin() argument
1188 struct trace_seq *s = &iter->seq; in trace_ctxwake_bin()
1190 trace_assign_type(field, iter->ent); in trace_ctxwake_bin()
1229 static enum print_line_t trace_stack_print(struct trace_iterator *iter, in trace_stack_print() argument
1233 struct trace_seq *s = &iter->seq; in trace_stack_print()
1236 long delta = iter->tr->text_delta; in trace_stack_print()
1238 trace_assign_type(field, iter->ent); in trace_stack_print()
1239 end = (unsigned long *)((long)iter->ent + iter->ent_size); in trace_stack_print()
1266 static enum print_line_t trace_user_stack_print(struct trace_iterator *iter, in trace_user_stack_print() argument
1269 struct trace_array *tr = iter->tr; in trace_user_stack_print()
1271 struct trace_seq *s = &iter->seq; in trace_user_stack_print()
1275 trace_assign_type(field, iter->ent); in trace_user_stack_print()
1320 trace_hwlat_print(struct trace_iterator *iter, int flags, in trace_hwlat_print() argument
1323 struct trace_entry *entry = iter->ent; in trace_hwlat_print()
1324 struct trace_seq *s = &iter->seq; in trace_hwlat_print()
1354 trace_hwlat_raw(struct trace_iterator *iter, int flags, in trace_hwlat_raw() argument
1358 struct trace_seq *s = &iter->seq; in trace_hwlat_raw()
1360 trace_assign_type(field, iter->ent); in trace_hwlat_raw()
1384 trace_osnoise_print(struct trace_iterator *iter, int flags, in trace_osnoise_print() argument
1387 struct trace_entry *entry = iter->ent; in trace_osnoise_print()
1388 struct trace_seq *s = &iter->seq; in trace_osnoise_print()
1421 trace_osnoise_raw(struct trace_iterator *iter, int flags, in trace_osnoise_raw() argument
1425 struct trace_seq *s = &iter->seq; in trace_osnoise_raw()
1427 trace_assign_type(field, iter->ent); in trace_osnoise_raw()
1456 trace_timerlat_print(struct trace_iterator *iter, int flags, in trace_timerlat_print() argument
1459 struct trace_entry *entry = iter->ent; in trace_timerlat_print()
1460 struct trace_seq *s = &iter->seq; in trace_timerlat_print()
1474 trace_timerlat_raw(struct trace_iterator *iter, int flags, in trace_timerlat_raw() argument
1478 struct trace_seq *s = &iter->seq; in trace_timerlat_raw()
1480 trace_assign_type(field, iter->ent); in trace_timerlat_raw()
1502 trace_bputs_print(struct trace_iterator *iter, int flags, in trace_bputs_print() argument
1505 struct trace_entry *entry = iter->ent; in trace_bputs_print()
1506 struct trace_seq *s = &iter->seq; in trace_bputs_print()
1520 trace_bputs_raw(struct trace_iterator *iter, int flags, in trace_bputs_raw() argument
1524 struct trace_seq *s = &iter->seq; in trace_bputs_raw()
1526 trace_assign_type(field, iter->ent); in trace_bputs_raw()
1546 trace_bprint_print(struct trace_iterator *iter, int flags, in trace_bprint_print() argument
1549 struct trace_entry *entry = iter->ent; in trace_bprint_print()
1550 struct trace_seq *s = &iter->seq; in trace_bprint_print()
1564 trace_bprint_raw(struct trace_iterator *iter, int flags, in trace_bprint_raw() argument
1568 struct trace_seq *s = &iter->seq; in trace_bprint_raw()
1570 trace_assign_type(field, iter->ent); in trace_bprint_raw()
1589 static enum print_line_t trace_print_print(struct trace_iterator *iter, in trace_print_print() argument
1593 struct trace_seq *s = &iter->seq; in trace_print_print()
1596 trace_assign_type(field, iter->ent); in trace_print_print()
1598 ip = field->ip + iter->tr->text_delta; in trace_print_print()
1606 static enum print_line_t trace_print_raw(struct trace_iterator *iter, int flags, in trace_print_raw() argument
1611 trace_assign_type(field, iter->ent); in trace_print_raw()
1613 trace_seq_printf(&iter->seq, "# %lx %s", field->ip, field->buf); in trace_print_raw()
1615 return trace_handle_return(&iter->seq); in trace_print_raw()
1628 static enum print_line_t trace_raw_data(struct trace_iterator *iter, int flags, in trace_raw_data() argument
1634 trace_assign_type(field, iter->ent); in trace_raw_data()
1636 trace_seq_printf(&iter->seq, "# %x buf:", field->id); in trace_raw_data()
1638 for (i = 0; i < iter->ent_size - offsetof(struct raw_data_entry, buf); i++) in trace_raw_data()
1639 trace_seq_printf(&iter->seq, " %02x", in trace_raw_data()
1642 trace_seq_putc(&iter->seq, '\n'); in trace_raw_data()
1644 return trace_handle_return(&iter->seq); in trace_raw_data()
1658 trace_func_repeats_raw(struct trace_iterator *iter, int flags, in trace_func_repeats_raw() argument
1662 struct trace_seq *s = &iter->seq; in trace_func_repeats_raw()
1664 trace_assign_type(field, iter->ent); in trace_func_repeats_raw()
1676 trace_func_repeats_print(struct trace_iterator *iter, int flags, in trace_func_repeats_print() argument
1680 struct trace_seq *s = &iter->seq; in trace_func_repeats_print()
1682 trace_assign_type(field, iter->ent); in trace_func_repeats_print()
1684 print_fn_trace(s, field->ip, field->parent_ip, iter->tr->text_delta, flags); in trace_func_repeats_print()
1686 trace_print_time(s, iter, in trace_func_repeats_print()
1687 iter->ts - FUNC_REPEATS_GET_DELTA_TS(field)); in trace_func_repeats_print()