Lines Matching refs:pevent

81 static unsigned int read4(struct tep_handle *pevent)  in read4()  argument
87 return tep_read_number(pevent, &data, 4); in read4()
90 static unsigned long long read8(struct tep_handle *pevent) in read8() argument
96 return tep_read_number(pevent, &data, 8); in read8()
143 static int read_proc_kallsyms(struct tep_handle *pevent) in read_proc_kallsyms() argument
147 size = read4(pevent); in read_proc_kallsyms()
166 static int read_ftrace_printk(struct tep_handle *pevent) in read_ftrace_printk() argument
172 size = read4(pevent); in read_ftrace_printk()
187 parse_ftrace_printk(pevent, buf, size); in read_ftrace_printk()
193 static int read_header_files(struct tep_handle *pevent) in read_header_files() argument
208 size = read8(pevent); in read_header_files()
220 if (!tep_parse_header_page(pevent, header_page, size, in read_header_files()
221 tep_get_long_size(pevent))) { in read_header_files()
226 tep_set_long_size(pevent, tep_get_header_page_size(pevent)); in read_header_files()
238 size = read8(pevent); in read_header_files()
244 static int read_ftrace_file(struct tep_handle *pevent, unsigned long long size) in read_ftrace_file() argument
261 ret = parse_ftrace_file(pevent, buf, size); in read_ftrace_file()
269 static int read_event_file(struct tep_handle *pevent, char *sys, in read_event_file() argument
285 ret = parse_event_file(pevent, buf, size, sys); in read_event_file()
293 static int read_ftrace_files(struct tep_handle *pevent) in read_ftrace_files() argument
300 count = read4(pevent); in read_ftrace_files()
303 size = read8(pevent); in read_ftrace_files()
304 ret = read_ftrace_file(pevent, size); in read_ftrace_files()
311 static int read_event_files(struct tep_handle *pevent) in read_event_files() argument
320 systems = read4(pevent); in read_event_files()
327 count = read4(pevent); in read_event_files()
330 size = read8(pevent); in read_event_files()
331 ret = read_event_file(pevent, sys, size); in read_event_files()
342 static int read_saved_cmdline(struct tep_handle *pevent) in read_saved_cmdline() argument
349 size = read8(pevent); in read_saved_cmdline()
365 parse_saved_cmdline(pevent, buf, size); in read_saved_cmdline()
385 struct tep_handle *pevent = NULL; in trace_report() local
423 pevent = tevent->pevent; in trace_report()
425 tep_set_flag(pevent, TEP_NSEC_OUTPUT); in trace_report()
426 tep_set_file_bigendian(pevent, file_bigendian); in trace_report()
427 tep_set_local_bigendian(pevent, host_bigendian); in trace_report()
433 file_page_size = read4(pevent); in trace_report()
437 tep_set_long_size(pevent, file_long_size); in trace_report()
438 tep_set_page_size(pevent, file_page_size); in trace_report()
440 err = read_header_files(pevent); in trace_report()
443 err = read_ftrace_files(pevent); in trace_report()
446 err = read_event_files(pevent); in trace_report()
449 err = read_proc_kallsyms(pevent); in trace_report()
452 err = read_ftrace_printk(pevent); in trace_report()
456 err = read_saved_cmdline(pevent); in trace_report()
465 tep_print_funcs(pevent); in trace_report()
467 tep_print_printk(pevent); in trace_report()
470 pevent = NULL; in trace_report()
473 if (pevent) in trace_report()