• Home
  • Raw
  • Download

Lines Matching refs:iter

26 enum print_line_t trace_print_bputs_msg_only(struct trace_iterator *iter)  in trace_print_bputs_msg_only()  argument
28 struct trace_seq *s = &iter->seq; in trace_print_bputs_msg_only()
29 struct trace_entry *entry = iter->ent; in trace_print_bputs_msg_only()
39 enum print_line_t trace_print_bprintk_msg_only(struct trace_iterator *iter) in trace_print_bprintk_msg_only() argument
41 struct trace_seq *s = &iter->seq; in trace_print_bprintk_msg_only()
42 struct trace_entry *entry = iter->ent; in trace_print_bprintk_msg_only()
52 enum print_line_t trace_print_printk_msg_only(struct trace_iterator *iter) in trace_print_printk_msg_only() argument
54 struct trace_seq *s = &iter->seq; in trace_print_printk_msg_only()
55 struct trace_entry *entry = iter->ent; in trace_print_printk_msg_only()
293 int trace_raw_output_prep(struct trace_iterator *iter, in trace_raw_output_prep() argument
297 struct trace_seq *s = &iter->seq; in trace_raw_output_prep()
298 struct trace_seq *p = &iter->tmp_seq; in trace_raw_output_prep()
302 entry = iter->ent; in trace_raw_output_prep()
316 void trace_event_printf(struct trace_iterator *iter, const char *fmt, ...) in trace_event_printf() argument
321 trace_check_vprintf(iter, trace_event_format(iter, fmt), ap); in trace_event_printf()
326 static int trace_output_raw(struct trace_iterator *iter, char *name, in trace_output_raw() argument
329 struct trace_seq *s = &iter->seq; in trace_output_raw()
332 trace_seq_vprintf(s, trace_event_format(iter, fmt), ap); in trace_output_raw()
337 int trace_output_call(struct trace_iterator *iter, char *name, char *fmt, ...) in trace_output_call() argument
343 ret = trace_output_raw(iter, name, fmt, ap); in trace_output_call()
546 lat_print_timestamp(struct trace_iterator *iter, u64 next_ts) in lat_print_timestamp() argument
548 struct trace_array *tr = iter->tr; in lat_print_timestamp()
550 unsigned long in_ns = iter->iter_flags & TRACE_FILE_TIME_IN_NS; in lat_print_timestamp()
551 unsigned long long abs_ts = iter->ts - iter->array_buffer->time_start; in lat_print_timestamp()
552 unsigned long long rel_ts = next_ts - iter->ts; in lat_print_timestamp()
553 struct trace_seq *s = &iter->seq; in lat_print_timestamp()
568 ns2usecs(iter->ts), in lat_print_timestamp()
575 iter->ts, abs_ts, rel_ts); in lat_print_timestamp()
590 static void trace_print_time(struct trace_seq *s, struct trace_iterator *iter, in trace_print_time() argument
596 if (iter->iter_flags & TRACE_FILE_TIME_IN_NS) { in trace_print_time()
605 int trace_print_context(struct trace_iterator *iter) in trace_print_context() argument
607 struct trace_array *tr = iter->tr; in trace_print_context()
608 struct trace_seq *s = &iter->seq; in trace_print_context()
609 struct trace_entry *entry = iter->ent; in trace_print_context()
625 trace_seq_printf(s, "[%03d] ", iter->cpu); in trace_print_context()
630 trace_print_time(s, iter, iter->ts); in trace_print_context()
636 int trace_print_lat_context(struct trace_iterator *iter) in trace_print_lat_context() argument
639 struct trace_array *tr = iter->tr; in trace_print_lat_context()
640 struct trace_seq *s = &iter->seq; in trace_print_lat_context()
644 next_entry = trace_find_next_entry(iter, NULL, &next_ts); in trace_print_lat_context()
646 next_ts = iter->ts; in trace_print_lat_context()
649 entry = iter->ent; in trace_print_lat_context()
658 comm, entry->pid, iter->cpu, entry->flags, in trace_print_lat_context()
659 entry->preempt_count & 0xf, iter->idx); in trace_print_lat_context()
661 lat_print_generic(s, entry, iter->cpu); in trace_print_lat_context()
664 lat_print_timestamp(iter, next_ts); in trace_print_lat_context()
695 struct trace_event *e = NULL, *iter; in trace_search_list() local
707 list_for_each_entry(iter, &ftrace_event_list, list) { in trace_search_list()
708 if (iter->type != next) { in trace_search_list()
709 e = iter; in trace_search_list()
844 enum print_line_t trace_nop_print(struct trace_iterator *iter, int flags, in trace_nop_print() argument
847 trace_seq_printf(&iter->seq, "type: %d\n", iter->ent->type); in trace_nop_print()
849 return trace_handle_return(&iter->seq); in trace_nop_print()
864 static enum print_line_t trace_fn_trace(struct trace_iterator *iter, int flags, in trace_fn_trace() argument
868 struct trace_seq *s = &iter->seq; in trace_fn_trace()
870 trace_assign_type(field, iter->ent); in trace_fn_trace()
878 static enum print_line_t trace_fn_raw(struct trace_iterator *iter, int flags, in trace_fn_raw() argument
883 trace_assign_type(field, iter->ent); in trace_fn_raw()
885 trace_seq_printf(&iter->seq, "%lx %lx\n", in trace_fn_raw()
889 return trace_handle_return(&iter->seq); in trace_fn_raw()
892 static enum print_line_t trace_fn_hex(struct trace_iterator *iter, int flags, in trace_fn_hex() argument
896 struct trace_seq *s = &iter->seq; in trace_fn_hex()
898 trace_assign_type(field, iter->ent); in trace_fn_hex()
906 static enum print_line_t trace_fn_bin(struct trace_iterator *iter, int flags, in trace_fn_bin() argument
910 struct trace_seq *s = &iter->seq; in trace_fn_bin()
912 trace_assign_type(field, iter->ent); in trace_fn_bin()
933 static enum print_line_t trace_ctxwake_print(struct trace_iterator *iter, in trace_ctxwake_print() argument
941 trace_assign_type(field, iter->ent); in trace_ctxwake_print()
946 trace_seq_printf(&iter->seq, in trace_ctxwake_print()
956 return trace_handle_return(&iter->seq); in trace_ctxwake_print()
959 static enum print_line_t trace_ctx_print(struct trace_iterator *iter, int flags, in trace_ctx_print() argument
962 return trace_ctxwake_print(iter, "==>"); in trace_ctx_print()
965 static enum print_line_t trace_wake_print(struct trace_iterator *iter, in trace_wake_print() argument
968 return trace_ctxwake_print(iter, " +"); in trace_wake_print()
971 static int trace_ctxwake_raw(struct trace_iterator *iter, char S) in trace_ctxwake_raw() argument
976 trace_assign_type(field, iter->ent); in trace_ctxwake_raw()
981 trace_seq_printf(&iter->seq, "%d %d %c %d %d %d %c\n", in trace_ctxwake_raw()
990 return trace_handle_return(&iter->seq); in trace_ctxwake_raw()
993 static enum print_line_t trace_ctx_raw(struct trace_iterator *iter, int flags, in trace_ctx_raw() argument
996 return trace_ctxwake_raw(iter, 0); in trace_ctx_raw()
999 static enum print_line_t trace_wake_raw(struct trace_iterator *iter, int flags, in trace_wake_raw() argument
1002 return trace_ctxwake_raw(iter, '+'); in trace_wake_raw()
1006 static int trace_ctxwake_hex(struct trace_iterator *iter, char S) in trace_ctxwake_hex() argument
1009 struct trace_seq *s = &iter->seq; in trace_ctxwake_hex()
1012 trace_assign_type(field, iter->ent); in trace_ctxwake_hex()
1029 static enum print_line_t trace_ctx_hex(struct trace_iterator *iter, int flags, in trace_ctx_hex() argument
1032 return trace_ctxwake_hex(iter, 0); in trace_ctx_hex()
1035 static enum print_line_t trace_wake_hex(struct trace_iterator *iter, int flags, in trace_wake_hex() argument
1038 return trace_ctxwake_hex(iter, '+'); in trace_wake_hex()
1041 static enum print_line_t trace_ctxwake_bin(struct trace_iterator *iter, in trace_ctxwake_bin() argument
1045 struct trace_seq *s = &iter->seq; in trace_ctxwake_bin()
1047 trace_assign_type(field, iter->ent); in trace_ctxwake_bin()
1086 static enum print_line_t trace_stack_print(struct trace_iterator *iter, in trace_stack_print() argument
1090 struct trace_seq *s = &iter->seq; in trace_stack_print()
1094 trace_assign_type(field, iter->ent); in trace_stack_print()
1095 end = (unsigned long *)((long)iter->ent + iter->ent_size); in trace_stack_print()
1122 static enum print_line_t trace_user_stack_print(struct trace_iterator *iter, in trace_user_stack_print() argument
1125 struct trace_array *tr = iter->tr; in trace_user_stack_print()
1127 struct trace_seq *s = &iter->seq; in trace_user_stack_print()
1131 trace_assign_type(field, iter->ent); in trace_user_stack_print()
1176 trace_hwlat_print(struct trace_iterator *iter, int flags, in trace_hwlat_print() argument
1179 struct trace_entry *entry = iter->ent; in trace_hwlat_print()
1180 struct trace_seq *s = &iter->seq; in trace_hwlat_print()
1210 trace_hwlat_raw(struct trace_iterator *iter, int flags, in trace_hwlat_raw() argument
1214 struct trace_seq *s = &iter->seq; in trace_hwlat_raw()
1216 trace_assign_type(field, iter->ent); in trace_hwlat_raw()
1240 trace_osnoise_print(struct trace_iterator *iter, int flags, in trace_osnoise_print() argument
1243 struct trace_entry *entry = iter->ent; in trace_osnoise_print()
1244 struct trace_seq *s = &iter->seq; in trace_osnoise_print()
1277 trace_osnoise_raw(struct trace_iterator *iter, int flags, in trace_osnoise_raw() argument
1281 struct trace_seq *s = &iter->seq; in trace_osnoise_raw()
1283 trace_assign_type(field, iter->ent); in trace_osnoise_raw()
1310 trace_timerlat_print(struct trace_iterator *iter, int flags, in trace_timerlat_print() argument
1313 struct trace_entry *entry = iter->ent; in trace_timerlat_print()
1314 struct trace_seq *s = &iter->seq; in trace_timerlat_print()
1328 trace_timerlat_raw(struct trace_iterator *iter, int flags, in trace_timerlat_raw() argument
1332 struct trace_seq *s = &iter->seq; in trace_timerlat_raw()
1334 trace_assign_type(field, iter->ent); in trace_timerlat_raw()
1356 trace_bputs_print(struct trace_iterator *iter, int flags, in trace_bputs_print() argument
1359 struct trace_entry *entry = iter->ent; in trace_bputs_print()
1360 struct trace_seq *s = &iter->seq; in trace_bputs_print()
1374 trace_bputs_raw(struct trace_iterator *iter, int flags, in trace_bputs_raw() argument
1378 struct trace_seq *s = &iter->seq; in trace_bputs_raw()
1380 trace_assign_type(field, iter->ent); in trace_bputs_raw()
1400 trace_bprint_print(struct trace_iterator *iter, int flags, in trace_bprint_print() argument
1403 struct trace_entry *entry = iter->ent; in trace_bprint_print()
1404 struct trace_seq *s = &iter->seq; in trace_bprint_print()
1418 trace_bprint_raw(struct trace_iterator *iter, int flags, in trace_bprint_raw() argument
1422 struct trace_seq *s = &iter->seq; in trace_bprint_raw()
1424 trace_assign_type(field, iter->ent); in trace_bprint_raw()
1443 static enum print_line_t trace_print_print(struct trace_iterator *iter, in trace_print_print() argument
1447 struct trace_seq *s = &iter->seq; in trace_print_print()
1448 int max = iter->ent_size - offsetof(struct print_entry, buf); in trace_print_print()
1450 trace_assign_type(field, iter->ent); in trace_print_print()
1458 static enum print_line_t trace_print_raw(struct trace_iterator *iter, int flags, in trace_print_raw() argument
1462 int max = iter->ent_size - offsetof(struct print_entry, buf); in trace_print_raw()
1464 trace_assign_type(field, iter->ent); in trace_print_raw()
1466 trace_seq_printf(&iter->seq, "# %lx %.*s", field->ip, max, field->buf); in trace_print_raw()
1468 return trace_handle_return(&iter->seq); in trace_print_raw()
1481 static enum print_line_t trace_raw_data(struct trace_iterator *iter, int flags, in trace_raw_data() argument
1487 trace_assign_type(field, iter->ent); in trace_raw_data()
1489 trace_seq_printf(&iter->seq, "# %x buf:", field->id); in trace_raw_data()
1491 for (i = 0; i < iter->ent_size - offsetof(struct raw_data_entry, buf); i++) in trace_raw_data()
1492 trace_seq_printf(&iter->seq, " %02x", in trace_raw_data()
1495 trace_seq_putc(&iter->seq, '\n'); in trace_raw_data()
1497 return trace_handle_return(&iter->seq); in trace_raw_data()
1511 trace_func_repeats_raw(struct trace_iterator *iter, int flags, in trace_func_repeats_raw() argument
1515 struct trace_seq *s = &iter->seq; in trace_func_repeats_raw()
1517 trace_assign_type(field, iter->ent); in trace_func_repeats_raw()
1529 trace_func_repeats_print(struct trace_iterator *iter, int flags, in trace_func_repeats_print() argument
1533 struct trace_seq *s = &iter->seq; in trace_func_repeats_print()
1535 trace_assign_type(field, iter->ent); in trace_func_repeats_print()
1539 trace_print_time(s, iter, in trace_func_repeats_print()
1540 iter->ts - FUNC_REPEATS_GET_DELTA_TS(field)); in trace_func_repeats_print()