Lines Matching refs:parse
24 #include "event-parse.h"
26 #include "event-parse-local.h"
59 * @buf: buffer to parse
62 * Initializes the internal buffer that tep_read_token() will parse.
1197 * This will parse tokens from the string given by
5421 static int parse_arg_add(struct tep_print_parse **parse, char *format,
5439 *parse = parg;
5449 static int parse_arg_format(struct tep_print_parse **parse,
5520 parse_arg_add(parse, print_format,
5562 parse_arg_add(parse, print_format,
5587 parse_arg_add(parse, print_format,
5594 parse_arg_add(parse, print_format,
5607 static int parse_arg_string(struct tep_print_parse **parse, const char *format)
5647 parse_arg_add(parse, s.buffer, PRINT_FMT_STRING, NULL, NULL, 0);
5657 struct tep_print_parse **parse = NULL;
5664 parse = &parse_ret;
5666 ret = parse_arg_format(parse, event, format, &arg);
5668 ret = parse_arg_string(parse, format);
5669 if (*parse)
5670 parse = &((*parse)->next);
5681 static void print_event_cache(struct tep_print_parse *parse, struct trace_seq *s,
5686 while (parse) {
5687 if (parse->len_as_arg)
5688 len_arg = eval_num_arg(data, size, event, parse->len_as_arg);
5689 switch (parse->type) {
5691 print_arg_number(s, parse->format,
5692 parse->len_as_arg ? len_arg : -1, data,
5693 size, parse->ls, event, parse->arg);
5696 print_arg_pointer(s, parse->format,
5697 parse->len_as_arg ? len_arg : 1,
5698 data, size, event, parse->arg);
5701 print_arg_string(s, parse->format,
5702 parse->len_as_arg ? len_arg : -1,
5703 data, size, event, parse->arg);
5707 trace_seq_printf(s, "%s", parse->format);
5710 parse = parse->next;
5716 struct tep_print_parse *parse = event->print_fmt.print_cache;
5729 parse = parse_args(event, bprint_fmt, args);
5732 print_event_cache(parse, s, data, size, event);
5735 free_parse_args(parse);
5830 * tep_data_type - parse out the given event type
5842 * tep_data_pid - parse the PID from record
5844 * @rec: the record to parse
5854 * tep_data_preempt_count - parse the preempt count from the record
5856 * @rec: the record to parse
5866 * tep_data_flags - parse the latency flags from the record
5868 * @rec: the record to parse
5872 * Use trace_flag_type enum for the flags (see event-parse.h).
6639 * tep_parse_header_page - parse the data stored in the header page
6732 * parse_format - parse the event format
6738 * to quickly parse raw data for a given event.
6798 * print format fails to parse.
6884 * tep_parse_format - parse the event format
6892 * to quickly parse raw data for a given event.
6907 * tep_parse_event - parse the event format
6914 * to quickly parse raw data for a given event.
7301 * tep_register_event_handler - register a way to parse an event
7306 * @func: the function to call to parse the event information
7312 * for an event to be used to parse the data instead.
7397 * @func: the function to call to parse the event information