• Home
  • Raw
  • Download

Lines Matching refs:tool

121 	struct perf_tool	tool;  member
2103 static int process_sample_event(struct perf_tool *tool, in process_sample_event() argument
2109 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event()
2150 static int process_attr(struct perf_tool *tool, union perf_event *event, in process_attr() argument
2153 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_attr()
2160 err = perf_event__process_attr(tool, event, pevlist); in process_attr()
2219 static int print_event_with_time(struct perf_tool *tool, in print_event_with_time() argument
2225 struct perf_script *script = container_of(tool, struct perf_script, tool); in print_event_with_time()
2255 static int print_event(struct perf_tool *tool, union perf_event *event, in print_event() argument
2259 return print_event_with_time(tool, event, sample, machine, pid, tid, 0); in print_event()
2262 static int process_comm_event(struct perf_tool *tool, in process_comm_event() argument
2267 if (perf_event__process_comm(tool, event, sample, machine) < 0) in process_comm_event()
2270 return print_event(tool, event, sample, machine, event->comm.pid, in process_comm_event()
2274 static int process_namespaces_event(struct perf_tool *tool, in process_namespaces_event() argument
2279 if (perf_event__process_namespaces(tool, event, sample, machine) < 0) in process_namespaces_event()
2282 return print_event(tool, event, sample, machine, event->namespaces.pid, in process_namespaces_event()
2286 static int process_cgroup_event(struct perf_tool *tool, in process_cgroup_event() argument
2291 if (perf_event__process_cgroup(tool, event, sample, machine) < 0) in process_cgroup_event()
2294 return print_event(tool, event, sample, machine, sample->pid, in process_cgroup_event()
2298 static int process_fork_event(struct perf_tool *tool, in process_fork_event() argument
2303 if (perf_event__process_fork(tool, event, sample, machine) < 0) in process_fork_event()
2306 return print_event_with_time(tool, event, sample, machine, in process_fork_event()
2310 static int process_exit_event(struct perf_tool *tool, in process_exit_event() argument
2316 if (print_event_with_time(tool, event, sample, machine, event->fork.pid, in process_exit_event()
2320 return perf_event__process_exit(tool, event, sample, machine); in process_exit_event()
2323 static int process_mmap_event(struct perf_tool *tool, in process_mmap_event() argument
2328 if (perf_event__process_mmap(tool, event, sample, machine) < 0) in process_mmap_event()
2331 return print_event(tool, event, sample, machine, event->mmap.pid, in process_mmap_event()
2335 static int process_mmap2_event(struct perf_tool *tool, in process_mmap2_event() argument
2340 if (perf_event__process_mmap2(tool, event, sample, machine) < 0) in process_mmap2_event()
2343 return print_event(tool, event, sample, machine, event->mmap2.pid, in process_mmap2_event()
2347 static int process_switch_event(struct perf_tool *tool, in process_switch_event() argument
2352 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_switch_event()
2354 if (perf_event__process_switch(tool, event, sample, machine) < 0) in process_switch_event()
2363 return print_event(tool, event, sample, machine, sample->pid, in process_switch_event()
2368 process_lost_event(struct perf_tool *tool, in process_lost_event() argument
2373 return print_event(tool, event, sample, machine, sample->pid, in process_lost_event()
2378 process_finished_round_event(struct perf_tool *tool __maybe_unused, in process_finished_round_event()
2388 process_bpf_events(struct perf_tool *tool __maybe_unused, in process_bpf_events()
2396 return print_event(tool, event, sample, machine, sample->pid, in process_bpf_events()
2400 static int process_text_poke_events(struct perf_tool *tool, in process_text_poke_events() argument
2405 if (perf_event__process_text_poke(tool, event, sample, machine) < 0) in process_text_poke_events()
2408 return print_event(tool, event, sample, machine, sample->pid, in process_text_poke_events()
2502 script->tool.comm = process_comm_event; in __cmd_script()
2503 script->tool.fork = process_fork_event; in __cmd_script()
2504 script->tool.exit = process_exit_event; in __cmd_script()
2507 script->tool.mmap = process_mmap_event; in __cmd_script()
2508 script->tool.mmap2 = process_mmap2_event; in __cmd_script()
2511 script->tool.context_switch = process_switch_event; in __cmd_script()
2513 script->tool.namespaces = process_namespaces_event; in __cmd_script()
2515 script->tool.cgroup = process_cgroup_event; in __cmd_script()
2517 script->tool.lost = process_lost_event; in __cmd_script()
2519 script->tool.ordered_events = false; in __cmd_script()
2520 script->tool.finished_round = process_finished_round_event; in __cmd_script()
2523 script->tool.ksymbol = process_bpf_events; in __cmd_script()
2524 script->tool.bpf = process_bpf_events; in __cmd_script()
2527 script->tool.ksymbol = process_bpf_events; in __cmd_script()
2528 script->tool.text_poke = process_text_poke_events; in __cmd_script()
3328 struct perf_tool *tool = session->tool; in process_thread_map_event() local
3329 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_thread_map_event()
3347 struct perf_tool *tool = session->tool; in process_cpu_map_event() local
3348 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_cpu_map_event()
3374 struct perf_tool *tool = session->tool; in perf_script__process_auxtrace_info() local
3379 struct perf_script *script = container_of(tool, struct perf_script, tool); in perf_script__process_auxtrace_info()
3450 .tool = { in cmd_script()
3806 session = perf_session__new(&data, false, &script.tool); in cmd_script()
3811 script.tool.show_feat_hdr = SHOW_FEAT_HEADER; in cmd_script()
3817 script.tool.show_feat_hdr = SHOW_FEAT_HEADER_FULL_INFO; in cmd_script()