Lines Matching refs:tool
131 struct perf_tool tool; member
2299 static int process_sample_event(struct perf_tool *tool, in process_sample_event() argument
2305 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event()
2383 static int process_attr(struct perf_tool *tool, union perf_event *event, in process_attr() argument
2386 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_attr()
2393 err = perf_event__process_attr(tool, event, pevlist); in process_attr()
2451 static int print_event_with_time(struct perf_tool *tool, in print_event_with_time() argument
2457 struct perf_script *script = container_of(tool, struct perf_script, tool); in print_event_with_time()
2487 static int print_event(struct perf_tool *tool, union perf_event *event, in print_event() argument
2491 return print_event_with_time(tool, event, sample, machine, pid, tid, 0); in print_event()
2494 static int process_comm_event(struct perf_tool *tool, in process_comm_event() argument
2499 if (perf_event__process_comm(tool, event, sample, machine) < 0) in process_comm_event()
2502 return print_event(tool, event, sample, machine, event->comm.pid, in process_comm_event()
2506 static int process_namespaces_event(struct perf_tool *tool, in process_namespaces_event() argument
2511 if (perf_event__process_namespaces(tool, event, sample, machine) < 0) in process_namespaces_event()
2514 return print_event(tool, event, sample, machine, event->namespaces.pid, in process_namespaces_event()
2518 static int process_cgroup_event(struct perf_tool *tool, in process_cgroup_event() argument
2523 if (perf_event__process_cgroup(tool, event, sample, machine) < 0) in process_cgroup_event()
2526 return print_event(tool, event, sample, machine, sample->pid, in process_cgroup_event()
2530 static int process_fork_event(struct perf_tool *tool, in process_fork_event() argument
2535 if (perf_event__process_fork(tool, event, sample, machine) < 0) in process_fork_event()
2538 return print_event_with_time(tool, event, sample, machine, in process_fork_event()
2542 static int process_exit_event(struct perf_tool *tool, in process_exit_event() argument
2548 if (print_event_with_time(tool, event, sample, machine, event->fork.pid, in process_exit_event()
2552 return perf_event__process_exit(tool, event, sample, machine); in process_exit_event()
2555 static int process_mmap_event(struct perf_tool *tool, in process_mmap_event() argument
2560 if (perf_event__process_mmap(tool, event, sample, machine) < 0) in process_mmap_event()
2563 return print_event(tool, event, sample, machine, event->mmap.pid, in process_mmap_event()
2567 static int process_mmap2_event(struct perf_tool *tool, in process_mmap2_event() argument
2572 if (perf_event__process_mmap2(tool, event, sample, machine) < 0) in process_mmap2_event()
2575 return print_event(tool, event, sample, machine, event->mmap2.pid, in process_mmap2_event()
2579 static int process_switch_event(struct perf_tool *tool, in process_switch_event() argument
2584 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_switch_event()
2586 if (perf_event__process_switch(tool, event, sample, machine) < 0) in process_switch_event()
2595 return print_event(tool, event, sample, machine, sample->pid, in process_switch_event()
2611 process_lost_event(struct perf_tool *tool, in process_lost_event() argument
2616 return print_event(tool, event, sample, machine, sample->pid, in process_lost_event()
2621 process_throttle_event(struct perf_tool *tool __maybe_unused, in process_throttle_event()
2632 process_finished_round_event(struct perf_tool *tool __maybe_unused, in process_finished_round_event()
2642 process_bpf_events(struct perf_tool *tool __maybe_unused, in process_bpf_events()
2650 return print_event(tool, event, sample, machine, sample->pid, in process_bpf_events()
2654 static int process_text_poke_events(struct perf_tool *tool, in process_text_poke_events() argument
2659 if (perf_event__process_text_poke(tool, event, sample, machine) < 0) in process_text_poke_events()
2662 return print_event(tool, event, sample, machine, sample->pid, in process_text_poke_events()
2756 script->tool.comm = process_comm_event; in __cmd_script()
2757 script->tool.fork = process_fork_event; in __cmd_script()
2758 script->tool.exit = process_exit_event; in __cmd_script()
2761 script->tool.mmap = process_mmap_event; in __cmd_script()
2762 script->tool.mmap2 = process_mmap2_event; in __cmd_script()
2765 script->tool.context_switch = process_switch_event; in __cmd_script()
2767 script->tool.auxtrace_error = process_auxtrace_error; in __cmd_script()
2769 script->tool.namespaces = process_namespaces_event; in __cmd_script()
2771 script->tool.cgroup = process_cgroup_event; in __cmd_script()
2773 script->tool.lost = process_lost_event; in __cmd_script()
2775 script->tool.ordered_events = false; in __cmd_script()
2776 script->tool.finished_round = process_finished_round_event; in __cmd_script()
2779 script->tool.ksymbol = process_bpf_events; in __cmd_script()
2780 script->tool.bpf = process_bpf_events; in __cmd_script()
2783 script->tool.ksymbol = process_bpf_events; in __cmd_script()
2784 script->tool.text_poke = process_text_poke_events; in __cmd_script()
3636 struct perf_tool *tool = session->tool; in process_thread_map_event() local
3637 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_thread_map_event()
3655 struct perf_tool *tool = session->tool; in process_cpu_map_event() local
3656 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_cpu_map_event()
3682 struct perf_tool *tool = session->tool; in perf_script__process_auxtrace_info() local
3687 struct perf_script *script = container_of(tool, struct perf_script, tool); in perf_script__process_auxtrace_info()
3759 .tool = { in cmd_script()
4145 session = perf_session__new(&data, &script.tool); in cmd_script()
4150 script.tool.show_feat_hdr = SHOW_FEAT_HEADER; in cmd_script()
4156 script.tool.show_feat_hdr = SHOW_FEAT_HEADER_FULL_INFO; in cmd_script()