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()
1004 static enum print_line_t trace_fn_trace(struct trace_iterator *iter, int flags, in trace_fn_trace() argument
1008 struct trace_seq *s = &iter->seq; in trace_fn_trace()
1010 trace_assign_type(field, iter->ent); in trace_fn_trace()
1018 static enum print_line_t trace_fn_raw(struct trace_iterator *iter, int flags, in trace_fn_raw() argument
1023 trace_assign_type(field, iter->ent); in trace_fn_raw()
1025 trace_seq_printf(&iter->seq, "%lx %lx\n", in trace_fn_raw()
1029 return trace_handle_return(&iter->seq); in trace_fn_raw()
1032 static enum print_line_t trace_fn_hex(struct trace_iterator *iter, int flags, in trace_fn_hex() argument
1036 struct trace_seq *s = &iter->seq; in trace_fn_hex()
1038 trace_assign_type(field, iter->ent); in trace_fn_hex()
1046 static enum print_line_t trace_fn_bin(struct trace_iterator *iter, int flags, in trace_fn_bin() argument
1050 struct trace_seq *s = &iter->seq; in trace_fn_bin()
1052 trace_assign_type(field, iter->ent); in trace_fn_bin()
1073 static enum print_line_t trace_ctxwake_print(struct trace_iterator *iter, in trace_ctxwake_print() argument
1081 trace_assign_type(field, iter->ent); in trace_ctxwake_print()
1086 trace_seq_printf(&iter->seq, in trace_ctxwake_print()
1096 return trace_handle_return(&iter->seq); in trace_ctxwake_print()
1099 static enum print_line_t trace_ctx_print(struct trace_iterator *iter, int flags, in trace_ctx_print() argument
1102 return trace_ctxwake_print(iter, "==>"); in trace_ctx_print()
1105 static enum print_line_t trace_wake_print(struct trace_iterator *iter, in trace_wake_print() argument
1108 return trace_ctxwake_print(iter, " +"); in trace_wake_print()
1111 static int trace_ctxwake_raw(struct trace_iterator *iter, char S) in trace_ctxwake_raw() argument
1116 trace_assign_type(field, iter->ent); in trace_ctxwake_raw()
1121 trace_seq_printf(&iter->seq, "%d %d %c %d %d %d %c\n", in trace_ctxwake_raw()
1130 return trace_handle_return(&iter->seq); in trace_ctxwake_raw()
1133 static enum print_line_t trace_ctx_raw(struct trace_iterator *iter, int flags, in trace_ctx_raw() argument
1136 return trace_ctxwake_raw(iter, 0); in trace_ctx_raw()
1139 static enum print_line_t trace_wake_raw(struct trace_iterator *iter, int flags, in trace_wake_raw() argument
1142 return trace_ctxwake_raw(iter, '+'); in trace_wake_raw()
1146 static int trace_ctxwake_hex(struct trace_iterator *iter, char S) in trace_ctxwake_hex() argument
1149 struct trace_seq *s = &iter->seq; in trace_ctxwake_hex()
1152 trace_assign_type(field, iter->ent); in trace_ctxwake_hex()
1169 static enum print_line_t trace_ctx_hex(struct trace_iterator *iter, int flags, in trace_ctx_hex() argument
1172 return trace_ctxwake_hex(iter, 0); in trace_ctx_hex()
1175 static enum print_line_t trace_wake_hex(struct trace_iterator *iter, int flags, in trace_wake_hex() argument
1178 return trace_ctxwake_hex(iter, '+'); in trace_wake_hex()
1181 static enum print_line_t trace_ctxwake_bin(struct trace_iterator *iter, in trace_ctxwake_bin() argument
1185 struct trace_seq *s = &iter->seq; in trace_ctxwake_bin()
1187 trace_assign_type(field, iter->ent); in trace_ctxwake_bin()
1226 static enum print_line_t trace_stack_print(struct trace_iterator *iter, in trace_stack_print() argument
1230 struct trace_seq *s = &iter->seq; in trace_stack_print()
1234 trace_assign_type(field, iter->ent); in trace_stack_print()
1235 end = (unsigned long *)((long)iter->ent + iter->ent_size); in trace_stack_print()
1262 static enum print_line_t trace_user_stack_print(struct trace_iterator *iter, in trace_user_stack_print() argument
1265 struct trace_array *tr = iter->tr; in trace_user_stack_print()
1267 struct trace_seq *s = &iter->seq; in trace_user_stack_print()
1271 trace_assign_type(field, iter->ent); in trace_user_stack_print()
1316 trace_hwlat_print(struct trace_iterator *iter, int flags, in trace_hwlat_print() argument
1319 struct trace_entry *entry = iter->ent; in trace_hwlat_print()
1320 struct trace_seq *s = &iter->seq; in trace_hwlat_print()
1350 trace_hwlat_raw(struct trace_iterator *iter, int flags, in trace_hwlat_raw() argument
1354 struct trace_seq *s = &iter->seq; in trace_hwlat_raw()
1356 trace_assign_type(field, iter->ent); in trace_hwlat_raw()
1380 trace_osnoise_print(struct trace_iterator *iter, int flags, in trace_osnoise_print() argument
1383 struct trace_entry *entry = iter->ent; in trace_osnoise_print()
1384 struct trace_seq *s = &iter->seq; in trace_osnoise_print()
1417 trace_osnoise_raw(struct trace_iterator *iter, int flags, in trace_osnoise_raw() argument
1421 struct trace_seq *s = &iter->seq; in trace_osnoise_raw()
1423 trace_assign_type(field, iter->ent); in trace_osnoise_raw()
1452 trace_timerlat_print(struct trace_iterator *iter, int flags, in trace_timerlat_print() argument
1455 struct trace_entry *entry = iter->ent; in trace_timerlat_print()
1456 struct trace_seq *s = &iter->seq; in trace_timerlat_print()
1470 trace_timerlat_raw(struct trace_iterator *iter, int flags, in trace_timerlat_raw() argument
1474 struct trace_seq *s = &iter->seq; in trace_timerlat_raw()
1476 trace_assign_type(field, iter->ent); in trace_timerlat_raw()
1498 trace_bputs_print(struct trace_iterator *iter, int flags, in trace_bputs_print() argument
1501 struct trace_entry *entry = iter->ent; in trace_bputs_print()
1502 struct trace_seq *s = &iter->seq; in trace_bputs_print()
1516 trace_bputs_raw(struct trace_iterator *iter, int flags, in trace_bputs_raw() argument
1520 struct trace_seq *s = &iter->seq; in trace_bputs_raw()
1522 trace_assign_type(field, iter->ent); in trace_bputs_raw()
1542 trace_bprint_print(struct trace_iterator *iter, int flags, in trace_bprint_print() argument
1545 struct trace_entry *entry = iter->ent; in trace_bprint_print()
1546 struct trace_seq *s = &iter->seq; in trace_bprint_print()
1560 trace_bprint_raw(struct trace_iterator *iter, int flags, in trace_bprint_raw() argument
1564 struct trace_seq *s = &iter->seq; in trace_bprint_raw()
1566 trace_assign_type(field, iter->ent); in trace_bprint_raw()
1585 static enum print_line_t trace_print_print(struct trace_iterator *iter, in trace_print_print() argument
1589 struct trace_seq *s = &iter->seq; in trace_print_print()
1591 trace_assign_type(field, iter->ent); in trace_print_print()
1599 static enum print_line_t trace_print_raw(struct trace_iterator *iter, int flags, in trace_print_raw() argument
1604 trace_assign_type(field, iter->ent); in trace_print_raw()
1606 trace_seq_printf(&iter->seq, "# %lx %s", field->ip, field->buf); in trace_print_raw()
1608 return trace_handle_return(&iter->seq); in trace_print_raw()
1621 static enum print_line_t trace_raw_data(struct trace_iterator *iter, int flags, in trace_raw_data() argument
1627 trace_assign_type(field, iter->ent); in trace_raw_data()
1629 trace_seq_printf(&iter->seq, "# %x buf:", field->id); in trace_raw_data()
1631 for (i = 0; i < iter->ent_size - offsetof(struct raw_data_entry, buf); i++) in trace_raw_data()
1632 trace_seq_printf(&iter->seq, " %02x", in trace_raw_data()
1635 trace_seq_putc(&iter->seq, '\n'); in trace_raw_data()
1637 return trace_handle_return(&iter->seq); in trace_raw_data()
1651 trace_func_repeats_raw(struct trace_iterator *iter, int flags, in trace_func_repeats_raw() argument
1655 struct trace_seq *s = &iter->seq; in trace_func_repeats_raw()
1657 trace_assign_type(field, iter->ent); in trace_func_repeats_raw()
1669 trace_func_repeats_print(struct trace_iterator *iter, int flags, in trace_func_repeats_print() argument
1673 struct trace_seq *s = &iter->seq; in trace_func_repeats_print()
1675 trace_assign_type(field, iter->ent); in trace_func_repeats_print()
1679 trace_print_time(s, iter, in trace_func_repeats_print()
1680 iter->ts - FUNC_REPEATS_GET_DELTA_TS(field)); in trace_func_repeats_print()