/external/linux-tools-perf/src/tools/lib/traceevent/ |
D | event-parse.h | 90 struct pevent; 98 typedef int (*pevent_plugin_load_func)(struct pevent *pevent); 293 struct pevent *pevent; member 383 struct pevent { struct 455 static inline void pevent_set_flag(struct pevent *pevent, int flag) in pevent_set_flag() argument 457 pevent->flags |= flag; in pevent_set_flag() 461 __data2host2(struct pevent *pevent, unsigned short data) in __data2host2() argument 465 if (pevent->host_bigendian == pevent->file_bigendian) in __data2host2() 475 __data2host4(struct pevent *pevent, unsigned int data) in __data2host4() argument 479 if (pevent->host_bigendian == pevent->file_bigendian) in __data2host4() [all …]
|
D | event-parse.c | 147 static int cmdline_init(struct pevent *pevent) in cmdline_init() argument 149 struct cmdline_list *cmdlist = pevent->cmdlist; in cmdline_init() 154 cmdlines = malloc(sizeof(*cmdlines) * pevent->cmdline_count); in cmdline_init() 168 qsort(cmdlines, pevent->cmdline_count, sizeof(*cmdlines), cmdline_cmp); in cmdline_init() 170 pevent->cmdlines = cmdlines; in cmdline_init() 171 pevent->cmdlist = NULL; in cmdline_init() 176 static const char *find_cmdline(struct pevent *pevent, int pid) in find_cmdline() argument 184 if (!pevent->cmdlines && cmdline_init(pevent)) in find_cmdline() 189 comm = bsearch(&key, pevent->cmdlines, pevent->cmdline_count, in find_cmdline() 190 sizeof(*pevent->cmdlines), cmdline_cmp); in find_cmdline() [all …]
|
D | parse-filter.c | 169 filter_type->event = pevent_find_event(filter->pevent, id); in add_filter_type() 181 struct event_filter *pevent_filter_alloc(struct pevent *pevent) in pevent_filter_alloc() argument 187 filter->pevent = pevent; in pevent_filter_alloc() 188 pevent_ref(pevent); in pevent_filter_alloc() 269 find_event(struct pevent *pevent, struct event_list **events, in find_event() argument 306 for (i = 0; i < pevent->nr_events; i++) { in find_event() 307 event = pevent->events[i]; in find_event() 1177 struct pevent *pevent = filter->pevent; in pevent_filter_add_filter_str() local 1234 ret = find_event(pevent, &events, strim(sys_name), strim(event_name)); in pevent_filter_add_filter_str() 1263 if (ret >= 0 && pevent->test_filters) { in pevent_filter_add_filter_str() [all …]
|
/external/linux-tools-perf/src/tools/perf/util/ |
D | trace-event-read.c | 100 static unsigned int read4(struct pevent *pevent) in read4() argument 106 return __data2host4(pevent, data); in read4() 109 static unsigned long long read8(struct pevent *pevent) in read8() argument 115 return __data2host8(pevent, data); in read8() 162 static int read_proc_kallsyms(struct pevent *pevent) in read_proc_kallsyms() argument 167 size = read4(pevent); in read_proc_kallsyms() 181 parse_proc_kallsyms(pevent, buf, size); in read_proc_kallsyms() 187 static int read_ftrace_printk(struct pevent *pevent) in read_ftrace_printk() argument 193 size = read4(pevent); in read_ftrace_printk() 206 parse_ftrace_printk(pevent, buf, size); in read_ftrace_printk() [all …]
|
D | trace-event-parse.c | 31 struct pevent *read_trace_init(int file_bigendian, int host_bigendian) in read_trace_init() 33 struct pevent *pevent = pevent_alloc(); in read_trace_init() local 35 if (pevent != NULL) { in read_trace_init() 36 pevent_set_flag(pevent, PEVENT_NSEC_OUTPUT); in read_trace_init() 37 pevent_set_file_bigendian(pevent, file_bigendian); in read_trace_init() 38 pevent_set_host_bigendian(pevent, host_bigendian); in read_trace_init() 41 return pevent; in read_trace_init() 47 struct pevent *pevent = context->pevent; in get_common_field() local 52 if (!pevent->events) in get_common_field() 55 event = pevent->events[0]; in get_common_field() [all …]
|
D | trace-event.h | 14 extern struct pevent *perf_pevent; 18 struct pevent *read_trace_init(int file_bigendian, int host_bigendian); 22 int parse_ftrace_file(struct pevent *pevent, char *buf, unsigned long size); 23 int parse_event_file(struct pevent *pevent, 26 struct pevent_record *trace_peek_data(struct pevent *pevent, int cpu); 32 void parse_proc_kallsyms(struct pevent *pevent, char *file, unsigned int size); 33 void parse_ftrace_printk(struct pevent *pevent, char *file, unsigned int size); 35 ssize_t trace_report(int fd, struct pevent **pevent, bool repipe); 37 int trace_parse_common_type(struct pevent *pevent, void *data); 38 int trace_parse_common_pid(struct pevent *pevent, void *data); [all …]
|
D | python.c | 86 static PyObject *pyrf_mmap_event__repr(struct pyrf_event *pevent) in pyrf_mmap_event__repr() argument 94 pevent->event.mmap.pid, pevent->event.mmap.tid, in pyrf_mmap_event__repr() 95 pevent->event.mmap.start, pevent->event.mmap.len, in pyrf_mmap_event__repr() 96 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { in pyrf_mmap_event__repr() 128 static PyObject *pyrf_task_event__repr(struct pyrf_event *pevent) in pyrf_task_event__repr() argument 132 pevent->event.header.type == PERF_RECORD_FORK ? "fork" : "exit", in pyrf_task_event__repr() 133 pevent->event.fork.pid, in pyrf_task_event__repr() 134 pevent->event.fork.ppid, in pyrf_task_event__repr() 135 pevent->event.fork.tid, in pyrf_task_event__repr() 136 pevent->event.fork.ptid, in pyrf_task_event__repr() [all …]
|
D | trace-event-scripting.c | 65 static int python_generate_script_unsupported(struct pevent *pevent in python_generate_script_unsupported() 129 static int perl_generate_script_unsupported(struct pevent *pevent in perl_generate_script_unsupported()
|
D | session.h | 35 struct pevent *pevent; member
|
D | header.c | 2709 struct pevent *pevent) in perf_evsel__prepare_tracepoint_event() argument 2718 if (pevent == NULL) { in perf_evsel__prepare_tracepoint_event() 2723 event = pevent_find_event(pevent, evsel->attr.config); in perf_evsel__prepare_tracepoint_event() 2739 struct pevent *pevent) in perf_evlist__prepare_tracepoint_events() argument 2745 perf_evsel__prepare_tracepoint_event(pos, pevent)) in perf_evlist__prepare_tracepoint_events() 2832 perf_header__process_sections(header, fd, &session->pevent, in perf_session__read_header() 2836 session->pevent)) in perf_session__read_header() 3000 size_read = trace_report(session->fd, &session->pevent, in perf_event__process_tracing_data() 3022 session->pevent); in perf_event__process_tracing_data()
|
/external/linux-tools-perf/src/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 295 scripting_context->pevent = evsel->tp_format->pevent; in perl_process_tracepoint() 458 static int perl_generate_script(struct pevent *pevent, const char *outfile) in perl_generate_script() argument 505 while ((event = trace_find_next_event(pevent, event))) { in perl_generate_script()
|
D | trace-event-python.c | 279 scripting_context->pevent = evsel->tp_format->pevent; in python_process_tracepoint() 543 static int python_generate_script(struct pevent *pevent, const char *outfile) in python_generate_script() argument 592 while ((event = trace_find_next_event(pevent, event))) { in python_generate_script()
|
/external/linux-tools-perf/src/tools/perf/ |
D | builtin-script.c | 467 static int default_generate_script(struct pevent *pevent __maybe_unused, in default_generate_script() 1540 err = scripting_ops->generate_script(session->pevent, in cmd_script()
|