• Home
  • Raw
  • Download

Lines Matching refs:fmt

12 #define pr_fmt(fmt) fmt  argument
251 static struct trace_event_fields *find_event_field(const char *fmt, in find_event_field() argument
255 const char *p = fmt; in find_event_field()
258 if (!(len = str_has_prefix(fmt, "REC->"))) in find_event_field()
260 fmt += len; in find_event_field()
261 for (p = fmt; *p; p++) { in find_event_field()
265 len = p - fmt; in find_event_field()
268 if (strncmp(field->name, fmt, len) || field->name[len]) in find_event_field()
280 static bool test_field(const char *fmt, struct trace_event_call *call) in test_field() argument
284 field = find_event_field(fmt, call); in test_field()
302 static bool process_pointer(const char *fmt, int len, struct trace_event_call *call) in process_pointer() argument
306 e = fmt + len; in process_pointer()
309 r = strstr(fmt, "REC->"); in process_pointer()
316 a = strchr(fmt, '&'); in process_pointer()
319 } else if (find_print_string(fmt, "__get_dynamic_array(", e)) { in process_pointer()
321 } else if (find_print_string(fmt, "__get_rel_dynamic_array(", e)) { in process_pointer()
323 } else if (find_print_string(fmt, "__get_dynamic_array_len(", e)) { in process_pointer()
325 } else if (find_print_string(fmt, "__get_rel_dynamic_array_len(", e)) { in process_pointer()
327 } else if (find_print_string(fmt, "__get_sockaddr(", e)) { in process_pointer()
329 } else if (find_print_string(fmt, "__get_rel_sockaddr(", e)) { in process_pointer()
336 static bool process_string(const char *fmt, int len, struct trace_event_call *call) in process_string() argument
341 e = fmt + len; in process_string()
349 s = fmt; in process_string()
384 if (find_print_string(fmt, "\"", e)) in process_string()
388 if (process_pointer(fmt, len, call)) in process_string()
392 field = find_event_field(fmt, call); in process_string()
414 const char *fmt; in test_event_printk() local
421 fmt = call->print_fmt; in test_event_printk()
423 if (!fmt) in test_event_printk()
426 for (i = 0; fmt[i]; i++) { in test_event_printk()
427 switch (fmt[i]) { in test_event_printk()
430 if (!fmt[i]) in test_event_printk()
443 if (fmt[i] == '\'') in test_event_printk()
457 if (in_quote == fmt[i]) in test_event_printk()
460 in_quote = fmt[i]; in test_event_printk()
467 if (!fmt[i]) in test_event_printk()
469 switch (fmt[i]) { in test_event_printk()
475 switch (fmt[i + 1]) { in test_event_printk()
496 for (j = 0; fmt[i + j]; j++) { in test_event_printk()
497 if (isdigit(fmt[i + j]) || in test_event_printk()
498 fmt[i + j] == '.') in test_event_printk()
500 if (fmt[i + j] == '*') { in test_event_printk()
503 if (!j && fmt[i + 1] == 'p') { in test_event_printk()
510 if ((fmt[i + j] == 's')) { in test_event_printk()
540 fmt + start_arg, in test_event_printk()
549 while (isspace(fmt[i])) in test_event_printk()
567 if (process_string(fmt + start_arg, e - start_arg, call)) in test_event_printk()
569 } else if (process_pointer(fmt + start_arg, e - start_arg, call)) in test_event_printk()
582 if (process_string(fmt + start_arg, i - start_arg, call)) in test_event_printk()
584 } else if (process_pointer(fmt + start_arg, i - start_arg, call)) in test_event_printk()
604 pr_warn("print_fmt: %s\n", fmt); in test_event_printk()