Lines Matching refs:tool

14 #include "util/tool.h"
182 struct perf_tool tool;
1513 static int process_sched_wakeup_event(struct perf_tool *tool,
1518 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1526 static int process_sched_wakeup_ignore(struct perf_tool *tool __maybe_unused,
1711 static int process_sched_switch_event(struct perf_tool *tool,
1716 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1737 static int process_sched_runtime_event(struct perf_tool *tool,
1742 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1750 static int perf_sched__process_fork_event(struct perf_tool *tool,
1755 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1758 perf_event__process_fork(tool, event, sample, machine);
1767 static int process_sched_migrate_task_event(struct perf_tool *tool,
1772 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
1780 typedef int (*tracepoint_handler)(struct perf_tool *tool,
1785 static int perf_sched__process_tracepoint_sample(struct perf_tool *tool __maybe_unused,
1795 err = f(tool, evsel, sample, machine);
1801 static int perf_sched__process_comm(struct perf_tool *tool __maybe_unused,
1810 err = perf_event__process_comm(tool, event, sample, machine);
1850 session = perf_session__new(&data, &sched->tool);
2459 static int timehist_sched_wakeup_ignore(struct perf_tool *tool __maybe_unused,
2468 static int timehist_sched_wakeup_event(struct perf_tool *tool,
2474 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
2552 static int timehist_migrate_task_event(struct perf_tool *tool,
2558 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
2580 static int timehist_sched_change_event(struct perf_tool *tool,
2586 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
2708 static int timehist_sched_switch_event(struct perf_tool *tool,
2714 return timehist_sched_change_event(tool, event, evsel, sample, machine);
2717 static int process_lost(struct perf_tool *tool __maybe_unused,
2960 typedef int (*sched_handler)(struct perf_tool *tool,
2966 static int perf_timehist__process_sample(struct perf_tool *tool,
2972 struct perf_sched *sched = container_of(tool, struct perf_sched, tool);
2984 err = f(tool, event, evsel, sample, machine);
3037 sched->tool.sample = perf_timehist__process_sample;
3038 sched->tool.mmap = perf_event__process_mmap;
3039 sched->tool.comm = perf_event__process_comm;
3040 sched->tool.exit = perf_event__process_exit;
3041 sched->tool.fork = perf_event__process_fork;
3042 sched->tool.lost = process_lost;
3043 sched->tool.attr = perf_event__process_attr;
3044 sched->tool.tracing_data = perf_event__process_tracing_data;
3045 sched->tool.build_id = perf_event__process_build_id;
3047 sched->tool.ordered_events = true;
3048 sched->tool.ordering_requires_timestamps = true;
3052 session = perf_session__new(&data, &sched->tool);
3471 .tool = {