Lines Matching refs:tool
182 struct perf_tool tool; member
1506 static int process_sched_wakeup_event(struct perf_tool *tool, in process_sched_wakeup_event() argument
1511 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in process_sched_wakeup_event()
1696 static int process_sched_switch_event(struct perf_tool *tool, in process_sched_switch_event() argument
1701 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in process_sched_switch_event()
1722 static int process_sched_runtime_event(struct perf_tool *tool, in process_sched_runtime_event() argument
1727 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in process_sched_runtime_event()
1735 static int perf_sched__process_fork_event(struct perf_tool *tool, in perf_sched__process_fork_event() argument
1740 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in perf_sched__process_fork_event()
1743 perf_event__process_fork(tool, event, sample, machine); in perf_sched__process_fork_event()
1752 static int process_sched_migrate_task_event(struct perf_tool *tool, in process_sched_migrate_task_event() argument
1757 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in process_sched_migrate_task_event()
1765 typedef int (*tracepoint_handler)(struct perf_tool *tool,
1770 static int perf_sched__process_tracepoint_sample(struct perf_tool *tool __maybe_unused, in perf_sched__process_tracepoint_sample()
1780 err = f(tool, evsel, sample, machine); in perf_sched__process_tracepoint_sample()
1786 static int perf_sched__process_comm(struct perf_tool *tool __maybe_unused, in perf_sched__process_comm()
1795 err = perf_event__process_comm(tool, event, sample, machine); in perf_sched__process_comm()
1834 session = perf_session__new(&data, &sched->tool); in perf_sched__read_events()
2431 static int timehist_sched_wakeup_ignore(struct perf_tool *tool __maybe_unused, in timehist_sched_wakeup_ignore()
2440 static int timehist_sched_wakeup_event(struct perf_tool *tool, in timehist_sched_wakeup_event() argument
2446 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in timehist_sched_wakeup_event()
2524 static int timehist_migrate_task_event(struct perf_tool *tool, in timehist_migrate_task_event() argument
2530 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in timehist_migrate_task_event()
2552 static int timehist_sched_change_event(struct perf_tool *tool, in timehist_sched_change_event() argument
2558 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in timehist_sched_change_event()
2678 static int timehist_sched_switch_event(struct perf_tool *tool, in timehist_sched_switch_event() argument
2684 return timehist_sched_change_event(tool, event, evsel, sample, machine); in timehist_sched_switch_event()
2687 static int process_lost(struct perf_tool *tool __maybe_unused, in process_lost()
2951 typedef int (*sched_handler)(struct perf_tool *tool,
2957 static int perf_timehist__process_sample(struct perf_tool *tool, in perf_timehist__process_sample() argument
2963 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in perf_timehist__process_sample()
2975 err = f(tool, event, evsel, sample, machine); in perf_timehist__process_sample()
3028 sched->tool.sample = perf_timehist__process_sample; in perf_sched__timehist()
3029 sched->tool.mmap = perf_event__process_mmap; in perf_sched__timehist()
3030 sched->tool.comm = perf_event__process_comm; in perf_sched__timehist()
3031 sched->tool.exit = perf_event__process_exit; in perf_sched__timehist()
3032 sched->tool.fork = perf_event__process_fork; in perf_sched__timehist()
3033 sched->tool.lost = process_lost; in perf_sched__timehist()
3034 sched->tool.attr = perf_event__process_attr; in perf_sched__timehist()
3035 sched->tool.tracing_data = perf_event__process_tracing_data; in perf_sched__timehist()
3036 sched->tool.build_id = perf_event__process_build_id; in perf_sched__timehist()
3038 sched->tool.ordered_events = true; in perf_sched__timehist()
3039 sched->tool.ordering_requires_timestamps = true; in perf_sched__timehist()
3043 session = perf_session__new(&data, &sched->tool); in perf_sched__timehist()
3462 .tool = { in cmd_sched()