Lines Matching refs:event

126 				  struct perf_record_stat_config *event)  in perf_event__read_stat_config()  argument
130 for (i = 0; i < event->nr; i++) { in perf_event__read_stat_config()
132 switch (event->data[i].tag) { in perf_event__read_stat_config()
135 config->__val = event->data[i].val; \ in perf_event__read_stat_config()
144 event->data[i].tag); in perf_event__read_stat_config()
149 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm() argument
153 if (event->header.misc & PERF_RECORD_MISC_COMM_EXEC) in perf_event__fprintf_comm()
158 return fprintf(fp, "%s: %s:%d/%d\n", s, event->comm.comm, event->comm.pid, event->comm.tid); in perf_event__fprintf_comm()
161 size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) in perf_event__fprintf_namespaces() argument
167 ns_link_info = event->namespaces.link_info; in perf_event__fprintf_namespaces()
168 nr_namespaces = event->namespaces.nr_namespaces; in perf_event__fprintf_namespaces()
171 event->namespaces.pid, in perf_event__fprintf_namespaces()
172 event->namespaces.tid, in perf_event__fprintf_namespaces()
188 size_t perf_event__fprintf_cgroup(union perf_event *event, FILE *fp) in perf_event__fprintf_cgroup() argument
191 event->cgroup.id, event->cgroup.path); in perf_event__fprintf_cgroup()
195 union perf_event *event, in perf_event__process_comm() argument
199 return machine__process_comm_event(machine, event, sample); in perf_event__process_comm()
203 union perf_event *event, in perf_event__process_namespaces() argument
207 return machine__process_namespaces_event(machine, event, sample); in perf_event__process_namespaces()
211 union perf_event *event, in perf_event__process_cgroup() argument
215 return machine__process_cgroup_event(machine, event, sample); in perf_event__process_cgroup()
219 union perf_event *event, in perf_event__process_lost() argument
223 return machine__process_lost_event(machine, event, sample); in perf_event__process_lost()
227 union perf_event *event, in perf_event__process_aux() argument
231 return machine__process_aux_event(machine, event); in perf_event__process_aux()
235 union perf_event *event, in perf_event__process_itrace_start() argument
239 return machine__process_itrace_start_event(machine, event); in perf_event__process_itrace_start()
243 union perf_event *event, in perf_event__process_aux_output_hw_id() argument
247 return machine__process_aux_output_hw_id_event(machine, event); in perf_event__process_aux_output_hw_id()
251 union perf_event *event, in perf_event__process_lost_samples() argument
255 return machine__process_lost_samples_event(machine, event, sample); in perf_event__process_lost_samples()
259 union perf_event *event, in perf_event__process_switch() argument
263 return machine__process_switch_event(machine, event); in perf_event__process_switch()
267 union perf_event *event, in perf_event__process_ksymbol() argument
271 return machine__process_ksymbol(machine, event, sample); in perf_event__process_ksymbol()
275 union perf_event *event, in perf_event__process_bpf() argument
279 return machine__process_bpf(machine, event, sample); in perf_event__process_bpf()
283 union perf_event *event, in perf_event__process_text_poke() argument
287 return machine__process_text_poke(machine, event, sample); in perf_event__process_text_poke()
290 size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp) in perf_event__fprintf_mmap() argument
293 event->mmap.pid, event->mmap.tid, event->mmap.start, in perf_event__fprintf_mmap()
294 event->mmap.len, event->mmap.pgoff, in perf_event__fprintf_mmap()
295 (event->header.misc & PERF_RECORD_MISC_MMAP_DATA) ? 'r' : 'x', in perf_event__fprintf_mmap()
296 event->mmap.filename); in perf_event__fprintf_mmap()
299 size_t perf_event__fprintf_mmap2(union perf_event *event, FILE *fp) in perf_event__fprintf_mmap2() argument
301 if (event->header.misc & PERF_RECORD_MISC_MMAP_BUILD_ID) { in perf_event__fprintf_mmap2()
305 build_id__init(&bid, event->mmap2.build_id, in perf_event__fprintf_mmap2()
306 event->mmap2.build_id_size); in perf_event__fprintf_mmap2()
311 event->mmap2.pid, event->mmap2.tid, event->mmap2.start, in perf_event__fprintf_mmap2()
312 event->mmap2.len, event->mmap2.pgoff, sbuild_id, in perf_event__fprintf_mmap2()
313 (event->mmap2.prot & PROT_READ) ? 'r' : '-', in perf_event__fprintf_mmap2()
314 (event->mmap2.prot & PROT_WRITE) ? 'w' : '-', in perf_event__fprintf_mmap2()
315 (event->mmap2.prot & PROT_EXEC) ? 'x' : '-', in perf_event__fprintf_mmap2()
316 (event->mmap2.flags & MAP_SHARED) ? 's' : 'p', in perf_event__fprintf_mmap2()
317 event->mmap2.filename); in perf_event__fprintf_mmap2()
321 event->mmap2.pid, event->mmap2.tid, event->mmap2.start, in perf_event__fprintf_mmap2()
322 event->mmap2.len, event->mmap2.pgoff, event->mmap2.maj, in perf_event__fprintf_mmap2()
323 event->mmap2.min, event->mmap2.ino, in perf_event__fprintf_mmap2()
324 event->mmap2.ino_generation, in perf_event__fprintf_mmap2()
325 (event->mmap2.prot & PROT_READ) ? 'r' : '-', in perf_event__fprintf_mmap2()
326 (event->mmap2.prot & PROT_WRITE) ? 'w' : '-', in perf_event__fprintf_mmap2()
327 (event->mmap2.prot & PROT_EXEC) ? 'x' : '-', in perf_event__fprintf_mmap2()
328 (event->mmap2.flags & MAP_SHARED) ? 's' : 'p', in perf_event__fprintf_mmap2()
329 event->mmap2.filename); in perf_event__fprintf_mmap2()
333 size_t perf_event__fprintf_thread_map(union perf_event *event, FILE *fp) in perf_event__fprintf_thread_map() argument
335 struct perf_thread_map *threads = thread_map__new_event(&event->thread_map); in perf_event__fprintf_thread_map()
349 size_t perf_event__fprintf_cpu_map(union perf_event *event, FILE *fp) in perf_event__fprintf_cpu_map() argument
351 struct perf_cpu_map *cpus = cpu_map__new_data(&event->cpu_map.data); in perf_event__fprintf_cpu_map()
366 union perf_event *event, in perf_event__process_mmap() argument
370 return machine__process_mmap_event(machine, event, sample); in perf_event__process_mmap()
374 union perf_event *event, in perf_event__process_mmap2() argument
378 return machine__process_mmap2_event(machine, event, sample); in perf_event__process_mmap2()
381 size_t perf_event__fprintf_task(union perf_event *event, FILE *fp) in perf_event__fprintf_task() argument
384 event->fork.pid, event->fork.tid, in perf_event__fprintf_task()
385 event->fork.ppid, event->fork.ptid); in perf_event__fprintf_task()
389 union perf_event *event, in perf_event__process_fork() argument
393 return machine__process_fork_event(machine, event, sample); in perf_event__process_fork()
397 union perf_event *event, in perf_event__process_exit() argument
401 return machine__process_exit_event(machine, event, sample); in perf_event__process_exit()
404 size_t perf_event__fprintf_aux(union perf_event *event, FILE *fp) in perf_event__fprintf_aux() argument
407 event->aux.aux_offset, event->aux.aux_size, in perf_event__fprintf_aux()
408 event->aux.flags, in perf_event__fprintf_aux()
409 event->aux.flags & PERF_AUX_FLAG_TRUNCATED ? "T" : "", in perf_event__fprintf_aux()
410 event->aux.flags & PERF_AUX_FLAG_OVERWRITE ? "O" : "", in perf_event__fprintf_aux()
411 event->aux.flags & PERF_AUX_FLAG_PARTIAL ? "P" : ""); in perf_event__fprintf_aux()
414 size_t perf_event__fprintf_itrace_start(union perf_event *event, FILE *fp) in perf_event__fprintf_itrace_start() argument
417 event->itrace_start.pid, event->itrace_start.tid); in perf_event__fprintf_itrace_start()
420 size_t perf_event__fprintf_aux_output_hw_id(union perf_event *event, FILE *fp) in perf_event__fprintf_aux_output_hw_id() argument
423 event->aux_output_hw_id.hw_id); in perf_event__fprintf_aux_output_hw_id()
426 size_t perf_event__fprintf_switch(union perf_event *event, FILE *fp) in perf_event__fprintf_switch() argument
428 bool out = event->header.misc & PERF_RECORD_MISC_SWITCH_OUT; in perf_event__fprintf_switch()
430 !(event->header.misc & PERF_RECORD_MISC_SWITCH_OUT_PREEMPT) ? in perf_event__fprintf_switch()
433 if (event->header.type == PERF_RECORD_SWITCH) in perf_event__fprintf_switch()
438 event->context_switch.next_prev_pid, in perf_event__fprintf_switch()
439 event->context_switch.next_prev_tid); in perf_event__fprintf_switch()
442 static size_t perf_event__fprintf_lost(union perf_event *event, FILE *fp) in perf_event__fprintf_lost() argument
444 return fprintf(fp, " lost %" PRI_lu64 "\n", event->lost.lost); in perf_event__fprintf_lost()
447 size_t perf_event__fprintf_ksymbol(union perf_event *event, FILE *fp) in perf_event__fprintf_ksymbol() argument
450 event->ksymbol.addr, event->ksymbol.len, in perf_event__fprintf_ksymbol()
451 event->ksymbol.ksym_type, in perf_event__fprintf_ksymbol()
452 event->ksymbol.flags, event->ksymbol.name); in perf_event__fprintf_ksymbol()
455 size_t perf_event__fprintf_bpf(union perf_event *event, FILE *fp) in perf_event__fprintf_bpf() argument
458 event->bpf.type, event->bpf.flags, event->bpf.id); in perf_event__fprintf_bpf()
478 size_t perf_event__fprintf_text_poke(union perf_event *event, struct machine *machine, FILE *fp) in perf_event__fprintf_text_poke() argument
480 struct perf_record_text_poke_event *tp = &event->text_poke; in perf_event__fprintf_text_poke()
506 size_t perf_event__fprintf(union perf_event *event, struct machine *machine, FILE *fp) in perf_event__fprintf() argument
509 perf_event__name(event->header.type)); in perf_event__fprintf()
511 switch (event->header.type) { in perf_event__fprintf()
513 ret += perf_event__fprintf_comm(event, fp); in perf_event__fprintf()
517 ret += perf_event__fprintf_task(event, fp); in perf_event__fprintf()
520 ret += perf_event__fprintf_mmap(event, fp); in perf_event__fprintf()
523 ret += perf_event__fprintf_namespaces(event, fp); in perf_event__fprintf()
526 ret += perf_event__fprintf_cgroup(event, fp); in perf_event__fprintf()
529 ret += perf_event__fprintf_mmap2(event, fp); in perf_event__fprintf()
532 ret += perf_event__fprintf_aux(event, fp); in perf_event__fprintf()
535 ret += perf_event__fprintf_itrace_start(event, fp); in perf_event__fprintf()
539 ret += perf_event__fprintf_switch(event, fp); in perf_event__fprintf()
542 ret += perf_event__fprintf_lost(event, fp); in perf_event__fprintf()
545 ret += perf_event__fprintf_ksymbol(event, fp); in perf_event__fprintf()
548 ret += perf_event__fprintf_bpf(event, fp); in perf_event__fprintf()
551 ret += perf_event__fprintf_text_poke(event, machine, fp); in perf_event__fprintf()
554 ret += perf_event__fprintf_aux_output_hw_id(event, fp); in perf_event__fprintf()
564 union perf_event *event, in perf_event__process() argument
568 return machine__process_event(machine, event, sample); in perf_event__process()