|
static u64 | get_nsecs (void) |
|
static void | burn_nsecs (struct perf_sched *sched, u64 nsecs) |
|
static void | sleep_nsecs (u64 nsecs) |
|
static void | calibrate_run_measurement_overhead (struct perf_sched *sched) |
|
static void | calibrate_sleep_measurement_overhead (struct perf_sched *sched) |
|
static struct sched_atom * | get_new_event (struct task_desc *task, u64 timestamp) |
|
static struct sched_atom * | last_event (struct task_desc *task) |
|
static void | add_sched_event_run (struct perf_sched *sched, struct task_desc *task, u64 timestamp, u64 duration) |
|
static void | add_sched_event_wakeup (struct perf_sched *sched, struct task_desc *task, u64 timestamp, struct task_desc *wakee) |
|
static void | add_sched_event_sleep (struct perf_sched *sched, struct task_desc *task, u64 timestamp, u64 task_state __maybe_unused) |
|
static struct task_desc * | register_pid (struct perf_sched *sched, unsigned long pid, const char *comm) |
|
static void | print_task_traces (struct perf_sched *sched) |
|
static void | add_cross_task_wakeups (struct perf_sched *sched) |
|
static void | perf_sched__process_event (struct perf_sched *sched, struct sched_atom *atom) |
|
static u64 | get_cpu_usage_nsec_parent (void) |
|
static int | self_open_counters (struct perf_sched *sched, unsigned long cur_task) |
|
static u64 | get_cpu_usage_nsec_self (int fd) |
|
static void * | thread_func (void *ctx) |
|
static void | create_tasks (struct perf_sched *sched) |
|
static void | wait_for_tasks (struct perf_sched *sched) |
|
static void | run_one_test (struct perf_sched *sched) |
|
static void | test_calibrations (struct perf_sched *sched) |
|
static int | replay_wakeup_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine __maybe_unused) |
|
static int | replay_switch_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine __maybe_unused) |
|
static int | replay_fork_event (struct perf_sched *sched, union perf_event *event, struct machine *machine) |
|
static struct thread_runtime * | thread__init_runtime (struct thread *thread) |
|
static struct thread_runtime * | thread__get_runtime (struct thread *thread) |
|
static int | thread_lat_cmp (struct list_head *list, struct work_atoms *l, struct work_atoms *r) |
|
static struct work_atoms * | thread_atoms_search (struct rb_root *root, struct thread *thread, struct list_head *sort_list) |
|
static void | __thread_latency_insert (struct rb_root *root, struct work_atoms *data, struct list_head *sort_list) |
|
static int | thread_atoms_insert (struct perf_sched *sched, struct thread *thread) |
|
static char | sched_out_state (u64 prev_state) |
|
static int | add_sched_out_event (struct work_atoms *atoms, char run_state, u64 timestamp) |
|
static void | add_runtime_event (struct work_atoms *atoms, u64 delta, u64 timestamp __maybe_unused) |
|
static void | add_sched_in_event (struct work_atoms *atoms, u64 timestamp) |
|
static int | latency_switch_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | latency_runtime_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | latency_wakeup_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | latency_migrate_task_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static void | output_lat_thread (struct perf_sched *sched, struct work_atoms *work_list) |
|
static int | pid_cmp (struct work_atoms *l, struct work_atoms *r) |
|
static int | avg_cmp (struct work_atoms *l, struct work_atoms *r) |
|
static int | max_cmp (struct work_atoms *l, struct work_atoms *r) |
|
static int | switch_cmp (struct work_atoms *l, struct work_atoms *r) |
|
static int | runtime_cmp (struct work_atoms *l, struct work_atoms *r) |
|
static int | sort_dimension__add (const char *tok, struct list_head *list) |
|
static void | perf_sched__sort_lat (struct perf_sched *sched) |
|
static int | process_sched_wakeup_event (struct perf_tool *tool, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static bool | thread__has_color (struct thread *thread) |
|
static struct thread * | map__findnew_thread (struct perf_sched *sched, struct machine *machine, pid_t pid, pid_t tid) |
|
static int | map_switch_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | process_sched_switch_event (struct perf_tool *tool, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | process_sched_runtime_event (struct perf_tool *tool, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | perf_sched__process_fork_event (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) |
|
static int | process_sched_migrate_task_event (struct perf_tool *tool, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | perf_sched__process_tracepoint_sample (struct perf_tool *tool __maybe_unused, union perf_event *event __maybe_unused, struct perf_sample *sample, struct perf_evsel *evsel, struct machine *machine) |
|
static int | perf_sched__process_comm (struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) |
|
static int | perf_sched__read_events (struct perf_sched *sched) |
|
static void | print_sched_time (unsigned long long nsecs, int width) |
|
static struct evsel_runtime * | perf_evsel__get_runtime (struct perf_evsel *evsel) |
|
static void | perf_evsel__save_time (struct perf_evsel *evsel, u64 timestamp, u32 cpu) |
|
static u64 | perf_evsel__get_time (struct perf_evsel *evsel, u32 cpu) |
|
static char * | timehist_get_commstr (struct thread *thread) |
|
static void | timehist_header (struct perf_sched *sched) |
|
static char | task_state_char (struct thread *thread, int state) |
|
static void | timehist_print_sample (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct addr_location *al, struct thread *thread, u64 t, int state) |
|
static void | timehist_update_runtime_stats (struct thread_runtime *r, u64 t, u64 tprev) |
|
static bool | is_idle_sample (struct perf_sample *sample, struct perf_evsel *evsel) |
|
static void | save_task_callchain (struct perf_sched *sched, struct perf_sample *sample, struct perf_evsel *evsel, struct machine *machine) |
|
static int | init_idle_thread (struct thread *thread) |
|
static int | init_idle_threads (int ncpu) |
|
static void | free_idle_threads (void) |
|
static struct thread * | get_idle_thread (int cpu) |
|
static void | save_idle_callchain (struct perf_sched *sched, struct idle_thread_runtime *itr, struct perf_sample *sample) |
|
static struct thread * | timehist_get_thread (struct perf_sched *sched, struct perf_sample *sample, struct machine *machine, struct perf_evsel *evsel) |
|
static bool | timehist_skip_sample (struct perf_sched *sched, struct thread *thread, struct perf_evsel *evsel, struct perf_sample *sample) |
|
static void | timehist_print_wakeup_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine, struct thread *awakened) |
|
static int | timehist_sched_wakeup_event (struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static void | timehist_print_migration_event (struct perf_sched *sched, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine, struct thread *migrated) |
|
static int | timehist_migrate_task_event (struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | timehist_sched_change_event (struct perf_tool *tool, union perf_event *event, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine) |
|
static int | timehist_sched_switch_event (struct perf_tool *tool, union perf_event *event, struct perf_evsel *evsel, struct perf_sample *sample, struct machine *machine __maybe_unused) |
|
static int | process_lost (struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine __maybe_unused) |
|
static void | print_thread_runtime (struct thread *t, struct thread_runtime *r) |
|
static void | print_thread_waittime (struct thread *t, struct thread_runtime *r) |
|
static int | __show_thread_runtime (struct thread *t, void *priv) |
|
static int | show_thread_runtime (struct thread *t, void *priv) |
|
static int | show_deadthread_runtime (struct thread *t, void *priv) |
|
static size_t | callchain__fprintf_folded (FILE *fp, struct callchain_node *node) |
|
static size_t | timehist_print_idlehist_callchain (struct rb_root *root) |
|
static void | timehist_print_summary (struct perf_sched *sched, struct perf_session *session) |
|
static int | perf_timehist__process_sample (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct perf_evsel *evsel, struct machine *machine) |
|
static int | timehist_check_attr (struct perf_sched *sched, struct perf_evlist *evlist) |
|
static int | perf_sched__timehist (struct perf_sched *sched) |
|
static void | print_bad_events (struct perf_sched *sched) |
|
static void | __merge_work_atoms (struct rb_root *root, struct work_atoms *data) |
|
static void | perf_sched__merge_lat (struct perf_sched *sched) |
|
static int | perf_sched__lat (struct perf_sched *sched) |
|
static int | setup_map_cpus (struct perf_sched *sched) |
|
static int | setup_color_pids (struct perf_sched *sched) |
|
static int | setup_color_cpus (struct perf_sched *sched) |
|
static int | perf_sched__map (struct perf_sched *sched) |
|
static int | perf_sched__replay (struct perf_sched *sched) |
|
static void | setup_sorting (struct perf_sched *sched, const struct option *options, const char *const usage_msg[]) |
|
static int | __cmd_record (int argc, const char **argv) |
|
int | cmd_sched (int argc, const char **argv) |
|