Lines Matching refs:tool
14 #include "util/tool.h"
181 struct perf_tool tool;
1484 static int process_sched_wakeup_event(struct perf_tool *tool,
1489 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1669 static int process_sched_switch_event(struct perf_tool *tool,
1674 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1695 static int process_sched_runtime_event(struct perf_tool *tool,
1700 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1708 static int perf_sched__process_fork_event(struct perf_tool *tool,
1713 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1716 perf_event__process_fork(tool, event, sample, machine);
1725 static int process_sched_migrate_task_event(struct perf_tool *tool,
1730 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1738 typedef int (*tracepoint_handler)(struct perf_tool *tool,
1743 static int perf_sched__process_tracepoint_sample(struct perf_tool *tool __maybe_unused,
1753 err = f(tool, evsel, sample, machine);
1759 static int perf_sched__process_comm(struct perf_tool *tool __maybe_unused,
1768 err = perf_event__process_comm(tool, event, sample, machine);
1807 session = perf_session__new(&data, false, &sched->tool);
2404 static int timehist_sched_wakeup_ignore(struct perf_tool *tool __maybe_unused,
2413 static int timehist_sched_wakeup_event(struct perf_tool *tool,
2419 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
2497 static int timehist_migrate_task_event(struct perf_tool *tool,
2503 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
2525 static int timehist_sched_change_event(struct perf_tool *tool,
2531 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
2651 static int timehist_sched_switch_event(struct perf_tool *tool,
2657 return timehist_sched_change_event(tool, event, evsel, sample, machine);
2660 static int process_lost(struct perf_tool *tool __maybe_unused,
2924 typedef int (*sched_handler)(struct perf_tool *tool,
2930 static int perf_timehist__process_sample(struct perf_tool *tool,
2936 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
2946 err = f(tool, event, evsel, sample, machine);
2999 sched->tool.sample = perf_timehist__process_sample;
3000 sched->tool.mmap = perf_event__process_mmap;
3001 sched->tool.comm = perf_event__process_comm;
3002 sched->tool.exit = perf_event__process_exit;
3003 sched->tool.fork = perf_event__process_fork;
3004 sched->tool.lost = process_lost;
3005 sched->tool.attr = perf_event__process_attr;
3006 sched->tool.tracing_data = perf_event__process_tracing_data;
3007 sched->tool.build_id = perf_event__process_build_id;
3009 sched->tool.ordered_events = true;
3010 sched->tool.ordering_requires_timestamps = true;
3014 session = perf_session__new(&data, false, &sched->tool);
3418 .tool = {