Lines Matching refs:tool
12 #include "util/tool.h"
140 struct perf_tool tool;
2348 static int process_sample_event(struct perf_tool *tool,
2354 struct perf_script *scr = container_of(tool, struct perf_script, tool);
2435 static int process_attr(struct perf_tool *tool, union perf_event *event,
2438 struct perf_script *scr = container_of(tool, struct perf_script, tool);
2444 err = perf_event__process_attr(tool, event, pevlist);
2501 static int print_event_with_time(struct perf_tool *tool,
2507 struct perf_script *script = container_of(tool, struct perf_script, tool);
2537 static int print_event(struct perf_tool *tool, union perf_event *event,
2541 return print_event_with_time(tool, event, sample, machine, pid, tid, 0);
2544 static int process_comm_event(struct perf_tool *tool,
2549 if (perf_event__process_comm(tool, event, sample, machine) < 0)
2552 return print_event(tool, event, sample, machine, event->comm.pid,
2556 static int process_namespaces_event(struct perf_tool *tool,
2561 if (perf_event__process_namespaces(tool, event, sample, machine) < 0)
2564 return print_event(tool, event, sample, machine, event->namespaces.pid,
2568 static int process_cgroup_event(struct perf_tool *tool,
2573 if (perf_event__process_cgroup(tool, event, sample, machine) < 0)
2576 return print_event(tool, event, sample, machine, sample->pid,
2580 static int process_fork_event(struct perf_tool *tool,
2585 if (perf_event__process_fork(tool, event, sample, machine) < 0)
2588 return print_event_with_time(tool, event, sample, machine,
2592 static int process_exit_event(struct perf_tool *tool,
2598 if (print_event_with_time(tool, event, sample, machine, event->fork.pid,
2602 return perf_event__process_exit(tool, event, sample, machine);
2605 static int process_mmap_event(struct perf_tool *tool,
2610 if (perf_event__process_mmap(tool, event, sample, machine) < 0)
2613 return print_event(tool, event, sample, machine, event->mmap.pid,
2617 static int process_mmap2_event(struct perf_tool *tool,
2622 if (perf_event__process_mmap2(tool, event, sample, machine) < 0)
2625 return print_event(tool, event, sample, machine, event->mmap2.pid,
2629 static int process_switch_event(struct perf_tool *tool,
2634 struct perf_script *script = container_of(tool, struct perf_script, tool);
2636 if (perf_event__process_switch(tool, event, sample, machine) < 0)
2645 return print_event(tool, event, sample, machine, sample->pid,
2661 process_lost_event(struct perf_tool *tool,
2666 return print_event(tool, event, sample, machine, sample->pid,
2671 process_throttle_event(struct perf_tool *tool __maybe_unused,
2682 process_finished_round_event(struct perf_tool *tool __maybe_unused,
2692 process_bpf_events(struct perf_tool *tool __maybe_unused,
2700 return print_event(tool, event, sample, machine, sample->pid,
2704 static int process_text_poke_events(struct perf_tool *tool,
2709 if (perf_event__process_text_poke(tool, event, sample, machine) < 0)
2712 return print_event(tool, event, sample, machine, sample->pid,
2803 script->tool.comm = process_comm_event;
2804 script->tool.fork = process_fork_event;
2805 script->tool.exit = process_exit_event;
2808 script->tool.mmap = process_mmap_event;
2809 script->tool.mmap2 = process_mmap2_event;
2812 script->tool.context_switch = process_switch_event;
2814 script->tool.auxtrace_error = process_auxtrace_error;
2816 script->tool.namespaces = process_namespaces_event;
2818 script->tool.cgroup = process_cgroup_event;
2820 script->tool.lost = process_lost_event;
2822 script->tool.ordered_events = false;
2823 script->tool.finished_round = process_finished_round_event;
2826 script->tool.ksymbol = process_bpf_events;
2827 script->tool.bpf = process_bpf_events;
2830 script->tool.ksymbol = process_bpf_events;
2831 script->tool.text_poke = process_text_poke_events;
3699 struct perf_tool *tool = session->tool;
3700 struct perf_script *script = container_of(tool, struct perf_script, tool);
3721 struct perf_tool *tool = session->tool;
3722 struct perf_script *script = container_of(tool, struct perf_script, tool);
3751 struct perf_tool *tool = session->tool;
3756 struct perf_script *script = container_of(tool, struct perf_script, tool);
3829 .tool = {
4033 script.tool.ordered_events = false;
4225 session = perf_session__new(&data, &script.tool);
4230 script.tool.show_feat_hdr = SHOW_FEAT_HEADER;
4236 script.tool.show_feat_hdr = SHOW_FEAT_HEADER_FULL_INFO;