/tools/perf/util/ |
D | trace-event-read.c | 83 static unsigned int read4(struct tep_handle *pevent) in read4() argument 89 return tep_read_number(pevent, &data, 4); in read4() 92 static unsigned long long read8(struct tep_handle *pevent) in read8() argument 98 return tep_read_number(pevent, &data, 8); in read8() 145 static int read_proc_kallsyms(struct tep_handle *pevent) in read_proc_kallsyms() argument 149 size = read4(pevent); in read_proc_kallsyms() 168 static int read_ftrace_printk(struct tep_handle *pevent) in read_ftrace_printk() argument 174 size = read4(pevent); in read_ftrace_printk() 189 parse_ftrace_printk(pevent, buf, size); in read_ftrace_printk() 195 static int read_header_files(struct tep_handle *pevent) in read_header_files() argument [all …]
|
D | trace-event.c | 29 struct tep_handle *pevent = tep_alloc(); in trace_event__init() local 31 if (pevent) { in trace_event__init() 32 t->plugin_list = tep_load_plugins(pevent); in trace_event__init() 33 t->pevent = pevent; in trace_event__init() 36 return pevent ? 0 : -1; in trace_event__init() 42 struct tep_handle *pevent; in trace_event__init2() local 47 pevent = tevent.pevent; in trace_event__init2() 48 tep_set_flag(pevent, TEP_NSEC_OUTPUT); in trace_event__init2() 49 tep_set_file_bigendian(pevent, be); in trace_event__init2() 50 tep_set_local_bigendian(pevent, be); in trace_event__init2() [all …]
|
D | trace-event-parse.c | 20 struct tep_handle *pevent = context->pevent; in get_common_field() local 26 event = tep_get_first_event(pevent); in get_common_field() 37 return tep_read_number(pevent, context->event_data + *offset, *size); in get_common_field() 125 void parse_ftrace_printk(struct tep_handle *pevent, in parse_ftrace_printk() argument 146 tep_register_print_string(pevent, printk, addr); in parse_ftrace_printk() 151 void parse_saved_cmdline(struct tep_handle *pevent, in parse_saved_cmdline() argument 162 tep_register_comm(pevent, comm, pid); in parse_saved_cmdline() 167 int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size) in parse_ftrace_file() argument 169 return tep_parse_event(pevent, buf, size, "ftrace"); in parse_ftrace_file() 172 int parse_event_file(struct tep_handle *pevent, in parse_event_file() argument [all …]
|
D | trace-event.h | 20 struct tep_handle *pevent; member 47 int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size); 48 int parse_event_file(struct tep_handle *pevent, 54 void parse_proc_kallsyms(struct tep_handle *pevent, char *file, unsigned int size); 55 void parse_ftrace_printk(struct tep_handle *pevent, char *file, unsigned int size); 56 void parse_saved_cmdline(struct tep_handle *pevent, char *file, unsigned int size); 111 int (*generate_script) (struct tep_handle *pevent, const char *outfile); 125 struct tep_handle *pevent; member
|
D | python.c | 266 static PyObject *pyrf_mmap_event__repr(struct pyrf_event *pevent) in pyrf_mmap_event__repr() argument 274 pevent->event.mmap.pid, pevent->event.mmap.tid, in pyrf_mmap_event__repr() 275 pevent->event.mmap.start, pevent->event.mmap.len, in pyrf_mmap_event__repr() 276 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { in pyrf_mmap_event__repr() 308 static PyObject *pyrf_task_event__repr(struct pyrf_event *pevent) in pyrf_task_event__repr() argument 312 pevent->event.header.type == PERF_RECORD_FORK ? "fork" : "exit", in pyrf_task_event__repr() 313 pevent->event.fork.pid, in pyrf_task_event__repr() 314 pevent->event.fork.ppid, in pyrf_task_event__repr() 315 pevent->event.fork.tid, in pyrf_task_event__repr() 316 pevent->event.fork.ptid, in pyrf_task_event__repr() [all …]
|
D | trace-event-scripting.c | 32 c->pevent = NULL; in scripting_context__update() 35 c->pevent = evsel->tp_format->tep; in scripting_context__update() 81 static int python_generate_script_unsupported(struct tep_handle *pevent in python_generate_script_unsupported() 148 static int perl_generate_script_unsupported(struct tep_handle *pevent in perl_generate_script_unsupported()
|
D | header.c | 4129 static int evsel__prepare_tracepoint_event(struct evsel *evsel, struct tep_handle *pevent) in evsel__prepare_tracepoint_event() argument 4138 if (pevent == NULL) { in evsel__prepare_tracepoint_event() 4143 event = tep_find_event(pevent, evsel->core.attr.config); in evsel__prepare_tracepoint_event() 4160 static int evlist__prepare_tracepoint_events(struct evlist *evlist, struct tep_handle *pevent) in evlist__prepare_tracepoint_events() argument 4166 evsel__prepare_tracepoint_event(pos, pevent)) in evlist__prepare_tracepoint_events() 4282 if (evlist__prepare_tracepoint_events(session->evlist, session->tevent.pevent)) in perf_session__read_header() 4510 evlist__prepare_tracepoint_events(session->evlist, session->tevent.pevent); in perf_event__process_tracing_data()
|
/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 550 static int perl_generate_script(struct tep_handle *pevent, const char *outfile) in perl_generate_script() argument 617 nr_events = tep_get_events_count(pevent); in perl_generate_script() 618 all_events = tep_list_events(pevent, TEP_EVENT_SORT_ID); in perl_generate_script()
|
D | trace-event-python.c | 1015 val = tep_read_number(scripting_context->pevent, in python_process_tracepoint() 2002 static int python_generate_script(struct tep_handle *pevent, const char *outfile) in python_generate_script() argument 2053 nr_events = tep_get_events_count(pevent); in python_generate_script() 2054 all_events = tep_list_events(pevent, TEP_EVENT_SORT_ID); in python_generate_script() 2193 static int python_generate_script(struct tep_handle *pevent __maybe_unused, in python_generate_script()
|
/tools/perf/ |
D | builtin-report.c | 1706 if (session->tevent.pevent && in cmd_report() 1707 tep_set_function_resolver(session->tevent.pevent, in cmd_report()
|
D | builtin-kwork.c | 1415 if (session->tevent.pevent && in perf_kwork__read_events() 1416 tep_set_function_resolver(session->tevent.pevent, in perf_kwork__read_events()
|
D | builtin-script.c | 4288 if (session->tevent.pevent && in cmd_script() 4289 tep_set_function_resolver(session->tevent.pevent, in cmd_script() 4333 err = scripting_ops->generate_script(session->tevent.pevent, in cmd_script()
|